|
||||||||||
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 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()
|
Method Summary | |
---|---|
protected void |
applyLayout(KNode parentNode)
Applies the layout result to the original graph. |
void |
doLayout(KNode layoutNode,
IKielerProgressMonitor progressMonitor)
Layouts the given graph. |
void |
initDefaults(IPropertyHolder defaultsHolder)
Initialize the default values for the layout provider. |
protected boolean |
isUmlGraph(KNode layoutNode)
Determines whether the given graph should be layouted as UML graph. |
protected void |
layoutLabels(KNode layoutNode)
Layout the edge labels. |
protected void |
postProcess(KNode layoutNode)
Performs post-processing on the given node. |
protected abstract void |
prepareLayouter(KNode layoutNode)
Sets the layout specific options and modules depending on the options defined in the node. |
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
Constructor Detail |
---|
public OgdfLayouter()
Method Detail |
---|
public void initDefaults(IPropertyHolder defaultsHolder)
defaultsHolder
- the layout options holder for default valuespublic void doLayout(KNode layoutNode, IKielerProgressMonitor progressMonitor) throws KielerException
layoutNode
- the node representing the graphprogressMonitor
- the progress monitor
KielerException
- if the layout failedprotected abstract void prepareLayouter(KNode layoutNode)
layoutNode
- the parent nodeprotected void postProcess(KNode layoutNode)
layoutNode
- the parent nodeprotected void layoutLabels(KNode layoutNode)
layoutNode
- the parent layout nodeprotected boolean isUmlGraph(KNode layoutNode)
layoutNode
- a parent graph
protected void applyLayout(KNode parentNode)
parentNode
- the parent node of the layout graph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |