|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.config.DefaultLayoutConfig
public class DefaultLayoutConfig
Default implementation of the layout configuration interface. This configuration handles the default values of layout algorithms and layout options.
Field Summary | |
---|---|
static IProperty<LayoutAlgorithmData> |
CONTAINER_ALGO
the layout algorithm that is assigned to the container of the current graph element. |
static IProperty<String> |
CONTAINER_DIAGT
the diagram type identifier for the container of the current graph element. |
static IProperty<String> |
CONTAINER_HINT
the layout algorithm or type identifier for the container of the current graph element. |
static IProperty<LayoutAlgorithmData> |
CONTENT_ALGO
the layout algorithm that is responsible for the content of the current graph element. |
static IProperty<String> |
CONTENT_DIAGT
the diagram type identifier for the content of the current graph element. |
static IProperty<String> |
CONTENT_HINT
the layout algorithm or type identifier for the content of the current graph element. |
static IProperty<Boolean> |
HAS_PORTS
whether the node in the current context contains any ports. |
static IProperty<Boolean> |
OPT_MAKE_OPTIONS
option for layout context: whether the OPTIONS list shall be created. |
static IProperty<List<LayoutOptionData<?>>> |
OPTIONS
the layout options that are supported by the active layout algorithm. |
static int |
PRIORITY
the priority for the default layout configuration. |
Constructor Summary | |
---|---|
DefaultLayoutConfig()
|
Method Summary | |
---|---|
void |
enrich(LayoutContext context)
Enrich the given context with additional information that can be derived from what is already contained. |
static LayoutAlgorithmData |
getLayouterData(String theLayoutHint,
String diagramType)
Determine the most appropriate layout algorithm for the given layout hint and diagram 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<Boolean> OPT_MAKE_OPTIONS
OPTIONS
list shall be created.
public static final IProperty<List<LayoutOptionData<?>>> OPTIONS
public static final IProperty<String> CONTENT_HINT
public static final IProperty<String> CONTENT_DIAGT
public static final IProperty<LayoutAlgorithmData> CONTENT_ALGO
public static final IProperty<String> CONTAINER_HINT
public static final IProperty<String> CONTAINER_DIAGT
public static final IProperty<LayoutAlgorithmData> CONTAINER_ALGO
public static final IProperty<Boolean> HAS_PORTS
Constructor Detail |
---|
public DefaultLayoutConfig()
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 static LayoutAlgorithmData getLayouterData(String theLayoutHint, String diagramType)
theLayoutHint
- either a layout algorithm identifier,
or a layout type identifier, or null
diagramType
- a diagram type identifier
public 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 |