org.malai.undo
Interface Undoable

All Known Implementing Classes:
AddShape, CutShapes, DeleteShapes, InsertPicture, JoinShapes, ModifyLatexProperties, ModifyMagneticGrid, ModifyShapeProperty, MoveCtrlPoint, MovePointShape, PasteShapes, RotateShapes, ScaleShapes, SeparateShapes, SetUnit, TranslateShapes

public interface Undoable

Defines an interface for undoable objects. This file is part of libMalai. Copyright (c) 2009-2012 Arnaud BLOUIN libMalan is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. libMalan is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Since:
0.1
Author:
Arnaud BLOUIN

Method Summary
 java.lang.String getUndoName()
           
 void redo()
          Redoes the cancelled action.
 void undo()
          Cancels the action.
 

Method Detail

undo

void undo()
Cancels the action.

Since:
0.1

redo

void redo()
Redoes the cancelled action.

Since:
0.1

getUndoName

java.lang.String getUndoName()
Returns:
The name of the undo action.
Since:
0.1