pl.edu.agh.cast.command
Class LabelCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by pl.edu.agh.cast.command.LabelCommand

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

Changes value of a single attribute of a given node. Used to change its label (produced by NodeDirectEditPolicy).

Author:
njord, awos

Constructor Summary
LabelCommand(Node node, java.lang.String attributeId, java.lang.String newValue)
           
 
Method Summary
 void execute()
           
 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

LabelCommand

public LabelCommand(Node node,
                    java.lang.String attributeId,
                    java.lang.String newValue)
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


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.