|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.graphviz.dot.transform.DotExporter
public class DotExporter
This class implements a transformation from the KGraph metamodel to the Dot metamodel. Furthermore it contains functionality to apply layout information attached to a Dot model to a KGraph model.
Field Summary | |
---|---|
static IProperty<Command> |
COMMAND
the Graphviz command to use for transformation. |
static float |
DEF_SPACING_LARGE
large default value for minimal spacing. |
static float |
DEF_SPACING_SMALL
small default value for minimal spacing. |
static float |
DEF_SPACING_XLARGE
extra-large default value for minimal spacing. |
static float |
DPI
dots per inch specification, needed by Graphviz for some values. |
static IProperty<Boolean> |
FULL_EXPORT
whether to always transform the whole graph with all hierarchy levels. |
static IProperty<Boolean> |
USE_EDGE_IDS
whether edge identifiers should be generated or not. |
Constructor Summary | |
---|---|
DotExporter()
|
Method Summary | |
---|---|
static Attribute |
createAttribute(String name,
float value)
Create an attribute with given name and float value for the Dot graph. |
static Attribute |
createAttribute(String name,
int value)
Create an attribute with given name and integer value for the Dot graph. |
static Attribute |
createAttribute(String name,
String value)
Create an attribute with given name and value for the Dot graph. |
void |
transferLayout(TransformationData<KNode,GraphvizModel> transData)
Applies the layout information attached to the given Dot instance to the KGraph instance using the mapping created by a previous call to transform . |
void |
transform(TransformationData<KNode,GraphvizModel> transData)
Transforms the KGraph instance to a Dot instance using the given command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float DEF_SPACING_SMALL
public static final float DEF_SPACING_LARGE
public static final float DEF_SPACING_XLARGE
public static final float DPI
public static final IProperty<Command> COMMAND
public static final IProperty<Boolean> USE_EDGE_IDS
public static final IProperty<Boolean> FULL_EXPORT
Constructor Detail |
---|
public DotExporter()
Method Detail |
---|
public void transform(TransformationData<KNode,GraphvizModel> transData)
transform
in interface IGraphTransformer<KNode,GraphvizModel>
transData
- the transformation data instancepublic void transferLayout(TransformationData<KNode,GraphvizModel> transData)
transform
. Has to be called after a
call to transform
.
transferLayout
in interface IGraphTransformer<KNode,GraphvizModel>
transData
- the transformation data instancepublic static Attribute createAttribute(String name, String value)
name
- name of the attributevalue
- value of the attribute
public static Attribute createAttribute(String name, int value)
name
- name of the attributevalue
- value of the attribute
public static Attribute createAttribute(String name, float value)
name
- name of the attributevalue
- value of the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |