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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, replaceEdit
public IlvManagerLayerEdit(String name)
name
- The presentation name of the editpublic 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
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
public void redoImpl(IlvGraphic g) throws CannotRedoException
CannotRedoException
- if canRedo
returns false
AbstractUndoableEdit.canRedo()
public boolean isSignificant()
isSignificant
in interface UndoableEdit
isSignificant
in class AbstractUndoableEdit
public String getPresentationName()
getPresentationName
in interface UndoableEdit
getPresentationName
in class AbstractUndoableEdit
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.