Package adams.gui.core
Class Undo.UndoPoint
- java.lang.Object
-
- adams.gui.core.Undo.UndoPoint
-
- All Implemented Interfaces:
CloneHandler<Undo.UndoPoint>
,Serializable
- Enclosing class:
- Undo
public static class Undo.UndoPoint extends Object implements Serializable, CloneHandler<Undo.UndoPoint>
Represents a single undo point, i.e., data and comment.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Undo.UndoPoint
getClone()
Returns a copy of itself.String
getComment()
Returns the comment associated with the data.Object
getData()
Returns the stored data.String
toString()
Returns a string representation of the undo point.
-
-
-
Method Detail
-
getClone
public Undo.UndoPoint getClone()
Returns a copy of itself.- Specified by:
getClone
in interfaceCloneHandler<Undo.UndoPoint>
- Returns:
- the copy
-
getData
public Object getData()
Returns the stored data.- Returns:
- the data
-
getComment
public String getComment()
Returns the comment associated with the data.- Returns:
- the comment
-
-