|
||||||||||
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 IGanttChartNode<T>
An extension of the ITreeTableNode
interface, which carries
additional information that can be used to populate the right-hand
side of a Gantt chart. Objects that implement this interface are capable of
returning objects for a given time span, values for rendering custom row
headers, values for spreadsheet cells, etc.
Method Summary | |
---|---|
void |
addTimelineObjects(ILayer layer,
java.util.Collection<T> timelineObjects)
Adds a collection of timeline objects to the node. |
void |
clearTimelineObjects(ILayer layer)
Removes all timeline objects (currently shown on the given layer) from the node. |
int |
getDropActions(T timelineObject,
long timePoint)
Returns the drop actions that can be performed on the node related to timeline objects. |
int |
getLineCount()
Returns how many lines will be shown within the row that is occuupied by the Gantt chart node. |
int |
getLineHeight(int lineIndex,
int rowHeight)
Returns the height of the line with the given index based on the given row height. |
int |
getLineLocation(int lineIndex,
int rowHeight)
Returns the location of the line with the given index based on the given row height. |
java.util.List<T> |
getTimelineObjects()
Returns a list of all timeline objects on all layers. |
java.util.List<T> |
getTimelineObjects(ILayer layer)
Returns a list of all timeline objects that are associated with the given layer. |
java.util.Iterator<T> |
getTimelineObjectsIterator(ILayer layer,
ITimeSpan span)
Returns an iterator for all timeline objects on the given layer for the given time span. |
boolean |
isSelectable(ITimeSpan span)
Determines whether the given time span can be selected for the node. |
void |
removeTimelineObjects(ILayer layer,
java.util.Collection<T> timelineObjects)
Removes a collection of objects from the node. |
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 |
---|
java.util.Iterator<T> getTimelineObjectsIterator(ILayer layer, ITimeSpan span)
layer
- the layer for which to return the timeline objectsspan
- the time span for which to return the timeline objects
getTimelineObjects(ILayer)
,
getTimelineObjects()
java.util.List<T> getTimelineObjects()
getTimelineObjects(ILayer)
java.util.List<T> getTimelineObjects(ILayer layer)
layer
- the layer for which to return the timeline objects
getTimelineObjectsIterator(ILayer, ITimeSpan)
,
addTimelineObjects(ILayer, Collection)
,
removeTimelineObjects(ILayer, Collection)
void clearTimelineObjects(ILayer layer)
layer
- the layer from which to remove all timeline objectsvoid addTimelineObjects(ILayer layer, java.util.Collection<T> timelineObjects)
layer
- the layer to which the objects will be addedtimelineObjects
- the objects that will be addedremoveTimelineObjects(ILayer, Collection)
void removeTimelineObjects(ILayer layer, java.util.Collection<T> timelineObjects)
layer
- the layer in which the timeline objects are currently showntimelineObjects
- the objects to removeaddTimelineObjects(ILayer, Collection)
int getLineCount()
int getLineLocation(int lineIndex, int rowHeight)
getLineCount()
) and multiply
it with the line index. This way all lines will be distributed equally
across the total height of the row.
lineIndex
- the index of the line for which to return a location (if the
total line count is 4 then the indices will be 0, 1, 2, 3)rowHeight
- the total height of the Gantt chart row (this value can vary
depending on whether the user or the application resized the
row)
int getLineHeight(int lineIndex, int rowHeight)
getLineCount()
) but
applications are free to let lines overlap if so desired.
lineIndex
- the index of the line for which to return the height (if the
total line count is 4 then the indices will be 0, 1, 2, 3)rowHeight
- the total height of the Gantt chart row (this value can vary
depending on whether the user or the application resized the
row)
boolean isSelectable(ITimeSpan span)
span
- the time span to check for selectability
int getDropActions(T timelineObject, long timePoint)
DnDConstants
. Possible values are:
DnDConstants.ACTION_COPY
DnDConstants.ACTION_MOVE
DnDConstants.ACTION_COPY_OR_MOVE
ITimelineObject.getDragActions()
.
timelineObject
- the timeline object that might get dropped onto this nodetimePoint
- the time point where the timeline object might get dropped
DefaultDragAndDropCommand
,
IDragAndDropPolicy.getDragActions(Object, Object, IGanttChartModel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |