|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.config.VolatileLayoutConfig
public class VolatileLayoutConfig
A layout configuration that can be used to generate on-the-fly layout options.
Field Summary | |
---|---|
static int |
PRIORITY
the priority for volatile layout configurations. |
Constructor Summary | |
---|---|
VolatileLayoutConfig()
|
Method Summary | |
---|---|
void |
copyValues(VolatileLayoutConfig other)
Copy all values from the given layout configuration into this one. |
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. |
void |
setValue(IProperty<?> option,
Object contextObj,
IProperty<?> contextKey,
Object value)
Set a new value for a layout option in the context of the given object. |
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
Constructor Detail |
---|
public VolatileLayoutConfig()
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 setValue(IProperty<?> option, Object contextObj, IProperty<?> contextKey, Object value)
option
- a layout option propertycontextObj
- the object to which the option value is attached,
e.g. a domain model elementcontextKey
- the layout context key related to the context object,
e.g. LayoutContext.DOMAIN_MODEL
value
- the new layout option valuepublic void copyValues(VolatileLayoutConfig other)
other
- another volatile layout configurationpublic 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 |