Class GanttRowClustered<R,B>
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.gantt.data.GanttRow<R,B>
overit.geocallapp.utilities.ux.ui.container.gantt.data.GanttRowClustered<R,B>
- All Implemented Interfaces:
Serializable,Iterable<GanttBlock<B>>
Extension of
GanttRow
that holds also a list of GanttBlockCluster to
group the overlapped GanttBlock- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.data.GanttRow
_baseTooltipItems, _blocks, _blocksIndex, _children, _childrenRowIndex, _description, _id, _parent, _rawData, ROW_PATH_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlock(GanttBlock<B> block) Add the block to the row, and then add the given block to the cluster that overlaps it, if exists.intOverride the count of the GanttRow to have the actual number of blocks, summing the blocks that each cluster holdsgetCluster(String id) Methods inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.data.GanttRow
addChildRow, addIndicator, expandToIncludeBlocks, findRow, getBaseTooltipItems, getBlock, getBlocks, getBranchSize, getByPath, getChild, getChildren, getDescription, getId, getIndicators, getLevel, getParent, getPath, getRawData, hasChildWithId, isFake, isLeaf, iterator, removeIndicator, setBaseTooltipItems, setDescription, setId, setParent, setRawData, visitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GanttRowClustered
public GanttRowClustered()
-
-
Method Details
-
addBlock
Add the block to the row, and then add the given block to the cluster that overlaps it, if exists. Otherwise, create a new cluster for this new block- Overrides:
addBlockin classGanttRow<R,B> - Parameters:
block- theGanttBlockto add to this row
-
getCluster
- Parameters:
id- the id of the cluster- Returns:
- the required
GanttBlockCluster. - Throws:
overit.geocall.asserts.AssertsException- if the the row doesn't have a cluster with the required id.
-
getClusters
- Returns:
- an unmodifiable list with the generated clusters in this row
-
countBlocks
public int countBlocks()Override the count of the GanttRow to have the actual number of blocks, summing the blocks that each cluster holds- Overrides:
countBlocksin classGanttRow<R,B> - Returns:
- the number of blocks in this row
-