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

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

public class ShapeHighlightEffect
extends AEffect

Rating red

Constructor Summary
ShapeHighlightEffect()
          default constructor, nothing done here.
 
Method Summary
 void execute()
          executes the ShapeHighlightEffect.
 void setColors(Color foregroundColor, Color backgroundColor)
          Changes parameters of highlight figure.
 void setParameters(Object objectParameters)
          Sets the parameters of the effect.
 void setTarget(EditPart target)
          Sets the target object of the effect.
 void undo()
          Undo the effect.
 
Methods inherited from class de.cau.cs.kieler.viewmanagement.AEffect
getAffectedObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeHighlightEffect

public ShapeHighlightEffect()
default constructor, nothing done here.

Method Detail

execute

public final void execute()
executes the ShapeHighlightEffect. Here the figure of the objectToHighlight be modified. The original values are saved for undo.

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 object of the effect.

Overrides:
setTarget in class AEffect
Parameters:
target - the object to be highlighted

setParameters

public void setParameters(Object objectParameters)
Sets the parameters of the effect.

Overrides:
setParameters in class AEffect
Parameters:
objectParameters - the parameters

setColors

public final void setColors(Color foregroundColor,
                            Color backgroundColor)
Changes parameters of highlight figure. Will be re-read on every execute() call

Parameters:
foregroundColor - color for the foreground
backgroundColor - color for the background