|
||||||||||
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.transformations.KGraphDotTransformation
public class KGraphDotTransformation
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.
Nested Class Summary | |
---|---|
static class |
KGraphDotTransformation.Command
definition of Graphviz commands. |
Field Summary | |
---|---|
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 IProperty<Float> |
LABEL_DISTANCE
label distance property. |
static String |
LABEL_DISTANCE_ID
layout option identifier for label distance. |
Constructor Summary | |
---|---|
KGraphDotTransformation(KNode parent)
Constructs a KGraphDotTransformation for a given KGraph instance. |
Method Summary | |
---|---|
void |
applyLayout(GraphvizModel model,
IKielerProgressMonitor monitor)
Applies the layout information attached to the given Dot instance to the KGraph instance using the mapping created by a previous call to transform . |
GraphvizModel |
transform(KGraphDotTransformation.Command command,
IKielerProgressMonitor monitor)
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 String LABEL_DISTANCE_ID
public static final IProperty<Float> LABEL_DISTANCE
public static final float DEF_SPACING_SMALL
public static final float DEF_SPACING_LARGE
public static final float DEF_SPACING_XLARGE
Constructor Detail |
---|
public KGraphDotTransformation(KNode parent)
parent
- the KGraph instanceMethod Detail |
---|
public GraphvizModel transform(KGraphDotTransformation.Command command, IKielerProgressMonitor monitor)
command
- the commandmonitor
- the progress monitor
public void applyLayout(GraphvizModel model, IKielerProgressMonitor monitor)
transform
. Has to be called after a call to transform
.
model
- the Dot instancemonitor
- the progress monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |