Documentation of 'org.jhotdraw.draw.action.AbstractSelectedAction' Java class
AbstractSelectedAction
org.jhotdraw.draw.action

Class AbstractSelectedAction

    • Field Summary

      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Constructor Summary

      Constructors 
      Constructor and Description
      AbstractSelectedAction(DrawingEditor editor)
      Creates an action which acts on the selected figures on the current view of the specified editor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void dispose()
      Disposes of all resources held by this object so that they can be garbage collected.
      DrawingEditor getEditor() 
      boolean isUpdatEnabledState()
      Returns true, if this action automatically updates its enabled state to reflect the enabled state of the active DrawingView.
      void setEditor(DrawingEditor editor) 
      void setUpdateEnabledState(boolean newValue)
      By default, the enabled state of this action is updated to reflect the enabled state of the active DrawingView.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.awt.event.ActionListener

        actionPerformed
    • Constructor Detail

      • AbstractSelectedAction

        public AbstractSelectedAction(DrawingEditor editor)
        Creates an action which acts on the selected figures on the current view of the specified editor.
    • Method Detail

      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Disposes of all resources held by this object so that they can be garbage collected.
        Specified by:
        dispose in interface Disposable
      • setUpdateEnabledState

        public void setUpdateEnabledState(boolean newValue)
        By default, the enabled state of this action is updated to reflect the enabled state of the active DrawingView. Since this is not always necessary, and since many listening actions may considerably slow down the drawing editor, you can switch this behavior off here.
        Parameters:
        newValue - Specify false to prevent automatic updating of the enabled state.
      • isUpdatEnabledState

        public boolean isUpdatEnabledState()
        Returns true, if this action automatically updates its enabled state to reflect the enabled state of the active DrawingView.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.