T
- the type of the timeline object to which the path pointspublic class TimelineObjectPath<T> extends TreePath
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 and Description |
---|
TimelineObjectPath(Object[] path,
T timelineObject,
ILayer layer)
Constructs a new timeline object path.
|
TimelineObjectPath(Object singlePath,
T timelineObject,
ILayer layer)
Constructs a new timeline object path.
|
TimelineObjectPath(TreePath path,
T timelineObject,
ILayer layer)
Constructs a new timeline object path.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ILayer |
getLayer()
Returns the layer on which the timeline object gets displayed.
|
Object |
getNode()
Returns the node in the tree table to which the path is pointing.
|
T |
getTimelineObject()
Returns the timeline object to which the path points.
|
TreePath |
getTreePath()
Creates a tree path for the timeline object path.
|
getLastPathComponent, getParentPath, getPath, getPathComponent, getPathCount, hashCode, isDescendant, pathByAddingChild, toString
public TimelineObjectPath(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(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(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 displayedpublic T getTimelineObject()
public Object getNode()
TreePath.getLastPathComponent()
.public ILayer getLayer()
public TreePath getTreePath()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.