de.cau.cs.kieler.synccharts.viewmanagement
Class ActiveStateFocusCombination

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

public class ActiveStateFocusCombination
extends ACombination

A Viewmanagement Combination that reacts on StateActivityTriggers and then executes focus and context by collapsing or expanding state compartments.

Rating red

Constructor Summary
ActiveStateFocusCombination()
          Instantiates a new StateCombination.
 
Method Summary
 boolean evaluate(TriggerEventObject triggerEvent)
          Abstract method to evaluate certain conditions chosen by the developer that should delay or trigger the execution of the combination.
 void execute()
          Abstract method to execute the combination.
static ActiveStateFocusCombination getInstance()
           
 List<ATrigger> getTriggers()
          Abstract method that returns the triggers that are of importance for this combination.
 void setRootEditPart(EditPart rootEditPart)
          Sets a new root EditPart.
 void undoEffects()
          Removes the last effect when shutting down the View Management, if needed.
 
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

ActiveStateFocusCombination

public ActiveStateFocusCombination()
Instantiates a new StateCombination.

Method Detail

getInstance

public static ActiveStateFocusCombination getInstance()
Returns:
single instance of StateCombination

setRootEditPart

public void setRootEditPart(EditPart rootEditPart)
Sets a new root EditPart.

Parameters:
rootEditPart - the new root EditPart

evaluate

public boolean evaluate(TriggerEventObject triggerEvent)
Description copied from class: ACombination
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()
Description copied from class: ACombination
Abstract method to execute the combination. Creation of desired effects and their setup is to be done here.

Specified by:
execute in class ACombination

getTriggers

public List<ATrigger> getTriggers()
Description copied from class: ACombination
Abstract method that returns the triggers that are of importance for this combination. Will be used when initializing or finalizing the combination and then register it as listeners to the triggers returned in the list.

Specified by:
getTriggers in class ACombination
Returns:
List of triggers to be observed

undoEffects

public void undoEffects()
Description copied from class: ACombination
Removes the last effect when shutting down the View Management, if needed. In that case, it should be overridden.

Overrides:
undoEffects in class ACombination