public interface ITimelineObject extends IPropertiesOwner, Comparable<ITimelineObject>
DefaultGanttChartModel and various
default policy implementations. The model and the policies delegate many of
their calls to the timeline object.| Modifier and Type | Method and Description |
|---|---|
<T extends ITimelineObject> |
getChildren()
Returns an iterator over all children timeline objects of this timeline
object.
|
int |
getDragActions()
Returns the drag actions that can be performed on the timeline object.
|
String |
getLabel(LabelType type)
Returns labels for various purposes depending on the given label type
identifier.
|
int |
getLineIndex()
Returns the index of the line on which the timeline object is placed.
|
Object |
getPopupObject(boolean extended)
Returns the object for the popup window.
|
Object |
getPopupTitleObject()
Returns the object for the popup window.
|
Object |
getStatus()
Returns a status object that can be used by the
OverviewPalette
to color the timeline objects in different colors based on some
application specific information. |
ITimeSpan |
getTimeSpan()
Returns the time allocation of the timeline object.
|
boolean |
isDeletable()
Determines whether the timeline object can be deleted or not.
|
boolean |
isDurationChangeable()
Returns TRUE if the duration of the object can be modified.
|
boolean |
isInPlaceEditable()
Returns TRUE if the object can be edited via a timeline object editor.
|
boolean |
isParent()
Determines whether the timeline object is a parent timeline object.
|
boolean |
isSelectable()
Returns TRUE if the timeline object can be selected.
|
boolean |
isStartTimeChangeable()
Returns TRUE if the start time of the object can be modified.
|
void |
setTimeSpan(ITimeSpan span)
Sets the time allocation of the timeline object.
|
getProperty, setPropertycompareToString getLabel(LabelType type)
type - the type of label requestedILabelPolicy.getLabel(TimelineObjectPath, IGanttChartModel,
LabelType)Object getPopupObject(boolean extended)
extended - a flag that signals whether the user wants to see the standard
popup information or the extended versionPopupLayer,
IPopupRenderer,
DefaultPopupRenderer,
IPopupPolicy.getPopupValue(TimelineObjectPath, IGanttChartModel,
boolean)Object getPopupTitleObject()
PopupLayer,
IPopupRenderer,
DefaultPopupRenderer,
IPopupPolicy.getPopupTitleValue(TimelineObjectPath,
IGanttChartModel)boolean isDeletable()
IEditTimelineObjectPolicy.isDeletable(TimelineObjectPath,
IGanttChartModel)ITimeSpan getTimeSpan()
setTimeSpan(ITimeSpan)void setTimeSpan(ITimeSpan span)
span - the object's time allocationgetTimeSpan()boolean isInPlaceEditable()
IEditTimelineObjectPolicy.isInPlaceEditable(TimelineObjectPath,
IGanttChartModel),
ITimelineObjectEditorboolean isStartTimeChangeable()
IEditTimelineObjectPolicy.isStartTimeChangeable(TimelineObjectPath,
IGanttChartModel)boolean isDurationChangeable()
IEditTimelineObjectPolicy.isDurationChangeable(TimelineObjectPath,
IGanttChartModel)int getDragActions()
DnDConstants. Possible values are:
Declaring the drag actions is only half of the work needed for correct
drag and drop behaviour. A timeline object might be draggable but it also
needs a place where it can be dropped. The drop places are defined by
IGanttChartNode.getDropActions(Object, long).DefaultDragAndDropCommand,
IDragAndDropPolicy.getDragActions(TimelineObjectPath,
IGanttChartModel)boolean isSelectable()
ISelectionPolicy.isSelectable(TimelineObjectPath, IGanttChartModel)int getLineIndex()
IGanttChartNode.getLineCount()Object getStatus()
OverviewPalette
to color the timeline objects in different colors based on some
application specific information.boolean isParent()
getChildren()<T extends ITimelineObject> Iterator<T> getChildren()
T - isParent()Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.