public static interface IlvActivityTileLayout.TilingPolicy
TilingPolicy
controls how many subrows are created for each
Gantt row by the tile layout and how activities are assigned
to the subrows.Modifier and Type | Method and Description |
---|---|
List<List<IlvActivityTileLayout.GraphicBounds>> |
assignGraphicsToSubRows(IlvActivityTileLayout.GraphicBounds[] graphics,
boolean compareBoundingBoxes)
Creates as many subrows as needed to accommodate the given activity graphics and
assigns the activity graphics to the subrows.
|
List<List<IlvActivityTileLayout.GraphicBounds>> assignGraphicsToSubRows(IlvActivityTileLayout.GraphicBounds[] graphics, boolean compareBoundingBoxes)
IlvActivityTileLayout.GraphicBounds
. This allows
the tiling policy to take advantage of the precomputed activity bounding boxes when
computing graphic overlap and assigning activity graphics to subrows. The result of
this method is a list of subrows, where each subrow is a list of IlvActivityTileLayout.GraphicBounds
representing the activities assigned to the subrow. All activity
graphics provided as input to the tiling policy must be assigned to one and only
one subrow.graphics
- The activity graphics to be tiled into subrows, as an
array of IlvActivityTileLayout.GraphicBounds
. If compareBoundingBoxes
is true
then the array will be sorted by
the x position of each activity graphic's bounding box.
If compareBoundingBoxes
is
false
then the array will be sorted by the
start time of each activity. Note, that the bounding
boxes are provided as input only. Modifying the
bounding box of a IlvActivityTileLayout.GraphicBounds
will not affect
how an activity is positioned.compareBoundingBoxes
- Indicates whether the tiling policy should compute
activity overlap by comparing the graphic bounding
boxes. If false
, activity overlap should
be computed by comparing the activity time intervals.IlvActivityTileLayout.GraphicBounds
representing the activities assigned to the subrow.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.