|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.AbstractEffect
de.cau.cs.kieler.synccharts.kivi.PointerEffect
public class PointerEffect
Draws a transient arrow pointing to some target edit part. This pointer only requires one target
(and no source). The pointer will either point towards the target or away from it. It can be
configured such that the pointer will be located on either side of the pointed object.
Much code is copied from the ArrowEffect
.
Constructor Summary | |
---|---|
PointerEffect()
Default constructor. |
|
PointerEffect(EObject theTarget,
Color theColor,
int theLength,
boolean isTowards,
de.cau.cs.kieler.synccharts.kivi.PointerEffect.Direction theDirection,
boolean connectionLayer)
Create a new pointer (arrow with no concrete source) effect for the given target EObject. |
Method Summary | |
---|---|
void |
execute()
Execute the effect. |
boolean |
isMergeable()
Determines whether this effect can be merged with previously scheduled effects. |
IEffect |
merge(IEffect other)
Merge this effect with another effect. |
void |
undo()
Attempt to undo the effect. |
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect |
---|
schedule, scheduleUndo, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PointerEffect()
public PointerEffect(EObject theTarget, Color theColor, int theLength, boolean isTowards, de.cau.cs.kieler.synccharts.kivi.PointerEffect.Direction theDirection, boolean connectionLayer)
theTarget
- the target EObjecttheColor
- the color to paint the arrow withtheLength
- the length of the pointing arrowisTowards
- true iff the arrow should point towards the target, false if it should point away
from the targettheDirection
- determines the side where the pointer will be located, e.g. on center top (NORTH)
or center right (NORTHEAST)connectionLayer
- true if the connection layer shall be used for drawing on instead of the figure of
the source's parentMethod Detail |
---|
public void execute()
public void undo()
undo
in interface IEffect
undo
in class AbstractEffect
public boolean isMergeable()
AbstractEffect
isMergeable
in interface IEffect
isMergeable
in class AbstractEffect
public IEffect merge(IEffect other)
AbstractEffect
merge
in interface IEffect
merge
in class AbstractEffect
other
- the effect to merge with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |