com.panayotis.gnuplot.layout
Class StripeLayout

java.lang.Object
  extended by com.panayotis.gnuplot.layout.AutoGraphLayout
      extended by com.panayotis.gnuplot.layout.StripeLayout
All Implemented Interfaces:
GraphLayout, java.io.Serializable

public class StripeLayout
extends AutoGraphLayout

Align graphs evenly on the page This Layout is based on AutoGraphLayout

See Also:
Serialized Form

Field Summary
static boolean EXPANDCOLUMNS
          Information if rows or columns are added automatically
static boolean EXPANDROWS
          Information if rows or columns are added automatically
 
Fields inherited from class com.panayotis.gnuplot.layout.AutoGraphLayout
COLUMNSFIRST, DOWNWARDS, ROWSFIRST, UPWARDS
 
Constructor Summary
StripeLayout()
          Create a new Strip layout.
 
Method Summary
 void setColumns(int cols)
          Set behaviour, depending on the number of columns.
 void setRows(int rows)
          Set behaviour, depending on the number of rows.
 void setType(boolean type)
          Set the default behaviour
 
Methods inherited from class com.panayotis.gnuplot.layout.AutoGraphLayout
setDefinition, setDrawFirst, setOrientation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPANDROWS

public static final boolean EXPANDROWS
Information if rows or columns are added automatically

See Also:
Constant Field Values

EXPANDCOLUMNS

public static final boolean EXPANDCOLUMNS
Information if rows or columns are added automatically

See Also:
Constant Field Values
Constructor Detail

StripeLayout

public StripeLayout()
Create a new Strip layout. Default behaviour is EXPANDROWS.

Method Detail

setType

public void setType(boolean type)
Set the default behaviour

Parameters:
type - Whether EXPANDROWS or EXPANDCOLUMNS is desired.
See Also:
#EXPANDCOLUMNS

setRows

public void setRows(int rows)
Set behaviour, depending on the number of rows. It always creates stripes and it might change to EXPANDCOLUMNS if rows are less than 2.

Overrides:
setRows in class AutoGraphLayout
Parameters:
rows - Number of desired rows

setColumns

public void setColumns(int cols)
Set behaviour, depending on the number of columns. It always creates stripes and it might change to EXPANDROWS if columns are less than 2.

Overrides:
setColumns in class AutoGraphLayout
Parameters:
cols - Number of desired columns