ilog.views.gantt.graphic
Interface IlvActivityTileLayout.TilingPolicy

All Known Implementing Classes:
IlvActivityTileLayout.DefaultTilingPolicy
Enclosing class:
IlvActivityTileLayout

public static interface IlvActivityTileLayout.TilingPolicy

A TilingPolicy controls how many subrows are created for each Gantt row by the tile layout and how activities are assigned to the subrows.

Since:
JViews 8.1

Method Summary
 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.
 

Method Detail

assignGraphicsToSubRows

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. The activity graphics are provided with their view bounding boxes as an array of 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.

Parameters:
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.
Returns:
The list of subrows, where each subrow is a list of IlvActivityTileLayout.GraphicBounds representing the activities assigned to the subrow.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.