de.cau.cs.kieler.viewmanagement.effects
Class HighlightEffect

java.lang.Object
  extended by de.cau.cs.kieler.viewmanagement.AEffect
      extended by de.cau.cs.kieler.viewmanagement.effects.HighlightEffect

public class HighlightEffect
extends AEffect

Rating red

Constructor Summary
HighlightEffect()
          default constructor, highlighting figure is initially defined here by setting up the figure itself, the line width, color etc.
 
Method Summary
 void execute()
          Abstract method to execute a specific effect.
 void setHighlightFigure(int width, Color lineColor)
          Changes parameters of highlight figure.
 void setTarget(EditPart target)
          Sets the target of the effect
 void undo()
          Undo the effect.
 
Methods inherited from class de.cau.cs.kieler.viewmanagement.AEffect
getAffectedObject, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighlightEffect

public HighlightEffect()
default constructor, highlighting figure is initially defined here by setting up the figure itself, the line width, color etc.

Method Detail

execute

public final void execute()
Description copied from class: AEffect
Abstract method to execute a specific effect. Must be implemented by the developer of the effect. Here, you will have to implement the exact behaviour of the effect.

Specified by:
execute in class AEffect

undo

public final void undo()
Undo the effect. Here the highlighting will be removed.


setTarget

public final void setTarget(EditPart target)
Sets the target of the effect

Overrides:
setTarget in class AEffect
Parameters:
target - the target

setHighlightFigure

public final void setHighlightFigure(int width,
                                     Color lineColor)
Changes parameters of highlight figure. Will be re-read on every execute() call.

Parameters:
width - the width of the of the highlight figure
lineColor - the color of the line of the highlight figure