public abstract class IlvAbstractGraphicEdit extends AbstractUndoableEdit implements IlvGraphicEdit
undoImpl
and redoImpl
.RedoName, UndoName
Modifier | Constructor and Description |
---|---|
protected |
IlvAbstractGraphicEdit()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
after(IlvGraphic g)
Fill the edit with information about the status of the graphic object
after it has changed.
|
void |
before(IlvGraphic g)
Fill the edit with information about the status of the graphic object
before it has changed.
|
IlvGraphic |
getObject()
Returns the affected graphic object.
|
void |
redo()
Performs a redo.
|
protected abstract void |
redoImpl(IlvGraphic g)
Performs the redo on the graphic object.
|
void |
undo()
Performs an undo.
|
protected abstract void |
undoImpl(IlvGraphic g)
Performs the undo on the graphic object.
|
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
public void before(IlvGraphic g)
before
in interface IlvGraphicEdit
public void after(IlvGraphic g)
after
in interface IlvGraphicEdit
public IlvGraphic getObject()
public void undo() throws CannotUndoException
applyToObject
on the graphic object passed
to before(ilog.views.IlvGraphic)
and then calls undoImpl(ilog.views.IlvGraphic)
.undo
in interface UndoableEdit
undo
in class AbstractUndoableEdit
CannotUndoException
- if canUndo
returns false
public void redo() throws CannotRedoException
applyToObject
on the graphic object passed
to before(ilog.views.IlvGraphic)
and then calls redoImpl(ilog.views.IlvGraphic)
.redo
in interface UndoableEdit
redo
in class AbstractUndoableEdit
CannotRedoException
- if canRedo
returns false
protected abstract void undoImpl(IlvGraphic g) throws CannotRedoException
applyToObject
on the
graphic object, therefore it is safe to modify the graphic object
directly.g
- The graphic object.CannotUndoException
- if canUndo
returns false
CannotRedoException
protected abstract void redoImpl(IlvGraphic g) throws CannotRedoException
applyToObject
on the
graphic object, therefore it is safe to modify the graphic object
directly.g
- The graphic object.CannotRedoException
- if canRedo
returns false
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.