public class JGraphSimpleLayout extends java.lang.Object implements JGraphLayout
JGraphLayout.Stoppable| Modifier and Type | Field and Description |
|---|---|
protected int |
maxx |
protected int |
maxy |
protected int |
type |
static int |
TYPE_CIRCLE |
static int |
TYPE_RANDOM |
static int |
TYPE_TILT |
VERSION| Constructor and Description |
|---|
JGraphSimpleLayout(int type) |
JGraphSimpleLayout(int type,
int maxx,
int maxy) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxx() |
int |
getMaxy() |
void |
run(JGraphFacade graph)
Takes the graph detail and configuration information within the facade
and creates the resulting laid out graph within that facade for further
use
|
void |
setMaxx(int maxx) |
void |
setMaxy(int maxy) |
java.lang.String |
toString()
Returns a name for this algorithm based on the type.
|
public static final int TYPE_CIRCLE
public static final int TYPE_TILT
public static final int TYPE_RANDOM
protected int type
protected int maxx
protected int maxy
public JGraphSimpleLayout(int type)
public JGraphSimpleLayout(int type,
int maxx,
int maxy)
public void run(JGraphFacade graph)
JGraphLayoutrun in interface JGraphLayoutgraph - The layout facade that the layout will use as inputpublic int getMaxx()
public void setMaxx(int maxx)
maxx - The maxx to set.public int getMaxy()
public void setMaxy(int maxy)
maxy - The maxy to set.public java.lang.String toString()
Circle,Tilt or Random.
Unknown is returned for all unimplemented types.toString in class java.lang.ObjectCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.