ptolemy.vergil.basic.layout
Class KielerLayoutTableau.BaseLayoutAction
java.lang.Object
javax.swing.AbstractAction
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.
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. |
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 |
_applyEdgeLayout
public boolean _applyEdgeLayout
_boxLayout
public boolean _boxLayout
_removeUnnecessaryRelations
public boolean _removeUnnecessaryRelations
_showUnnecessaryRelationsToggle
public boolean _showUnnecessaryRelationsToggle
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.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)