|
||||||||||
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 String |
OPT_LABEL_EDGE_DISTANCE
layout option identifier for label edge distance. |
static String |
OPT_LABEL_MARGIN_DISTANCE
layout option identifier for label margin distance. |
Constructor Summary | |
---|---|
OgdfLayouter()
|
Method Summary | |
---|---|
protected void |
applyLayout(KNode parentNode,
GraphAttributes graphAttributes)
Applies the layout result to the original graph. |
void |
doLayout(KNode layoutNode,
IKielerProgressMonitor progressMonitor)
Layouts the given graph. |
abstract Object |
getDefault(String optionId)
Returns the default value for the given layout option. |
protected boolean |
isUmlGraph(KNode layoutNode)
Determines whether the given graph should be layouted as UML graph. |
protected void |
layoutLabels(KNode layoutNode,
GraphAttributes graphAttributes,
ELabelInterfaceDouble thelabelInterface)
Layout the edge labels. |
protected void |
postProcess(KNode layoutNode)
Performs post-processing on the given node. |
protected abstract LayoutModule |
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 String OPT_LABEL_EDGE_DISTANCE
public static final String OPT_LABEL_MARGIN_DISTANCE
Constructor Detail |
---|
public OgdfLayouter()
Method Detail |
---|
public void doLayout(KNode layoutNode, IKielerProgressMonitor progressMonitor)
layoutNode
- the node representing the graphprogressMonitor
- the progress monitorprotected abstract LayoutModule prepareLayouter(KNode layoutNode)
layoutNode
- the parent node
protected void postProcess(KNode layoutNode)
layoutNode
- the parent nodeprotected void layoutLabels(KNode layoutNode, GraphAttributes graphAttributes, ELabelInterfaceDouble thelabelInterface)
layoutNode
- the parent layout nodegraphAttributes
- graph attributes for the graphthelabelInterface
- the label interfacepublic abstract Object getDefault(String optionId)
optionId
- a layout option identifier
null
if the option is not knownprotected boolean isUmlGraph(KNode layoutNode)
layoutNode
- a parent graph
protected void applyLayout(KNode parentNode, GraphAttributes graphAttributes)
parentNode
- the parent node of the layout graphgraphAttributes
- ogdf graph with attached layout attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |