|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.ogdf.OgdfLayouter
public abstract class OgdfLayouter
The base wrapper class for all OGDF layouters.
Field Summary | |
---|---|
static float |
DEF_BORDER_SPACING
default value for border spacing. |
static float |
DEF_LABEL_EDGE_DIST
default value for label edge distance. |
static float |
DEF_LABEL_MARGIN_DIST
default value for label margin distance. |
static String |
INPUT_FORMAT
the input format for the ogdf server. |
static IProperty<Float> |
LABEL_EDGE_DIST
label edge distance property. |
static String |
LABEL_EDGE_DIST_ID
layout option identifier for label edge distance. |
static IProperty<Float> |
LABEL_MARGIN_DIST
label margin distance property. |
static String |
LABEL_MARGIN_DIST_ID
layout option identifier for label margin distance. |
Constructor Summary | |
---|---|
OgdfLayouter(String theName)
Contructs an OgdfLayouter. |
Method Summary | |
---|---|
protected void |
addInformation(String key,
Object value)
Adds additional information for the next layout. |
protected void |
addOption(String key,
Object value)
Adds an option for the next layout. |
protected void |
applyLayout(KNode parentNode,
Map<String,KVectorChain> layoutInformation)
Applies the layout information back to the original graph. |
void |
doLayout(KNode layoutNode,
IKielerProgressMonitor progressMonitor,
OgdfServer ogdfServer)
Layouts the given graph. |
protected void |
postProcess(KNode layoutNode)
Performs post-processing on the given node. |
protected void |
prepareLabelLayout(KNode layoutNode)
Prepare the label layout. |
protected abstract void |
prepareLayouter(KNode layoutNode)
Sets the layout specific options and modules depending on the options defined in the node. |
void |
setDebugCanvas(IDebugCanvas thecanvas)
Set the debug canvas. |
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_BORDER_SPACING
public static final String LABEL_EDGE_DIST_ID
public static final float DEF_LABEL_EDGE_DIST
public static final IProperty<Float> LABEL_EDGE_DIST
public static final String LABEL_MARGIN_DIST_ID
public static final float DEF_LABEL_MARGIN_DIST
public static final IProperty<Float> LABEL_MARGIN_DIST
public static final String INPUT_FORMAT
Constructor Detail |
---|
public OgdfLayouter(String theName)
theName
- the name of the layouter as used in the ogdf serverMethod Detail |
---|
public void setDebugCanvas(IDebugCanvas thecanvas)
thecanvas
- the debug canvaspublic void doLayout(KNode layoutNode, IKielerProgressMonitor progressMonitor, OgdfServer ogdfServer)
layoutNode
- the node representing the graphprogressMonitor
- the progress monitorogdfServer
- the OGDF server process interfaceprotected abstract void prepareLayouter(KNode layoutNode)
layoutNode
- the parent nodeprotected void postProcess(KNode layoutNode)
layoutNode
- the parent nodeprotected void addOption(String key, Object value)
key
- the option keyvalue
- the valueprotected void addInformation(String key, Object value)
key
- the option keyvalue
- the valueprotected void prepareLabelLayout(KNode layoutNode)
layoutNode
- the parent layout nodeprotected void applyLayout(KNode parentNode, Map<String,KVectorChain> layoutInformation)
parentNode
- the parent node of the layout graphlayoutInformation
- the layout information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |