com.bbn.openmap.omGraphics
Class EditableOMGraphic.OMGraphicUndoEvent
java.lang.Object
com.bbn.openmap.omGraphics.EditableOMGraphic.OMGraphicUndoEvent
- All Implemented Interfaces:
- UndoEvent
- Direct Known Subclasses:
- EditableOMPoly.OMPolyUndoEvent, EditableOMRangeRings.OMRangeRingUndoEvent
- Enclosing class:
- EditableOMGraphic
public static class EditableOMGraphic.OMGraphicUndoEvent
- extends java.lang.Object
- implements UndoEvent
Generic undo event for basic OMGraphics.
- Author:
- dietrick
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eomg
protected EditableOMGraphic eomg
stateHolder
protected OMGraphic stateHolder
description
protected java.lang.String description
EditableOMGraphic.OMGraphicUndoEvent
public EditableOMGraphic.OMGraphicUndoEvent(EditableOMGraphic eomg,
java.lang.String description)
throws java.util.MissingResourceException
- Throws:
java.util.MissingResourceException
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface UndoEvent
- Returns:
- a short description of what will happen when setState() is
invoked.
setState
public void setState()
- Description copied from interface:
UndoEvent
- Tell the UndoEvent to set its source object back to the state described by
this object.
- Specified by:
setState
in interface UndoEvent
setSubclassState
protected void setSubclassState()
- Called from setState before repaint() is called, so subclasses can update anything in their EditableOMGraphic
state for the restored OMGraphic.
getStateHolder
public OMGraphic getStateHolder()
- Returns:
- the stateHolder
setStateHolder
public void setStateHolder(OMGraphic stateHolder)
- Parameters:
stateHolder
- the stateHolder to set
getEomg
public EditableOMGraphic getEomg()
- Returns:
- the eomg
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description
- the description to set
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details