Modelers

org.topcased.modeler.commands
Class AbstractMoveCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.commands.AbstractMoveCommand
Direct Known Subclasses:
MoveBackwardCommand, MoveForwardCommand, MoveToBackCommand, MoveToFrontCommand

public class AbstractMoveCommand
extends org.eclipse.gef.commands.Command

A class defining an abstract command to change the visual plan of a graph element. It offers methods to advance, to move back or to put on the foreground or the background.
Creation : 11 oct. 2005


Constructor Summary
protected AbstractMoveCommand(GraphElement element)
          Constructor.
 
Method Summary
 void execute()
           
protected  void moveBackward()
          Move backward the current graph element in the diagram plans.
protected  void moveForward()
          Move forward the current graph element in the diagram plans.
protected  void moveToBack()
          Move to back the current graph element in the diagram plans.
protected  void moveToFront()
          Move to front the current graph element in the diagram plans.
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMoveCommand

protected AbstractMoveCommand(GraphElement element)
Constructor.
Cannot be instantiated since it is an abstract class.

Parameters:
element - the element to move through diagram plans
Method Detail

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command

moveForward

protected void moveForward()
Move forward the current graph element in the diagram plans.


moveBackward

protected void moveBackward()
Move backward the current graph element in the diagram plans.


moveToFront

protected void moveToFront()
Move to front the current graph element in the diagram plans.


moveToBack

protected void moveToBack()
Move to back the current graph element in the diagram plans.


Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.