public interface ITimelineObjectSelectionModel
TimelineObjectLayer
.Modifier and Type | Method and Description |
---|---|
void |
addSelection(Collection<TimelineObjectPath> paths)
Adds several timeline objects to the selection at the same time.
|
void |
addSelection(TimelineObjectPath path)
Adds a selection / a selected timeline object to the model.
|
void |
addTimelineObjectSelectionModelListener(ITimelineObjectSelectionListener l)
Adds a listener to the model.
|
void |
clearSelection()
Clears the current selection.
|
void |
clearSelection(TreePath path)
Clears the current selection for the given path (clears the selection
within a specific row).
|
Iterator<TimelineObjectPath> |
getSelection()
Returns all timeline objects that are currently selected.
|
Iterator<TimelineObjectPath> |
getSelection(TreePath path)
Returns all timeline objects for the given node that are currently
selected.
|
Iterator<TimelineObjectPath> |
getSelection(TreePath path,
ITimeSpan span)
Returns all timeline objects for the given node and time span that are
currently selected.
|
Iterator<TreePath> |
getSelectionPaths()
Returns all tree paths that reference hierarchy objects on which a
selection exists / on which timeline objects are selected.
|
boolean |
isEmpty()
Determines if the current selection is empty.
|
boolean |
isSelected(TimelineObjectPath path)
Determines if the timeline object referenced by the given timeline object
path is currently selected.
|
void |
removeSelection(Collection<TimelineObjectPath> paths)
Removes several timeline objects from the selection at the same time.
|
void |
removeSelection(TimelineObjectPath path)
Removes a selection / a selected timeline object from the model.
|
void |
removeTimelineObjectSelectionModelListener(ITimelineObjectSelectionListener l)
Removes a listener from the model.
|
void clearSelection()
void clearSelection(TreePath path)
path
- the path to the hierarchy node for which the selection will be
clearedvoid addSelection(TimelineObjectPath path)
path
- the path to the timeline objectvoid addSelection(Collection<TimelineObjectPath> paths)
paths
- a collection of timeline object pathsvoid removeSelection(TimelineObjectPath path)
path
- the path to the timeline objectvoid removeSelection(Collection<TimelineObjectPath> paths)
paths
- a collection of timeline object pathsIterator<TimelineObjectPath> getSelection(TreePath path, ITimeSpan span)
Iterator
in order to
hide the actual data structure used to store the objects.path
- the path to the hierarchy node for which to return the
selected timeline objectsspan
- the time span for which to return the selected timeline
objectsgetSelection()
,
getSelection(TreePath)
Iterator<TimelineObjectPath> getSelection(TreePath path)
Iterator
in order to hide the
actual data structure used to store the objects.path
- the path to the hierarchy node for which to return the
selected timeline objectsgetSelection(TreePath, ITimeSpan)
,
getSelection()
Iterator<TimelineObjectPath> getSelection()
Iterator
in order to hide the actual data structure
used to store the objects.getSelection(TreePath)
,
getSelection(TreePath, ITimeSpan)
Iterator<TreePath> getSelectionPaths()
boolean isSelected(TimelineObjectPath path)
path
- the path to the checked timeline objectboolean isEmpty()
void addTimelineObjectSelectionModelListener(ITimelineObjectSelectionListener l)
l
- the listener to addvoid removeTimelineObjectSelectionModelListener(ITimelineObjectSelectionListener l)
l
- the listener to removeCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.