|
||||||||||
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.kiml.ui.layout.LayoutEffect
public class LayoutEffect
Performs automatic layout on a diagram editor for a given selection.
Constructor Summary | |
---|---|
LayoutEffect(IEditorPart editor,
EObject object)
Create a new layout effect for the given diagram editor and EObject. |
|
LayoutEffect(IEditorPart editor,
EObject object,
boolean zoomToFit)
Create a new layout effect for the given diagram editor and EObject. |
|
LayoutEffect(IEditorPart editor,
EObject object,
boolean zoomToFit,
boolean progressBar)
Create a new layout effect for the given diagram editor and EObject. |
|
LayoutEffect(IEditorPart editor,
EObject object,
boolean zoomToFit,
boolean progressBar,
boolean ancestors)
Create a new layout effect for the given diagram editor and EObject. |
|
LayoutEffect(IEditorPart editor,
EObject object,
boolean zoomToFit,
boolean progressBar,
boolean ancestors,
boolean animation)
Create a new layout effect for the given diagram editor and EObject. |
Method Summary | |
---|---|
void |
execute()
Execute the effect. |
DiagramLayoutManager |
getManager()
Returns the diagram layout manager that was used for this layout effect, or null if the effect has not been executed yet. |
boolean |
isMergeable()
Determines whether this effect can be merged with previously scheduled effects. |
IEffect |
merge(IEffect otherEffect)
Merge this effect with another effect. |
void |
setOption(EObject object,
IProperty<?> option,
Object value)
Set a layout option value for this layout effect. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutEffect(IEditorPart editor, EObject object)
editor
- the diagram editor containing the diagram to layoutobject
- the domain model object to layoutpublic LayoutEffect(IEditorPart editor, EObject object, boolean zoomToFit)
editor
- the diagram editor containing the diagram to layoutobject
- the domain model object to layoutzoomToFit
- whether zoom to fit shall be performedpublic LayoutEffect(IEditorPart editor, EObject object, boolean zoomToFit, boolean progressBar)
editor
- the diagram editor containing the diagram to layoutobject
- the domain model object to layoutzoomToFit
- whether zoom to fit shall be performedprogressBar
- whether a progress bar shall be displayedpublic LayoutEffect(IEditorPart editor, EObject object, boolean zoomToFit, boolean progressBar, boolean ancestors)
editor
- the diagram editor containing the diagram to layoutobject
- the domain model object to layoutzoomToFit
- whether zoom to fit shall be performedprogressBar
- whether a progress bar shall be displayedancestors
- whether to include the ancestors in the layout processpublic LayoutEffect(IEditorPart editor, EObject object, boolean zoomToFit, boolean progressBar, boolean ancestors, boolean animation)
editor
- the diagram editor containing the diagram to layoutobject
- the domain model element to layoutzoomToFit
- whether zoom to fit shall be performedprogressBar
- whether a progress bar shall be displayedancestors
- whether to include the ancestors in the layout processanimation
- whether the layout shall be animatedMethod Detail |
---|
public void setOption(EObject object, IProperty<?> option, Object value)
object
- the domain model element for which the option shall be setoption
- the layout option to set
(see LayoutOptions
)value
- the value for the layout optionpublic void execute()
public DiagramLayoutManager getManager()
null
if the effect has not been executed yet.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |