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

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

public class RandomLayoutCombination
extends AbstractCombination

Add a button that triggers a Random layout onto the whole diagram once.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.core.kivi.AbstractCombination
FIFTH, FIRST, FOURTH, SECOND, SEVENTH, SIXTH, THIRD
 
Constructor Summary
RandomLayoutCombination()
          Setup Buttons in the Constructor.
 
Method Summary
 void execute(ButtonTrigger.ButtonState button, DiagramTrigger.DiagramState diagram)
          Execute this Combination and react on the input triggers.
 
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
 

Constructor Detail

RandomLayoutCombination

public RandomLayoutCombination()
Setup Buttons in the Constructor.

Method Detail

execute

public void execute(ButtonTrigger.ButtonState button,
                    DiagramTrigger.DiagramState diagram)
Execute this Combination and react on the input triggers.

Parameters:
button - react on the random layout button
diagram - react on the current diagram