T - the type of the timeline objects returned by the nodepublic interface IResourceNode<T> extends IGanttChartNode<T>
IResourceNode assumes that a resource has a minimum and a maximum
capacity. The values for these capacities can be used to visulize capacity
restrictions on the resource. Additonally a set of capacity lines can be
associated with each resource node, which allows (resource) row renderers to
visualize a nice grid in the background of each row that shows a resource.| Modifier and Type | Method and Description |
|---|---|
double |
getCapacityAt(int rowHeight,
int y)
Returns the capacity value for the given y coordinate.
|
List<CapacityLine> |
getCapacityLines(int rowHeight,
boolean major)
Returns a list of capacity lines that can be picked up by row renderers
to draw a nice scale in the background of the resource row.
|
int |
getCapacityLocation(int rowHeight,
double capacity)
Returns the location / y-coordinate of a given capacity for a given row
height.
|
double |
getMaximumCapacity()
Returns the maximum capacity of the resource.
|
double |
getMinimumCapacity()
Returns the minimum capacity of the resource.
|
addTimelineObjects, clearTimelineObjects, getDropActions, getLineCount, getLineHeight, getLineLocation, getSpreadsheetValue, getTimelineObjects, getTimelineObjects, getTimelineObjectsIterator, isSelectable, isTimelineObjectCreatableAt, removeTimelineObjects, setSpreadsheetValuegetColumnValue, getDragActions, getDropActions, getKey, getPopupObject, getPopupTitleObject, getRowHeaderValue, getRowHeight, getRowHeightMaximum, getRowHeightMinimum, getToolTipText, isDeletable, isKeyEditable, isReassignable, isResizable, isRowLineVisible, isSelectable, isValueEditable, setColumnValue, setKey, setRowHeaderValue, setRowHeight, sortchildren, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafdouble getMinimumCapacity()
double getMaximumCapacity()
List<CapacityLine> getCapacityLines(int rowHeight, boolean major)
rowHeight - the height of the row in which the resource gets displayedmajor - a flag signalling whether the application queries the major or
the minor capacity linesint getCapacityLocation(int rowHeight,
double capacity)
rowHeight - the current height of the row in which the resource node gets
displayedcapacity - the capacity for which to return a locationdouble getCapacityAt(int rowHeight,
int y)
rowHeight - the height of the rowy - the location for which to return a capacityCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.