|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITimelineObject
An interface for objects that can be placed on a timeline. The interface is
being used in combination with the DefaultGanttChartModel
and various
default policy implementations. The model and the policies delegate many of
their calls to the timeline object.
Method Summary | ||
---|---|---|
|
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. |
|
java.lang.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. |
|
java.lang.Object |
getPopupObject(boolean extended)
Returns the object for the popup window. |
|
java.lang.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. |
Methods inherited from interface com.dlsc.flexgantt.model.IPropertiesOwner |
---|
getProperty, setProperty |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
java.lang.String getLabel(LabelType type)
type
- the type of label requested
ILabelPolicy.getLabel(Object, Object, IGanttChartModel, LabelType)
java.lang.Object getPopupObject(boolean extended)
extended
- a flag that signals whether the user wants to see the standard
popup information or the extended version
PopupLayer
,
IPopupRenderer
,
DefaultPopupRenderer
,
IPopupPolicy.getPopupValue(Object, Object, IGanttChartModel,
boolean)
boolean isDeletable()
IEditTimelineObjectPolicy.isDeletable(Object, Object,
IGanttChartModel)
ITimeSpan getTimeSpan()
setTimeSpan(ITimeSpan)
void setTimeSpan(ITimeSpan span)
span
- the object's time allocationgetTimeSpan()
boolean isInPlaceEditable()
IEditTimelineObjectPolicy.isInPlaceEditable(Object, Object,
IGanttChartModel)
,
ITimelineObjectEditor
boolean isStartTimeChangeable()
IEditTimelineObjectPolicy.isStartTimeChangeable(Object, Object,
IGanttChartModel)
boolean isDurationChangeable()
IEditTimelineObjectPolicy.isDurationChangeable(Object, Object,
IGanttChartModel)
int getDragActions()
DnDConstants
. Possible values are:
DnDConstants.ACTION_COPY
DnDConstants.ACTION_MOVE
DnDConstants.ACTION_COPY_OR_MOVE
IGanttChartNode.getDropActions(Object, long)
.
DefaultDragAndDropCommand
,
IDragAndDropPolicy.getDragActions(Object, Object, IGanttChartModel)
boolean isSelectable()
ISelectionPolicy.isSelectable(Object, Object, IGanttChartModel)
int getLineIndex()
IGanttChartNode.getLineCount()
java.lang.Object getStatus()
OverviewPalette
to color the timeline objects in different colors based on some
application specific information.
boolean isParent()
getChildren()
<T extends ITimelineObject> java.util.Iterator<T> getChildren()
T
-
isParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |