|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.graph.LayoutEngine
org.wilmascope.columnlayout.ColumnLayout
public class ColumnLayout
Column layout simply places each node in the cluster at the same x,y position as the root cluster but with the z determined by each node's stratum
Constructor Summary | |
---|---|
ColumnLayout()
|
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. |
int |
getBaseStratum()
|
javax.swing.JPanel |
getControls()
|
java.util.Vector |
getExtraSpacing()
|
float |
getHeight()
|
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() |
int |
getStrataCount()
|
float |
getStrataSeparation()
|
void |
reset()
|
void |
resetProperties()
process your custom properties by overriding this method, but, again call super.resetProperties in your overriding implementation |
void |
setBalanced(boolean balanced)
|
void |
setBaseStratum(int stratum)
|
void |
setExtraSpacing(java.util.Vector extraSpacing)
|
void |
setStrataSeparation(float strataSeparation)
|
void |
skipStratum()
|
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 |
Constructor Detail |
---|
public ColumnLayout()
Method Detail |
---|
public void setExtraSpacing(java.util.Vector extraSpacing)
public java.util.Vector getExtraSpacing()
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 setBalanced(boolean balanced)
public NodeLayout createNodeLayout(Node n)
LayoutEngine
createNodeLayout
in class LayoutEngine
public EdgeLayout createEdgeLayout(Edge e)
LayoutEngine
createEdgeLayout
in class LayoutEngine
public void setBaseStratum(int stratum)
public int getBaseStratum()
public int getStrataCount()
public void skipStratum()
public void reset()
public void setStrataSeparation(float strataSeparation)
public float getStrataSeparation()
public float getHeight()
public javax.swing.JPanel getControls()
getControls
in class LayoutEngine
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 |