|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.TreePath com.dlsc.flexgantt.model.gantt.TimelineObjectPath<T>
T
- the type of the timeline object to which the path pointspublic class TimelineObjectPath<T>
An extension of TreePath
which adds a reference to a timeline object
and the layer on which it is displayed to the tree path information. Timeline
object paths are used for creating unique references to timeline objects.
Constructor Summary | |
---|---|
TimelineObjectPath(java.lang.Object[] path,
T timelineObject,
ILayer layer)
Constructs a new timeline object path. |
|
TimelineObjectPath(java.lang.Object singlePath,
T timelineObject,
ILayer layer)
Constructs a new timeline object path. |
|
TimelineObjectPath(javax.swing.tree.TreePath path,
T timelineObject,
ILayer layer)
Constructs a new timeline object path. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
ILayer |
getLayer()
Returns the layer on which the timeline object gets displayed. |
T |
getTimelineObject()
Returns the timeline object to which the path points. |
javax.swing.tree.TreePath |
getTreePath()
Creates a tree path for the timeline object path. |
Methods inherited from class javax.swing.tree.TreePath |
---|
getLastPathComponent, getParentPath, getPath, getPathComponent, getPathCount, hashCode, isDescendant, pathByAddingChild, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimelineObjectPath(java.lang.Object singlePath, T timelineObject, ILayer layer)
singlePath
- the tree path if it consists of only one elementtimelineObject
- the timeline object to which the path pointslayer
- the layer on which the timeline object is displayedpublic TimelineObjectPath(java.lang.Object[] path, T timelineObject, ILayer layer)
path
- the tree path pointing to the hierarchy node on which the
timeline object is storedtimelineObject
- the timeline object to which the path pointslayer
- the layer on which the timeline object is displayedpublic TimelineObjectPath(javax.swing.tree.TreePath path, T timelineObject, ILayer layer)
path
- the tree path pointing to the hierarchy node on which the
timeline object is storedtimelineObject
- the timeline object to which the path pointslayer
- the layer on which the timeline object is displayedMethod Detail |
---|
public T getTimelineObject()
public ILayer getLayer()
public javax.swing.tree.TreePath getTreePath()
public boolean equals(java.lang.Object o)
equals
in class javax.swing.tree.TreePath
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |