|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.command.AbstractCommand com.dlsc.flexgantt.command.layer.DefaultCreateTimelineObjectCommand
public class DefaultCreateTimelineObjectCommand
A command that creates a new timeline object.
IEditTimelineObjectPolicy.getCreateCommand(Object,
com.dlsc.flexgantt.model.gantt.IGanttChartModel, ILayer, ITimeSpan, int)
,
Serialized FormConstructor Summary | |
---|---|
DefaultCreateTimelineObjectCommand(DefaultGanttChartNode node,
DefaultGanttChartModel model,
ILayer layer,
ITimeSpan timeSpan,
int lineIndex)
Constructs a new command. |
Method Summary | |
---|---|
protected DefaultTimelineObject |
createTimelineObject()
Creates the actual timeline object instance, which is of type DefaultTimelineObject . |
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
ILayer |
getLayer()
Returns the layer on which the timeline object will be displayed. |
int |
getLineIndex()
Returns the line index used for placing the timeline object on an inner line. |
DefaultGanttChartModel |
getModel()
Returns the model that will be modified by the command. |
DefaultTimelineObject |
getNewTimelineObject()
Returns the newly created timeline object. |
DefaultGanttChartNode |
getNode()
Returns the node for which the timeline object gets created. |
ITimeSpan |
getTimeSpan()
Returns the time span where the newly created timeline object will be placed. |
void |
setLayer(ILayer layer)
Sets the layer on which the timeline object will be displayed. |
void |
setModel(DefaultGanttChartModel model)
Sets the model that gets modified by the command. |
void |
setNode(DefaultGanttChartNode node)
Sets the node for which the timeline object gets created. |
void |
setTimeSpan(ITimeSpan span)
Sets the time span where the newly created timeline object will be placed. |
void |
undoCommand(IProgressMonitor monitor)
Undos the command. |
Methods inherited from class com.dlsc.flexgantt.command.AbstractCommand |
---|
getName, isRedoable, isRelevant, isUndoable, redoCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCreateTimelineObjectCommand(DefaultGanttChartNode node, DefaultGanttChartModel model, ILayer layer, ITimeSpan timeSpan, int lineIndex)
node
- the node to which the new timeline object will be addedmodel
- the model that gets modified by the commandlayer
- the layer on which the new timeline object will be placedtimeSpan
- the time span where the new timeline object will be locatedlineIndex
- the index of the inner line where the timeline object will be
locatedMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorprotected DefaultTimelineObject createTimelineObject()
DefaultTimelineObject
. Subclasses can override this method to
create a timeline object of a different type. This method should only be
called once during the executeCommand(IProgressMonitor)
method
invocation. After that only the created instance should be used.
public ILayer getLayer()
public void setLayer(ILayer layer)
layer
- the layer on which the timeline object will be displayedpublic ITimeSpan getTimeSpan()
public void setTimeSpan(ITimeSpan span)
span
- the time span of the new timeline objectpublic DefaultGanttChartNode getNode()
public void setNode(DefaultGanttChartNode node)
node
- the node for which the timeline object gets createdpublic DefaultGanttChartModel getModel()
public void setModel(DefaultGanttChartModel model)
model
- the model that gets modified by the commandpublic DefaultTimelineObject getNewTimelineObject()
public int getLineIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |