public class IlvManagerLayerEdit extends AbstractUndoableEdit implements IlvGraphicEdit
IlvManager.addObject(ilog.views.IlvGraphic, int, boolean),
IlvManager.removeObject(ilog.views.IlvGraphic, boolean),
IlvManager.setLayer(ilog.views.IlvGraphic, int, boolean),
IlvGrapher.makeNode(ilog.views.IlvGraphic),
IlvGrapher.unmakeNode(ilog.views.IlvGraphic),
IlvGrapher.addNode(ilog.views.IlvGraphic, boolean),
IlvGrapher.addLink(ilog.views.IlvLinkImage, boolean),
IlvGrapher.removeNode(ilog.views.IlvGraphic, boolean),
IlvGrapher.removeLink(ilog.views.IlvLinkImage, boolean),
IlvHyperGrapher.addHyperEdge(ilog.views.hypergraph.IlvHyperEdge, boolean), and
IlvHyperGrapher.removeHyperEdge(ilog.views.hypergraph.IlvHyperEdge, boolean).RedoName, UndoName| Constructor and Description |
|---|
IlvManagerLayerEdit(String name)
Creates a new edit.
|
| 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.
|
String |
getPresentationName()
Returns the presentation name of the edit.
|
boolean |
isSignificant()
Returns whether the edit is significant.
|
void |
redo()
Performs a redo.
|
void |
redoImpl(IlvGraphic g)
Performs an undo.
|
void |
undo()
Performs an undo.
|
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, replaceEdit, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, replaceEditpublic IlvManagerLayerEdit(String name)
name - The presentation name of the editpublic void before(IlvGraphic g)
before in interface IlvGraphicEditpublic void after(IlvGraphic g)
after in interface IlvGraphicEditpublic IlvGraphic getObject()
public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoException - if canUndo
returns falsepublic 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 UndoableEditredo in class AbstractUndoableEditCannotRedoException - if canRedo
returns falsepublic void redoImpl(IlvGraphic g) throws CannotRedoException
CannotRedoException - if canRedo
returns falseAbstractUndoableEdit.canRedo()public boolean isSignificant()
isSignificant in interface UndoableEditisSignificant in class AbstractUndoableEditpublic String getPresentationName()
getPresentationName in interface UndoableEditgetPresentationName in class AbstractUndoableEdit© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.