|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.Undo
public class Undo
A class to handle undo/redo operations for Tracker.
| Nested Class Summary | |
|---|---|
protected class |
Undo.CompoundEdit
A class to undo/redo a pair of UndoableEdits. |
protected class |
Undo.CoordsEdit
A class to undo/redo coords changes. |
protected class |
Undo.FilterClear
A class to undo/redo filter deletion. |
protected class |
Undo.FilterDelete
A class to undo/redo filter deletion. |
protected class |
Undo.FilterEdit
A class to undo/redo filter deletion. |
protected class |
Undo.ImageVideoEdit
A class to undo/redo image video edits. |
protected class |
Undo.StepEdit
A class to undo/redo step changes. |
protected class |
Undo.TEdit
A class to undo/redo changes to objects associated with a TrackerPanel. |
protected class |
Undo.TrackClear
A class to undo/redo clearing tracks. |
protected class |
Undo.TrackDelete
A class to undo/redo track deletion. |
protected class |
Undo.TrackEdit
A class to undo/redo track changes. |
protected class |
Undo.VideoReplace
A class to undo/redo video replacements. |
| Field Summary | |
|---|---|
protected javax.swing.undo.UndoManager |
undoManager
|
protected javax.swing.undo.UndoableEditSupport |
undoSupport
|
| Method Summary | |
|---|---|
static boolean |
canRedo(TrackerPanel panel)
Reports whether an undoable edit is available for the specified panel. |
static boolean |
canUndo(TrackerPanel panel)
Reports whether an undoable edit is available for the specified panel. |
protected static void |
postCoordsEdit(TrackerPanel panel,
XMLControl control)
Posts an undoable edit for a changed coordinate system. |
protected static void |
postFilterClear(TrackerPanel panel,
java.util.List<java.lang.String> xml)
Posts an undoable edit for a TrackerPanel cleared of video filters. |
protected static void |
postFilterDelete(TrackerPanel panel,
Filter filter)
Posts an undoable edit for a video filter deletion. |
protected static void |
postFilterEdit(TrackerPanel panel,
Filter filter,
XMLControl control)
Posts an undoable edit for a change to a video filter. |
protected static void |
postImageVideoEdit(TrackerPanel panel,
java.lang.String[] paths,
int index,
int step,
boolean added)
Posts an undoable edit for an edited image video. |
protected static void |
postStepEdit(Step step,
XMLControl control)
Posts an undoable edit for a changed step. |
protected static void |
postTrackAndCoordsEdit(TTrack track,
XMLControl trackControl,
XMLControl coordsControl)
Posts a compound undoable edit for tracks that control the coords. |
protected static void |
postTrackClear(TrackerPanel panel,
java.util.List<java.lang.String> xml)
Posts an undoable edit for a TrackerPanel cleared of tracks. |
protected static void |
postTrackDelete(TTrack track)
Posts an undoable edit for a deleted track. |
protected static void |
postTrackEdit(TTrack track,
XMLControl control)
Posts an undoable edit for a changed track. |
protected static void |
postVideoReplace(TrackerPanel panel,
XMLControl control)
Posts an undoable edit for a replaced video clip. |
static void |
redo(TrackerPanel panel)
Redoes the most recently undone edit for the specified panel. |
static void |
undo(TrackerPanel panel)
Undoes the most recently posted edit for the specified panel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.undo.UndoableEditSupport undoSupport
protected javax.swing.undo.UndoManager undoManager
| Method Detail |
|---|
public static boolean canUndo(TrackerPanel panel)
panel - the TrackerPanel
public static void undo(TrackerPanel panel)
panel - the TrackerPanelpublic static boolean canRedo(TrackerPanel panel)
panel - the TrackerPanel
public static void redo(TrackerPanel panel)
panel - the TrackerPanelprotected static void postTrackDelete(TTrack track)
track - the track
protected static void postTrackClear(TrackerPanel panel,
java.util.List<java.lang.String> xml)
panel - the TrackerPanel that has been clearedxml - a list of XML strings describing the cleared tracks
protected static void postTrackEdit(TTrack track,
XMLControl control)
track - the changed trackcontrol - an XMLControl with the previous state of the track
protected static void postStepEdit(Step step,
XMLControl control)
step - the changed stepcontrol - an XMLControl with the previous state of the track
protected static void postCoordsEdit(TrackerPanel panel,
XMLControl control)
panel - the TrackerPanel with the changed coordscontrol - an XMLControl with the previous state of the coords
protected static void postTrackAndCoordsEdit(TTrack track,
XMLControl trackControl,
XMLControl coordsControl)
track - the changed tracktrackControl - an XMLControl with the previous state of the trackcoordsControl - an XMLControl with the previous state of the coords
protected static void postImageVideoEdit(TrackerPanel panel,
java.lang.String[] paths,
int index,
int step,
boolean added)
panel - the TrackerPanel with the new video clippaths - paths to the video filesindex - step number at which edit occuredstep - step number after edit occuredadded - true if a frame was added
protected static void postVideoReplace(TrackerPanel panel,
XMLControl control)
panel - the TrackerPanel with the new video clipcontrol - an XMLControl describing the previous video clip
protected static void postFilterDelete(TrackerPanel panel,
Filter filter)
panel - the TrackerPanel with the new video clipfilter - the deleted filter
protected static void postFilterEdit(TrackerPanel panel,
Filter filter,
XMLControl control)
panel - the TrackerPanel with the new video clipfilter - the filtercontrol - an XMLControl with the previous state of the filter
protected static void postFilterClear(TrackerPanel panel,
java.util.List<java.lang.String> xml)
panel - the TrackerPanel that has been clearedxml - a list of XML strings describing the cleared tracks
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||