uk.ac.kcl.cch.jb.pliny.commands
Class CreateNoteCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended byuk.ac.kcl.cch.jb.pliny.commands.CreateNoteCommand

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


Constructor Summary
CreateNoteCommand(NoteLucened note, Resource theResource, org.eclipse.draw2d.geometry.Rectangle rectHere)
          constructor for this command.
 
Method Summary
 void execute()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateNoteCommand

public CreateNoteCommand(NoteLucened note,
                         Resource theResource,
                         org.eclipse.draw2d.geometry.Rectangle rectHere)
constructor for this command.

Parameters:
note - NoteLucened to be reference or null if it needs to be created
theResource - Resource in whos reference/annotation area it is to appear
rectHere - where it is to appear there
Method Detail

execute

public void execute()

undo

public void undo()

redo

public void redo()