|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.config.CompoundLayoutConfig
public class CompoundLayoutConfig
A layout configuration that is composed of multiple other configurations.
Field Summary |
---|
Fields inherited from interface de.cau.cs.kieler.kiml.config.IMutableLayoutConfig |
---|
OPT_RECURSIVE |
Constructor Summary | |
---|---|
CompoundLayoutConfig()
|
Method Summary | |
---|---|
void |
add(ILayoutConfig conf)
Insert the given layout configuration into this compound configuration according to its priority value. |
void |
addAll(Collection<ILayoutConfig> confs)
Insert all given layout configurations into this compound configuration. |
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 |
remove(ILayoutConfig conf)
Remove the given layout configuration. |
void |
removeAll(Collection<ILayoutConfig> confs)
Remove all given layout configurations. |
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 |
Constructor Detail |
---|
public CompoundLayoutConfig()
Method Detail |
---|
public void add(ILayoutConfig conf)
conf
- a layout configurationpublic void addAll(Collection<ILayoutConfig> confs)
confs
- a collection of layout configurationspublic void remove(ILayoutConfig conf)
conf
- a layout configurationpublic void removeAll(Collection<ILayoutConfig> confs)
confs
- a collection of layout configurationspublic 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 clearValues(LayoutContext context)
clearValues
in interface IMutableLayoutConfig
context
- 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 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 |