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

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

public class SelectionHighlightCombination
extends ACombination

Rating red

Constructor Summary
SelectionHighlightCombination()
           
 
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.
 List<ATrigger> getTriggers()
          Abstract method that returns the triggers that are of importance for this combination.
 void setHighlightEffect(Color newcolor, int newlinewidth)
           
 void undoEffects()
          Removes the last effect when shutting down the View Management, if needed.
 
Methods inherited from class de.cau.cs.kieler.viewmanagement.ACombination
finalize, getEditPart, getRootEPAsParent, initialize, isActive, notifyTrigger, resetHashedEditParts, setActive, translateToEditPart
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionHighlightCombination

public SelectionHighlightCombination()
Method Detail

getTriggers

public final 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

evaluate

public final 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 final 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

undoEffects

public final 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

setHighlightEffect

public void setHighlightEffect(Color newcolor,
                               int newlinewidth)
Parameters:
newcolor - Color that the HighlightEffect should be changed to
newlinewidth - Linewidth that the HighlightEffect should be changed to