com.threerings.tudey.tools
Class EntryEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
com.threerings.tudey.tools.EntryEdit
- All Implemented Interfaces:
- Serializable, UndoableEdit
public class EntryEdit
- extends AbstractUndoableEdit
Represents an edit to the scene's entries (and paint).
- See Also:
- Serialized Form
EntryEdit
public EntryEdit(TudeySceneModel scene,
int id,
int layer,
TudeySceneModel.Entry[] add,
TudeySceneModel.Entry[] update,
Object[] remove)
- Creates and applies a new entry edit.
EntryEdit
public EntryEdit(TudeySceneModel scene,
int id,
int layer,
Rectangle region,
TudeySceneModel.Paint paint)
- Creates and applies a new paint edit.
addEdit
public boolean addEdit(UndoableEdit edit)
- Specified by:
addEdit in interface UndoableEdit- Overrides:
addEdit in class AbstractUndoableEdit
undo
public void undo()
throws CannotUndoException
- Specified by:
undo in interface UndoableEdit- Overrides:
undo in class AbstractUndoableEdit
- Throws:
CannotUndoException
redo
public void redo()
throws CannotRedoException
- Specified by:
redo in interface UndoableEdit- Overrides:
redo in class AbstractUndoableEdit
- Throws:
CannotRedoException
Copyright © 2011. All Rights Reserved.