at.ofai.music.beatroot
public class EditAction extends Object
Field Summary | |
---|---|
static EditAction | current The EditAction which would be undone by clicking on "Undo". |
static boolean | debug A flag indicating whether debugging information should be printed. |
static BeatTrackDisplay | display The main panel of BeatRoot's GUI, which is called to perform undo/redo |
double | from The original position of a beat, before editing took place.
|
static EditAction | HEAD The head of the list of edit actions, marked by a dummy EditAction object |
EditAction | next The next edit action in order of occurrence |
EditAction | prev The previous edit action in order of occurrence |
double | to The new position of a beat, after editing took place.
|
Constructor Summary | |
---|---|
EditAction(double f, double t, EditAction n, EditAction p) Constructor: |
Method Summary | |
---|---|
static void | add(double from, double to) Add a new EditAction to the list |
static void | clear() Clear the list of EditActions |
void | print() Prints a single EditAction (for debugging) |
static void | printAll() Prints the queue of EditActions (for debugging) |
static void | redo() Redo the last EditAction which was just undone |
static void | setDisplay(BeatTrackDisplay btd) Set up a hook to the GUI's data panel for performing undo/redo |
static void | undo() Undo the last EditAction |
Parameters: f The original beat time t The new beat time n The next EditAction p The previous EditAction