Class InsertStaffCommand

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

public class InsertStaffCommand
extends ScoreCommand
  • Constructor Summary

    Constructors
    Constructor Description
    InsertStaffCommand​(Score score, int staffIndex)  
  • Method Summary

    Modifier and Type Method Description
    void execute()  
    int getInsertedStaffIndex()
    find out what the selected staff index was when insert staff was called
    java.util.Vector getInsertedStaves()  
    java.lang.String getName()  
    boolean isRedoable()  
    boolean isUndoable()  
    void redo()  
    void setName​(java.lang.String n)  
    void undo()  

    Methods inherited from class com.softsynth.jmsl.score.ScoreCommand

    clone, getScore, setScore

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InsertStaffCommand

      public InsertStaffCommand​(Score score, int staffIndex)
  • Method Details

    • execute

      public void execute()
    • undo

      public void undo()
    • redo

      public void redo()
    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String n)
    • isUndoable

      public boolean isUndoable()
      Overrides:
      isUndoable in class ScoreCommand
    • isRedoable

      public boolean isRedoable()
      Overrides:
      isRedoable in class ScoreCommand
    • getInsertedStaffIndex

      public int getInsertedStaffIndex()
      find out what the selected staff index was when insert staff was called
    • getInsertedStaves

      public java.util.Vector getInsertedStaves()