|
||||||||||
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.core.kivi.UndoEffect
public class UndoEffect
Takes another effect and performs undo when executed.
Constructor Summary | |
---|---|
UndoEffect(IEffect e)
Create a new undo effect. |
Method Summary | |
---|---|
void |
execute()
Execute the effect. |
IEffect |
getEffect()
Get the effect that is supposed to be undone. |
boolean |
isMergeable()
Determines whether this effect can be merged with previously scheduled effects. |
IEffect |
merge(IEffect otherEffect)
Merge this effect with another effect. |
String |
toString()
|
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect |
---|
schedule, scheduleUndo, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UndoEffect(IEffect e)
e
- the effect to be undoneMethod Detail |
---|
public void execute()
public boolean isMergeable()
isMergeable
in interface IEffect
isMergeable
in class AbstractEffect
public IEffect merge(IEffect otherEffect)
merge
in interface IEffect
merge
in class AbstractEffect
otherEffect
- the effect to merge with
public IEffect getEffect()
public String toString()
toString
in class AbstractEffect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |