|
||||||||||
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.DefaultChangeCapacityCommand
public class DefaultChangeCapacityCommand
A command that is used to change the capacity used value of a
capacity object. The command can only be used for situations where the model
is an instance of DefaultGanttChartModel
and the timeline object
implements the ICapacityObject
interface.
ICapacityObject.setCapacityUsed(double)
,
IEditCapacityObjectPolicy.isCapacityChangeable(Object, Object,
com.dlsc.flexgantt.model.gantt.IGanttChartModel)
,
IEditCapacityObjectPolicy.getChangeCapacityCommand(Object, Object,
com.dlsc.flexgantt.model.gantt.IGanttChartModel, double)
,
Serialized FormConstructor Summary | |
---|---|
DefaultChangeCapacityCommand(ICapacityObject object,
DefaultGanttChartModel model,
double capacity)
Constructs a new command. |
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
ICapacityObject |
getCapacityObject()
Returns the capacity object that was / will be modified by the command. |
DefaultGanttChartModel |
getModel()
Returns the model to which the capacity object belongs. |
double |
getNewCapacity()
Returns the new capacity that will be / was assigned to the capacity object. |
double |
getOldCapacity()
Returns the old capacity that was assigned to the capacity object. |
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 DefaultChangeCapacityCommand(ICapacityObject object, DefaultGanttChartModel model, double capacity)
object
- the capacity object that will be modifiedmodel
- the model to which the object belongscapacity
- the capacity that will be assigned to the objectMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic ICapacityObject getCapacityObject()
public DefaultGanttChartModel getModel()
public double getNewCapacity()
public double getOldCapacity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |