com.softsynth.jmsl.score
Class NotePropertiesTransformCommand

java.lang.Object
  extended by com.softsynth.jmsl.score.ScoreCommand
      extended by com.softsynth.jmsl.score.NotePropertiesTransformCommand
All Implemented Interfaces:
Namable, Command, Undoable, java.lang.Cloneable

public class NotePropertiesTransformCommand
extends ScoreCommand
implements java.lang.Cloneable

Before operating, load a hashtable of original notes as keys pointing to their clones. Use the clones to copy properties back to the originals for undo

Author:
Nick Didkovsky, (c) 2004 All rights reserved, Email: didkovn@mail.rockefeller.edu

Constructor Summary
NotePropertiesTransformCommand(NotePropertiesTransform transform)
           
 
Method Summary
 void execute()
           
 java.lang.String getName()
           
 boolean isRedoable()
           
 boolean isUndoable()
           
static void main(java.lang.String[] args)
           
 void redo()
           
 void setName(java.lang.String n)
           
 void setScore(Score score)
           
 java.lang.String toString()
           
 void undo()
           
 
Methods inherited from class com.softsynth.jmsl.score.ScoreCommand
clone, getScore
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotePropertiesTransformCommand

public NotePropertiesTransformCommand(NotePropertiesTransform transform)
Method Detail

setScore

public void setScore(Score score)
Overrides:
setScore in class ScoreCommand

execute

public void execute()
Specified by:
execute in interface Command

undo

public void undo()
Specified by:
undo in interface Undoable

redo

public void redo()
Specified by:
redo in interface Undoable

isUndoable

public boolean isUndoable()
Overrides:
isUndoable in class ScoreCommand

isRedoable

public boolean isRedoable()
Overrides:
isRedoable in class ScoreCommand

getName

public java.lang.String getName()
Specified by:
getName in interface Namable

setName

public void setName(java.lang.String n)
Specified by:
setName in interface Namable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)