info.aduna.linkmap.action
Class LinkMapAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.aduna.linkmap.action.LinkMapAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
ExportAction, OpenGraphAction, PreferencesAction, SaveGraphAction, ToggleShowingDirectionsAction, ToggleShowingNamesAction, ToggleShowingObjectWeightsAction, ToggleShowingTypesAction, ZoomInAction, ZoomNormalAction, ZoomOutAction, ZoomToFitAction

public abstract class LinkMapAction
extends AbstractAction

LinkMapAction serves as a basis for Actions on a LinkMap. It provides three variables, a constructor and corresponding get methods that are likely to be needed by all Actions operating on a LinkMap.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
LinkMapAction(LinkMap map, Component parent, String name, Icon icon)
          Create a new LinkMapAction for the specified LinkMap.
 
Method Summary
 LinkMap getMap()
           
 Component getParent()
           
 
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
 

Constructor Detail

LinkMapAction

public LinkMapAction(LinkMap map,
                     Component parent,
                     String name,
                     Icon icon)
Create a new LinkMapAction for the specified LinkMap.

Parameters:
map - The LinkMap on which the Action is applied.
parent - The parent Component that can be used as parent for, e.g., JFileChoosers.
name - The name of this LinkMapAction. This may be null.
icon - The icon of this LinkMapAction. This may be null.
Method Detail

getMap

public LinkMap getMap()

getParent

public Component getParent()


Copyright © 1997-2008 Aduna. All Rights Reserved.