ptolemy.vergil.basic.layout
Class KielerLayoutTableau.BaseLayoutAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ptolemy.vergil.basic.layout.KielerLayoutTableau.BaseLayoutAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
KielerLayoutTableau.HideVerticesAction, KielerLayoutTableau.PlaceAction, KielerLayoutTableau.PlaceAllAction, KielerLayoutTableau.PlaceAndRouteAction, KielerLayoutTableau.RemoveVerticesAction
Enclosing class:
KielerLayoutTableau

private class KielerLayoutTableau.BaseLayoutAction
extends javax.swing.AbstractAction

Base class for layout actions. Derived classes vary their constructor calls which allows the derived classes to avoid duplicated code.


Field Summary
 boolean _applyEdgeLayout
           
 boolean _boxLayout
           
 boolean _removeUnnecessaryRelations
           
 boolean _showUnnecessaryRelationsToggle
           
 
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
KielerLayoutTableau.BaseLayoutAction(boolean applyEdgeLayout, boolean boxLayout, boolean removeUnnecessaryRelations, boolean showUnnecessaryRelationsToggle)
          Construction an action for placing layout.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
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
 

Field Detail

_applyEdgeLayout

public boolean _applyEdgeLayout

_boxLayout

public boolean _boxLayout

_removeUnnecessaryRelations

public boolean _removeUnnecessaryRelations

_showUnnecessaryRelationsToggle

public boolean _showUnnecessaryRelationsToggle
Constructor Detail

KielerLayoutTableau.BaseLayoutAction

public KielerLayoutTableau.BaseLayoutAction(boolean applyEdgeLayout,
                                            boolean boxLayout,
                                            boolean removeUnnecessaryRelations,
                                            boolean showUnnecessaryRelationsToggle)
Construction an action for placing layout.

Parameters:
applyEdgeLayout - true if the edge layout should be applied.
boxLayout - true if the box layout should be applied.
removeUnnecessaryRelations - true if we are to remove unnecessary relation vertices.
showUnnecessaryRelationsToggle - true if we are to toggle between showing and hiding unnecessary relation vertices.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)