|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.graph.LayoutEngine
org.wilmascope.dotlayout.DotLayout
public class DotLayout
A layout engine which uses the dot program to find node and edge positions. Dot is part of the AT&T Labs-Research Graphviz suite.
Copyright: Copyright (c) Tim Dwyer 2001
Company: WilmaScope.org
Field Summary | |
---|---|
int |
bbXMax
|
int |
bbXMin
|
int |
bbYMax
|
int |
bbYMin
|
float |
height
|
float |
width
|
Constructor Summary | |
---|---|
DotLayout()
|
Method Summary | |
---|---|
boolean |
applyLayout()
apply the changes calculated by LayoutEngine.calculateLayout() |
void |
calculateLayout()
calculate the changes required to move the graph to a nicer layout. |
EdgeLayout |
createEdgeLayout(Edge e)
Factory method to create a new EdgeLayout implementation compatible with the layout engine implementing this interface. |
NodeLayout |
createNodeLayout(Node n)
Factory method to create a new NodeLayout implementation compatible with the layout engine implementing this interface. |
javax.swing.JPanel |
getControls()
|
java.lang.String |
getName()
Return a string descriptor for the layout engine type. |
java.util.Properties |
getProperties()
If you want custom properties for your layout you will need to override this method but be sure to super.getProperties() |
float |
getStrataSeparation()
|
float |
getXScale()
|
float |
getYScale()
|
void |
reset()
|
void |
resetProperties()
process your custom properties by overriding this method, but, again call super.resetProperties in your overriding implementation |
void |
setStrataSeparation(float sep)
|
void |
setXScale(float f)
|
void |
setYScale(float f)
|
Methods inherited from class org.wilmascope.graph.LayoutEngine |
---|
getRoot, init, isIterative, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int bbXMin
public int bbXMax
public int bbYMin
public int bbYMax
public float width
public float height
Constructor Detail |
---|
public DotLayout()
Method Detail |
---|
public void calculateLayout()
LayoutEngine
LayoutEngine.applyLayout()
method. Potentially, this means that
the caller can calculate new positions (stored in the NodeLayouts), then opt not to
apply the changes if it does not lead to an improvement.
In practice this has not yet been utilised and such
decisions are usually made internally to the layout engine.
calculateLayout
in class LayoutEngine
public boolean applyLayout()
LayoutEngine
LayoutEngine.calculateLayout()
applyLayout
in class LayoutEngine
public void reset()
public NodeLayout createNodeLayout(Node n)
LayoutEngine
createNodeLayout
in class LayoutEngine
public EdgeLayout createEdgeLayout(Edge e)
LayoutEngine
createEdgeLayout
in class LayoutEngine
public javax.swing.JPanel getControls()
getControls
in class LayoutEngine
public float getXScale()
public float getYScale()
public void setXScale(float f)
f
- horizontal scalepublic void setYScale(float f)
f
- vertical scalepublic void setStrataSeparation(float sep)
public float getStrataSeparation()
public java.util.Properties getProperties()
LayoutEngine
getProperties
in class LayoutEngine
public void resetProperties()
LayoutEngine
resetProperties
in class LayoutEngine
public java.lang.String getName()
LayoutEngine
getName
in class LayoutEngine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |