MiG InfoCom MiG Calendar Getting Started Guide User Manual
Page 17
![background image](https://www.manualsdir.com/files/798671/content/doc017.png)
MiG InfoCom AB
Segments for Nonlinear Time
Normally time between, say, 08.00 and 18.00 (06.00 pm) is
the most interesting when it comes to planning, especially for
work. The most common solution to this is to show this time
and let the user scroll to times before and after this more
interesting time period. This has a number of problems, the
most obvious is that you have to scroll both up and down to
see if there is anything planned early morning or late night.
MiG Calendar has a unique and elegant solution to this
problem. It supports nonlinear time, per row or for a group
of rows, in both primary and/or secondary dimension. So
what does it mean? It means that you can, for instance,
make the rows denoting 00.00 – 08.00 take up less space
per minute than say 08.00-18.00 and then 18.00 – 24.00
can take up less space per minute again.
You do this by dividing rows (wither in the primarily or
secondary dimension) into
GridSegment
s and giving those
segments sizes, either absolute or relative. The
GridSegment
s can have min/preferred/max sizes set on
them ensuring a very flexible layout independent of the
container size. You can for instance specify that a
GridSegment
should: 'prefer a size of 10% of available
bounds, but be no less than 2 pixels and no bigger than 10
pixels'.
Here is a some code that makes grid rows 0 to 15 (00.00 –
08.00) occupy 10% of available bounds but no less than 1
pixel and no more than 4 pixels.
MiG Calendar Getting Started Guide
Page 17 / 31
Illustration 7 Even/odd grid lines