diva.whiteboard
Class WhiteboardEdits.StrokeWidthEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
diva.whiteboard.WhiteboardEdits.StrokeWidthEdit
- All Implemented Interfaces:
- Serializable, UndoableEdit
- Enclosing class:
- WhiteboardEdits
public static class WhiteboardEdits.StrokeWidthEdit
- extends AbstractUndoableEdit
An edit on a stroke's line width.
- See Also:
- Serialized Form
WhiteboardEdits.StrokeWidthEdit
public WhiteboardEdits.StrokeWidthEdit(SketchModel skm,
Symbol s,
float oldWidth,
float newWidth)
redo
public void redo()
throws CannotRedoException
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class AbstractUndoableEdit
- Throws:
CannotRedoException
undo
public void undo()
throws CannotUndoException
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class AbstractUndoableEdit
- Throws:
CannotUndoException
canRedo
public boolean canRedo()
- Specified by:
canRedo
in interface UndoableEdit
- Overrides:
canRedo
in class AbstractUndoableEdit
canUndo
public boolean canUndo()
- Specified by:
canUndo
in interface UndoableEdit
- Overrides:
canUndo
in class AbstractUndoableEdit
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName
in interface UndoableEdit
- Overrides:
getPresentationName
in class AbstractUndoableEdit
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.