MiG InfoCom ABMiG Calendar™ Getting Started Guide______________________________________________________________Release 2.0MiG Calendar Getting Started
MiG InfoCom ABTheme PropertiesIf you want to change the properties of the theme, here is how you do that. It will set a green background. Not pretty,
MiG InfoCom ABThemeDateArea.reloadStartupStructureFromTheme();ThemeDateArea.reloadFromTheme();ThemeDateArea.recreateAll();HeadersThere are no headers
MiG InfoCom ABcreate the header row. A lot more can be specified including mouse over paints, row count, size and label positioning within the header
MiG InfoCom ABOK, now we have a date area that shows a grid of a week with a header that shows the week days and dates. Next we'll show how to ad
MiG InfoCom ABThey are drawn with a Decorator like everything else but only the layer index in which the activities are drawn can be changed with the
MiG InfoCom ABWe removed all other layouts first so we know that this is the one that will be used for all ActivityViews.You can have multiple layouts
MiG InfoCom ABLet's say that we want odd grid lines to be a bit brighter since they only show 30 min boundaries.Grid lines are repetition specifi
MiG InfoCom ABSegments for Nonlinear TimeNormally time between, say, 08.00 and 18.00 (06.00 pm) is the most interesting when it comes to planning, esp
MiG InfoCom ABAtFixed min = new AtFixed(1);AtFraction preferred = new AtFraction(0.1f); // Preferred can be absolute or relativeAtFixed max = new AtF
MiG InfoCom ABfinal int dayType = DateRangeI.RANGE_TYPE_DAY;final int weekType = DateRangeI.RANGE_TYPE_WEEK;final int primDir = SwingConstants.HORIZON
MiG InfoCom ABMiG InfoCom ABS:t Olofsgatan 28a753 32 UppsalaSwedenwww.miginfocom.comCOPYRIGHT © MiG InfoCom AB.All rights reserved.Java is a trademark
MiG InfoCom ABand add all supporting objects, such as Decorators, ActivityLayouts and date/time rounders for activities. There are also a whole slew o
MiG InfoCom ABGridLineDecorator glDecorator = new GridLineDecorator(dateArea, 60);dateArea.addDecorator(glDecorator);If you run it now the grid lines
MiG InfoCom ABforcedSize, forcedSize, forcedSize);dateArea.addActivityLayout(layout);dateArea.addDecorator(dateArea.new ActivityViewDecorator(70));As
MiG InfoCom ABFilter Rows and CategoriesEvery column/row in the grid can be divided into sub rows. These sub rows can be divided further into sub rows
MiG InfoCom AB new CategoryFilter(mark, false, false), new CategoryFilter(susan, false, false), new CategoryFilter(michael, false, false)};de
MiG InfoCom ABCustomizing how Activities Look and FeelThe default installed Decorator that paints the ActivityViews uses the in the DateArea specifie
MiG InfoCom ABconstrains on other parts. For a full primer on AShapes set the AShape Tutorial and the MiG Calendar Technical Specification documents.R
MiG InfoCom ABglobal map. Look at the JavaDoc for DefaultAShapeProvider for how to do this. Then just set the paintContext on the activities to the sa
MiG InfoCom ABany interactions on it, see the AShape Tutorial for information on how to do this.If all we want to do is fill blue rectangles there is
MiG InfoCom ABhere area a more thorough explanation.A Decorator is a generic interface that encapsulates how to paint something. A GridDecorator is a
MiG InfoCom ABTable of ContentsGetting Started Guide... 5Preface...
MiG InfoCom ABOccupiedDecorator – Merges the date ranges for the ActivityViews and draws/fills the background, or some of it, for when there is at lea
MiG InfoCom ABContinued ReadingThis Getting Started guide has given you the basics for experimenting on your own. First stop should probably be the Th
MiG InfoCom ABThe Manual Approach...20Filter Rows and Categories...
MiG InfoCom ABGetting Started GuidePrefaceThis document aims at providing enough information to get started using the MiG Calendar component in your a
MiG InfoCom ABSetting up MiG Calendar for usageClasspathIn order to use the calendar component your application needs to find it. How to do this depen
MiG InfoCom ABapplication up and working so that you have a workplace (a JPanel for instance) to add the component to. You can also look at the end of
MiG InfoCom ABgrid properties and a lot of other stuff manually. It is not as daunting as it may sound but a quite thorough read through of the Defaul
MiG InfoCom ABThe ThemeDateAreaContainerTo create a component and to show it is really easy. Just create a ThemeDateAreaContainer and it will create
Kommentare zu diesen Handbüchern