|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.ui.service.EclipseLayoutConfig
public class EclipseLayoutConfig
A layout configuration for extension point configurations and user preferences.
Field Summary | |
---|---|
static IProperty<Float> |
ASPECT_RATIO
the aspect ratio of the currently processed diagram viewer. |
static int |
PRIORITY
the priority for the Eclipse layout configuration. |
static IProperty<IWorkbenchPart> |
WORKBENCH_PART
the currently tracked diagram editor. |
Constructor Summary | |
---|---|
EclipseLayoutConfig()
|
Method Summary | |
---|---|
void |
enrich(LayoutContext context)
Enrich the given context with additional information that can be derived from what is already contained. |
static Object |
getOption(Object diagramPart,
EObject modelElement,
IProperty<?> property)
Retrieves a layout option for the given edit part and model element by querying the option for the edit part's class name and its domain model name. |
static Object |
getOption(Object diagramPart,
IProperty<?> optionData)
Retrieves a layout option from the given edit part by using the framework bridge associated with the edit part type. |
int |
getPriority()
Return the priority of this layout configuration, which is relevant when multiple configurations are applied. |
Object |
getValue(LayoutOptionData<?> optionData,
LayoutContext context)
Get the current value for a layout option in the given context. |
void |
transferValues(KGraphData graphData,
LayoutContext context)
Transfer all non-default values that are managed by this layout configuration to the given graph data holder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PRIORITY
public static final IProperty<IWorkbenchPart> WORKBENCH_PART
public static final IProperty<Float> ASPECT_RATIO
Constructor Detail |
---|
public EclipseLayoutConfig()
Method Detail |
---|
public static Object getOption(Object diagramPart, IProperty<?> optionData)
diagramPart
- a diagram part such as an edit partoptionData
- layout option data
null
public static Object getOption(Object diagramPart, EObject modelElement, IProperty<?> property)
diagramPart
- a diagram part such as an edit partmodelElement
- the corresponding model elementproperty
- layout option data
null
public int getPriority()
getPriority
in interface ILayoutConfig
public void enrich(LayoutContext context)
enrich
in interface ILayoutConfig
context
- a context for layout configurationpublic Object getValue(LayoutOptionData<?> optionData, LayoutContext context)
getValue
in interface ILayoutConfig
optionData
- a layout option descriptorcontext
- a context for layout configuration
null
if the option has no value in this contextpublic void transferValues(KGraphData graphData, LayoutContext context)
transferValues
in interface ILayoutConfig
graphData
- a graph data instance that can hold layout optionscontext
- a context for layout configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |