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

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

public class LayoutCombination
extends AbstractCombination

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

Rating proposed yellow
(2011-01-13) msp

Field Summary
static String ANIMATE
          parameter id for animation.
static String PARAM_LAYOUT_SCOPE
          parameter identifier for the scope of automatic layout.
static String PROGRESS_BAR
          parameter id for progress bar.
static String VAL_DIAGRAM
          parameter value for diagram scope.
static String VAL_SELECTION
          parameter value for selection scope.
static String ZOOM_TO_FIT
          parameter id for zoom to fit.
 
Fields inherited from class de.cau.cs.kieler.core.kivi.AbstractCombination
FIFTH, FIRST, FOURTH, SECOND, SEVENTH, SIXTH, THIRD
 
Constructor Summary
LayoutCombination()
           
 
Method Summary
 void execute(ButtonTrigger.ButtonState button, SelectionTrigger.DiagramSelectionState 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
enableEffectRecording, getEffects, getTriggerStates, handle, isActive, latestState, latestStateIndex, schedule, schedule, setActive, toString, undo, undoRecordedEffects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANIMATE

public static final String ANIMATE
parameter id for animation.

See Also:
Constant Field Values

ZOOM_TO_FIT

public static final String ZOOM_TO_FIT
parameter id for zoom to fit.

See Also:
Constant Field Values

PROGRESS_BAR

public static final String PROGRESS_BAR
parameter id for progress bar.

See Also:
Constant Field Values

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.DiagramSelectionState 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