GoGraph
v1.0


gograph.actions.algo
Class AlgoSelectAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--gograph.actions.go.SwitchExecAction
              |
              +--gograph.actions.algo.AlgoSelectAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class AlgoSelectAction
extends SwitchExecAction

Select an algorithm for execution after another algorithm as already been selected.

See Also:
GoGraph, Serialized Form

Field Summary
 
Fields inherited from class gograph.actions.go.SwitchExecAction
editorGraph, execGraph, gograph
 
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
AlgoSelectAction(GoGraph gograph, GGGraph editorGraph, GGGraph execGraph)
          Creates a new instance of AlgoSelectAction.
 
Method Summary
 java.lang.String selectAlgo()
          Allows selection of an algorithm for execution.
 
Methods inherited from class gograph.actions.go.SwitchExecAction
actionPerformed
 
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

AlgoSelectAction

public AlgoSelectAction(GoGraph gograph,
                        GGGraph editorGraph,
                        GGGraph execGraph)
Creates a new instance of AlgoSelectAction.

Parameters:
editorGraph - Current graph in edition panel.
execGraph - Current graph in execution panel.
gograph - Access back to GoGraph panel.
Method Detail

selectAlgo

public java.lang.String selectAlgo()
Allows selection of an algorithm for execution. Show warning about reseting current graph.

Overrides:
selectAlgo in class SwitchExecAction
Returns:
Algorithm name.

GoGraph
v1.0


Copyright (C) 2003 Stewe Frei. All rights reserved.