|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.graphiti.GraphitiLayoutConfig
public class GraphitiLayoutConfig
Layout option configuration for Graphiti.
Field Summary | |
---|---|
static String |
DEF_PREFIX
Prefix for diagram defaults stored in the top-level edit part. |
static IProperty<org.eclipse.graphiti.mm.pictograms.PictogramElement> |
PICTO_ELEM
the pictogram element for the graph element in the context. |
static String |
PREFIX
Prefix for all layout options. |
static int |
PRIORITY
the priority for the Graphiti layout configuration. |
Fields inherited from interface de.cau.cs.kieler.kiml.config.IMutableLayoutConfig |
---|
OPT_RECURSIVE |
Constructor Summary | |
---|---|
GraphitiLayoutConfig()
|
Method Summary | |
---|---|
void |
clearValues(LayoutContext context)
Clear all layout option values that have been set for the given context. |
void |
enrich(LayoutContext context)
Enrich the given context with additional information that can be derived from what is already contained. |
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. |
boolean |
isSet(LayoutOptionData<?> optionData,
LayoutContext context)
Determine whether the given layout option is set, not considering any default values. |
void |
setValue(LayoutOptionData<?> optionData,
LayoutContext context,
Object value)
Set a new 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 String PREFIX
public static final String DEF_PREFIX
public static final IProperty<org.eclipse.graphiti.mm.pictograms.PictogramElement> PICTO_ELEM
Constructor Detail |
---|
public GraphitiLayoutConfig()
Method Detail |
---|
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 configurationpublic void setValue(LayoutOptionData<?> optionData, LayoutContext context, Object value)
setValue
in interface IMutableLayoutConfig
optionData
- a layout option descriptorcontext
- a context for layout configurationvalue
- the new layout option value, or null
if the current value shall be removedpublic void clearValues(LayoutContext context)
clearValues
in interface IMutableLayoutConfig
context
- a context for layout configurationpublic boolean isSet(LayoutOptionData<?> optionData, LayoutContext context)
isSet
in interface IMutableLayoutConfig
optionData
- a layout option descriptorcontext
- a context for layout configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |