de.cau.cs.kieler.kiml.ui.layout
Class LayoutCombination

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractCombination
      extended by de.cau.cs.kieler.kiml.ui.layout.LayoutCombination
All Implemented Interfaces:
ICombination

public class LayoutCombination
extends AbstractCombination

Performs automatic layout when the button or key combination is pressed.

Rating red

Field Summary
static String PARAM_LAYOUT_SCOPE
          parameter identifier for the scope of automatic layout.
static String VAL_DIAGRAM
          parameter value for diagram scope.
static String VAL_SELECTION
          parameter value for selection scope.
 
Constructor Summary
LayoutCombination()
           
 
Method Summary
 void execute(ButtonTrigger.ButtonState button, SelectionTrigger.SelectionState selection)
          Listen to view management buttons and the current selection.
static CombinationParameter[] getParameters()
          Get the parameters for the layout combination.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractCombination
doNothing, dontUndo, getTriggerStates, isActive, schedule, setActive, trigger, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_LAYOUT_SCOPE

public static final String PARAM_LAYOUT_SCOPE
parameter identifier for the scope of automatic layout.

See Also:
Constant Field Values

VAL_DIAGRAM

public static final String VAL_DIAGRAM
parameter value for diagram scope.

See Also:
Constant Field Values

VAL_SELECTION

public static final String VAL_SELECTION
parameter value for selection scope.

See Also:
Constant Field Values
Constructor Detail

LayoutCombination

public LayoutCombination()
Method Detail

getParameters

public static CombinationParameter[] getParameters()
Get the parameters for the layout combination.

Returns:
array of parameters

execute

public void execute(ButtonTrigger.ButtonState button,
                    SelectionTrigger.SelectionState selection)
Listen to view management buttons and the current selection.

Parameters:
button - the trigger state for view management buttons
selection - the trigger state for the current selection