|
||||||||||
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.model.effects.ShowHideEffect
public class ShowHideEffect
KiviEffect that hides or reveals an element by modifying the visibility of its figure.
Field Summary | |
---|---|
protected GraphicalEditPart |
editPart
the edit part of the element to hide or reveal. |
protected boolean |
hide
if true the target will be hidden, if false target will be visible again. |
protected boolean |
originalVisible
the original visibility status. |
Constructor Summary | |
---|---|
ShowHideEffect(IWorkbenchPart editor,
EObject target,
boolean hide)
Create a show / hide effect from an editor and a target object. |
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 |
Field Detail |
---|
protected GraphicalEditPart editPart
protected boolean hide
protected boolean originalVisible
Constructor Detail |
---|
public ShowHideEffect(IWorkbenchPart editor, EObject target, boolean hide)
editor
- the editor in which to hide intarget
- the object to hide or revealhide
- if true the target will be hidden, if false target will be visible againMethod Detail |
---|
public void execute()
public void undo()
undo
in interface IEffect
undo
in class AbstractEffect
public boolean isMergeable()
isMergeable
in interface IEffect
isMergeable
in class AbstractEffect
public IEffect merge(IEffect other)
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 |