T - the type of the wrapped user / business objectS - the type of the timeline objects returned by the nodepublic class DefaultResourceNode<T,S extends ITimelineObject> extends DefaultGanttChartNode<T,S> implements IResourceNode<S>
The default configuration of the node is:
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
DefaultResourceNode()
Constructs a new resource node.
|
DefaultResourceNode(boolean allowsChildren)
Constructs a new resource node.
|
DefaultResourceNode(T userObject)
Constructs a new resource node.
|
DefaultResourceNode(T userObject,
boolean allowsChildren)
Constructs a new resource node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMajorCapacityLine(CapacityLine line)
Adds the given major capacity line to the resource node.
|
void |
addMinorCapacityLine(CapacityLine line)
Adds the given minor capacity line to the resource node.
|
void |
clearMajorCapacityLines()
Removes all major capacity lines from the resource node.
|
void |
clearMinorCapacityLines()
Removes all minor capacity lines from the resource node.
|
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 node.
|
double |
getMinimumCapacity()
Returns the minimum capacity of the resource node.
|
void |
removeMajorCapacityLine(CapacityLine line)
Removes the given major capacity line from the resource node.
|
void |
removeMinorCapacityLine(CapacityLine line)
Removes the given minor capacity line from the resource node.
|
void |
setMaximumCapacity(double capacity)
Sets the maximum capacity of the resource node.
|
void |
setMinimumCapacity(double capacity)
Sets the minimum capacity of the resource node.
|
addTimelineObject, addTimelineObjects, addTimelineObjects, clearSpreadsheetValues, clearTimelineObjects, getDropActions, getLineCount, getLineHeight, getLineLocation, getSpreadsheetValue, getTimelineObjects, getTimelineObjects, getTimelineObjectsIterator, getTimelineObjectsIterator, isSelectable, isTimelineObjectCreatableAt, removeTimelineObject, removeTimelineObjects, removeTimelineObjects, setLineCount, setRowHeight, setSpreadsheetValue, setTimelineObject, setTimelineObjects, setTimelineObjects, sortTimelineObjects, validateTimelineObjectListadd, compare, compare, getColumnValue, getComparator, getDragActions, getDropActions, getKey, getKeyComparator, getPopupObject, getPopupTitleObject, getRowHeaderValue, getRowHeight, getRowHeightMaximum, getRowHeightMinimum, getToolTipText, getTypedUserObject, getUserObject, insert, isDeletable, isKeyEditable, isReassignable, isResizable, isRowLineVisible, isSelectable, isSorting, isValueEditable, setColumnValue, setComparator, setDefaultRowHeight, setDeletable, setDragActions, setKey, setKeyComparator, setKeyEditable, setPopupObject, setPopupTitleObject, setResizable, setRowHeaderValue, setRowHeightMaximum, setRowHeightMinimum, setRowLineVisible, setSelectable, setToolTipText, setTypedUserObject, setUserObject, setValueEditable, sortbreadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddTimelineObjects, 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, isLeafremove, remove, removeFromParent, setParentcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic DefaultResourceNode(T userObject, boolean allowsChildren)
userObject - the wrapped user / business objectallowsChildren - a flag signalling whether the node allows child nodes at allpublic DefaultResourceNode(T userObject)
userObject - the wrapped user / business objectpublic DefaultResourceNode(boolean allowsChildren)
allowsChildren - a flag signalling whether the node allows child nodes at allpublic DefaultResourceNode()
public List<CapacityLine> getCapacityLines(int rowHeight, boolean major)
IResourceNodegetCapacityLines in interface IResourceNode<S extends ITimelineObject>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 linespublic int getCapacityLocation(int rowHeight,
double capacity)
IResourceNodegetCapacityLocation in interface IResourceNode<S extends ITimelineObject>rowHeight - the current height of the row in which the resource node gets
displayedcapacity - the capacity for which to return a locationpublic double getCapacityAt(int rowHeight,
int y)
IResourceNodegetCapacityAt in interface IResourceNode<S extends ITimelineObject>rowHeight - the height of the rowy - the location for which to return a capacitypublic void addMajorCapacityLine(CapacityLine line)
line - the capacity line to addpublic void removeMajorCapacityLine(CapacityLine line)
line - the capacity line to removepublic void addMinorCapacityLine(CapacityLine line)
line - the capacity line to addpublic void removeMinorCapacityLine(CapacityLine line)
line - the capacity line to removepublic void clearMajorCapacityLines()
public void clearMinorCapacityLines()
public double getMaximumCapacity()
getMaximumCapacity in interface IResourceNode<S extends ITimelineObject>public void setMaximumCapacity(double capacity)
capacity - the maximum capacity of the resource nodepublic double getMinimumCapacity()
getMinimumCapacity in interface IResourceNode<S extends ITimelineObject>public void setMinimumCapacity(double capacity)
capacity - the minimum capacity of the resource nodeCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.