public class AutoGraphLayout extends java.lang.Object implements GraphLayout, java.io.Serializable
If you manually set metrics and use this, these metrics will be lost
| Modifier and Type | Field and Description |
|---|---|
static boolean |
COLUMNSFIRST
Draw rows or columns first
|
static boolean |
DOWNWARDS
Orientation of the graph layout
|
static boolean |
ROWSFIRST
Draw rows or columns first
|
static boolean |
UPWARDS
Orientation of the graph layout
|
| Constructor and Description |
|---|
AutoGraphLayout()
Create a new automatic grid layout.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setColumns(int cols)
Manually set the number of columns.
|
void |
setDefinition(Page page,
java.lang.StringBuilder buffer)
Update the capacity of this layout.
|
void |
setDrawFirst(boolean drawfirst)
Set where the first graph will be put
|
void |
setOrientation(boolean orientation)
Sey the orientation of the graphs, as being put
|
void |
setRows(int rows)
Manually set the number of rows.
|
public static final boolean DOWNWARDS
public static final boolean UPWARDS
public static final boolean ROWSFIRST
public static final boolean COLUMNSFIRST
public AutoGraphLayout()
public void setDrawFirst(boolean drawfirst)
drawfirst - Position of the first graphROWSFIRST,
COLUMNSFIRSTpublic void setOrientation(boolean orientation)
public void setRows(int rows)
rows - Desired number of rows. Set it to -1 to be automatically
computed.public void setColumns(int cols)
cols - Desired number of columns. Set it to -1 to be automatically
computed.public void setDefinition(Page page, java.lang.StringBuilder buffer)
setDefinition in interface GraphLayoutpage - The page with the elements we would like to positionbuffer - Where to send commands, just after the "set multiplot"
part.