|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the timeline objects returned by the nodepublic interface IResourceNode<T>
A resource node implements additonal methods required by Gantt chart nodes
that represent a resource. Typical for a resource is the notion of capacity.
The 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.
Method Summary | |
---|---|
double |
getCapacityAt(int rowHeight,
int y)
Returns the capacity value for the given y coordinate. |
java.util.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. |
Methods inherited from interface com.dlsc.flexgantt.model.gantt.IGanttChartNode |
---|
addTimelineObjects, clearTimelineObjects, getDropActions, getLineCount, getLineHeight, getLineLocation, getTimelineObjects, getTimelineObjects, getTimelineObjectsIterator, isSelectable, removeTimelineObjects |
Methods inherited from interface com.dlsc.flexgantt.model.treetable.ITreeTableNode |
---|
getColumnValue, getDragActions, getDropActions, getKey, getRowHeaderValue, getRowHeight, getRowHeightMaximum, getRowHeightMinimum, getToolTipText, isDeletable, isKeyEditable, isResizable, isRowLineVisible, isSelectable, isValueEditable, setColumnValue, setKey, setRowHeaderValue, setRowHeight, sort |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Method Detail |
---|
double getMinimumCapacity()
double getMaximumCapacity()
java.util.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 lines
int 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 location
double getCapacityAt(int rowHeight, int y)
rowHeight
- the height of the rowy
- the location for which to return a capacity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |