Class JGraphSimpleLayout
java.lang.Object
com.jgraph.layout.graph.JGraphSimpleLayout
- All Implemented Interfaces:
JGraphLayout
Three simple layouts in one class. Circl, tilt and randomize. The latter two
take into accounts the x and y parameters.
-
Nested Class Summary
Nested classes/interfaces inherited from interface JGraphLayout
JGraphLayout.Stoppable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intstatic final intstatic final intstatic final intFields inherited from interface JGraphLayout
VERSION -
Constructor Summary
ConstructorsConstructorDescriptionJGraphSimpleLayout(int type) JGraphSimpleLayout(int type, int maxx, int maxy) -
Method Summary
Modifier and TypeMethodDescriptionintgetMaxx()intgetMaxy()voidrun(JGraphFacade graph) Takes the graph detail and configuration information within the facade and creates the resulting laid out graph within that facade for further usevoidsetMaxx(int maxx) voidsetMaxy(int maxy) toString()Returns a name for this algorithm based on the type.
-
Field Details
-
TYPE_CIRCLE
public static final int TYPE_CIRCLE- See Also:
-
TYPE_TILT
public static final int TYPE_TILT- See Also:
-
TYPE_RANDOM
public static final int TYPE_RANDOM- See Also:
-
type
protected int type -
maxx
protected int maxx -
maxy
protected int maxy
-
-
Constructor Details
-
JGraphSimpleLayout
public JGraphSimpleLayout(int type) -
JGraphSimpleLayout
public JGraphSimpleLayout(int type, int maxx, int maxy)
-
-
Method Details
-
run
Description copied from interface:JGraphLayoutTakes the graph detail and configuration information within the facade and creates the resulting laid out graph within that facade for further use- Specified by:
runin interfaceJGraphLayout- Parameters:
graph- The layout facade that the layout will use as input
-
getMaxx
public int getMaxx()- Returns:
- Returns the maxx.
-
setMaxx
public void setMaxx(int maxx) - Parameters:
maxx- The maxx to set.
-
getMaxy
public int getMaxy()- Returns:
- Returns the maxy.
-
setMaxy
public void setMaxy(int maxy) - Parameters:
maxy- The maxy to set.
-
toString
-