de.cau.cs.kieler.viewmanagement.combination
Class DeleteLayoutCombination

java.lang.Object
  extended by de.cau.cs.kieler.viewmanagement.ACombination
      extended by de.cau.cs.kieler.viewmanagement.combination.DeleteLayoutCombination
All Implemented Interfaces:
ITriggerListener, EventListener

public class DeleteLayoutCombination
extends ACombination

The combination that is used to perform auto layout on model element deletion.

Rating red

Constructor Summary
DeleteLayoutCombination()
           
 
Method Summary
 boolean evaluate(TriggerEventObject triggerEvent)
          Evaluates a trigger event.
 void execute()
          Executes the combination by starting the effect.
 List<ATrigger> getTriggers()
          Returns the list of triggers.
 void undoEffects()
          Undo the last effect, this is unused because the 'undo' is done by the layout command framework.
 
Methods inherited from class de.cau.cs.kieler.viewmanagement.ACombination
getEditPart, getRootEPAsParent, initialize, isActive, notifyTrigger, resetHashedEditParts, setActive, translateToEditPart, wrapup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteLayoutCombination

public DeleteLayoutCombination()
Method Detail

evaluate

public boolean evaluate(TriggerEventObject triggerEvent)
Evaluates a trigger event. Abstract method to evaluate certain conditions chosen by the developer that should delay or trigger the execution of the combination.

Specified by:
evaluate in class ACombination
Parameters:
triggerEvent - delivered by a trigger, contains necessary information for the combination
Returns:
true if combination should be executed, false otherwise.

execute

public void execute()
Executes the combination by starting the effect.

Specified by:
execute in class ACombination

getTriggers

public List<ATrigger> getTriggers()
Returns the list of triggers.

Specified by:
getTriggers in class ACombination
Returns:
the list of trigger.

undoEffects

public void undoEffects()
Undo the last effect, this is unused because the 'undo' is done by the layout command framework.

Overrides:
undoEffects in class ACombination