Class ChangePolyPointsCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.widgets.feedback.ChangePolyPointsCommand
public final class ChangePolyPointsCommand
extends org.eclipse.gef.commands.Command
A command, that changes the point list of a poly widget.
-
Constructor Summary
ConstructorDescriptionChangePolyPointsCommand
(AbstractPolyModel polyModel, org.eclipse.draw2d.geometry.PointList newPoints) Constructor. -
Method Summary
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canRedo, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
-
Constructor Details
-
ChangePolyPointsCommand
public ChangePolyPointsCommand(AbstractPolyModel polyModel, org.eclipse.draw2d.geometry.PointList newPoints) Constructor.- Parameters:
polyModel
- the polyline element, whose points should be changednewPoints
- the new point list
-
-
Method Details
-
execute
public void execute()- Overrides:
execute
in classorg.eclipse.gef.commands.Command
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.Command
-