info.aduna.linkmap.action
Class SaveGraphAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.aduna.linkmap.action.LinkMapAction
          extended by info.aduna.linkmap.action.SaveGraphAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class SaveGraphAction
extends LinkMapAction

SaveGraphAction is a LinkMapAction that offers the user the ability to save the Graph currently displayed in the LinkMap. This includes any information obtained by post-processing the graph, such as calculating weights and filtering Vertices and Edges.

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
SaveGraphAction(LinkMap map, Component parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Creates the JFileChooser if it not already exist and makes it visible.
 void save(File file)
          Loads the MapModel indicated by the specified File and deals with any Exceptions that may occur.
 
Methods inherited from class info.aduna.linkmap.action.LinkMapAction
getMap, 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
 

Constructor Detail

SaveGraphAction

public SaveGraphAction(LinkMap map,
                       Component parent)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Creates the JFileChooser if it not already exist and makes it visible.


save

public void save(File file)
Loads the MapModel indicated by the specified File and deals with any Exceptions that may occur.



Copyright © 1997-2008 Aduna. All Rights Reserved.