JHotDraw 7.0.9

org.jhotdraw.draw.action
Class AbstractEditorAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jhotdraw.draw.action.AbstractEditorAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
ZoomEditorAction

public abstract class AbstractEditorAction
extends javax.swing.AbstractAction

Abstract super class for actions which act on a DrawingEditor.

Version:
1.1 2006-03-15 Support for enabled state of editor added.
1.0 2003-12-01 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
protected  DrawingEditor editor
           
protected static ResourceBundleUtil labels
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractEditorAction(DrawingEditor editor)
          Creates a new instance.
 
Method Summary
protected  void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
           
protected  Drawing getDrawing()
           
 DrawingEditor getEditor()
           
protected  DrawingView getView()
           
 void setEditor(DrawingEditor newValue)
           
 void updateEnabledState()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

editor

protected DrawingEditor editor

labels

protected static final ResourceBundleUtil labels
Constructor Detail

AbstractEditorAction

public AbstractEditorAction(DrawingEditor editor)
Creates a new instance.

Method Detail

setEditor

public void setEditor(DrawingEditor newValue)

updateEnabledState

public void updateEnabledState()

getEditor

public DrawingEditor getEditor()

getView

protected DrawingView getView()

getDrawing

protected Drawing getDrawing()

fireUndoableEditHappened

protected void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.