MiG InfoCom AB
To encapsulate all segments for a grid a GridSegmentSpec object
is used. It is basically a group of GridSegments, with some simple
to use constructors. It describes one dimension of the Grid, for
instance the primary dimension.
Grid lines
Quite similar are the specification for the grid lines. They also can be
of any size (width), even individually. The
GridLineRepetitionSpec interface extends the
RepetitionSpec which describes a generic way to specify
repetitions. There are two concrete classes that implements
GridLineRepetitionSpec, one very flexible () and the other
which are really simple to use. It is easy to create specifications like:
'Make every other grid line 2 pixels and the rest 1 pixel, but make the
first and last 0 pixels. Set the Color to black for the thick ones and
gray for the small ones.
Sub grid rows
If the grid is divided into Categorys every GridRow can even
contain sub rows (which is are also GridRows). Every one of these
sub-grid rows will filter which activities it accepts. This filter system is
very flexible. See Categories below. Note that an ActivityView
that exists in more than one GridRow (because more than one row
accepts it) will have multiple bounds and is not implemented through
multiple ActivityViews. The sub grid row implementation is really
a tree structure. Rows can be in row, that can be in rows, and so on.
Sub grid rows don't have to be denoting categories, they can be used
to filter on anything, but categories are the most common usage. Set
the getting started guide for more information on sub rows and
categories.
Activities and ActivityViews
Activity class
An Activity is something that has a start and end date/time. It
implements the functionality of the Event keyword in the iCalendar
specification, but it is broader in context. It can have a number of
properties, mapped with keys, much like a normal Map. It can be
recurring and have some additional attributes such as creation time
and last modified information.
ActivityView class
MiG Calendar Tutorial Page 11 / 24
Komentarze do niniejszej Instrukcji