MiG InfoCom MiG Calendar JavaBeans Guide User Manual

Page 19

Advertising
background image

MiG InfoCom AB

make all date calculations for the graphical mapping of
date/time to pixels. Cells can be of different sizes, in both
dimensions, to make time look compressed or expanded. For
instance to make 00:00 to 06:00 take up less screen space
per minute (compressed) or make Saturday and Sunday
smaller space wise.

Connecting a GridDimensionLayoutBean

To specify the size of the rows and columns in pixels we need
a layout. By default the DateAreaBean itself is just expanding
the rows/columns to the available bounds. By setting
GridDimensionLayoutBean on one or both of the dimensions
we can control the sizes of the rows/columns in those
dimensions.

To set a grid dimension layout on the DateAreaBean you
should create the GridDimensionLayoutBean as usual
(normally this means drag it to the GUI workspace) and
when it is created set it as either PrimaryDimensionLayout
or SecondaryDimensionLayout property on the
DateAreaBean.

There are two different types of rows (both rows and
columns are called rows since the class can be used
horizontally or vertically).

Normal rows are what you see in the date area when you
create it. Normal rows can only exist in one level (i.e. not
hierarchical). You can not have normal rows within other
normal rows. They always form an x by y square grid.

MiG Calendar JavaBeans Guide

Page 19 / 45

Advertising