com.mindfusion.diagramming
Class LaneGrid

java.lang.Object
  extended by com.mindfusion.diagramming.LaneGrid
All Implemented Interfaces:
SwimlaneGrid

public class LaneGrid
extends java.lang.Object
implements SwimlaneGrid

Represents an SwimlaneGrid which operates on a Grid object.


Constructor Summary
LaneGrid(com.mindfusion.diagramming.lanes.Grid grid)
          Initializes a new instance of the LaneGrid class.
 
Method Summary
 int getColumnCount()
          SwimlaneGrid.getColumnCount() implementation.
 float getColumnWidth(int index)
          SwimlaneGrid.getColumnCount() implementation.
 int getRowCount()
          SwimlaneGrid.getRowCount() implementation.
 float getRowHeight(int index)
          SwimlaneGrid.getRowHeight(int) implementation.
 void setColumnCount(int value)
          SwimlaneGrid.setColumnCount(int) implementation.
 void setColumnWidth(int index, float value)
          SwimlaneGrid.setColumnCount(int) implementation.
 void setLeftMargin(float value)
          SwimlaneGrid.setLeftMargin(float) implementation.
 void setRowCount(int value)
          SwimlaneGrid.setRowCount(int) implementation.
 void setRowHeight(int index, float value)
          SwimlaneGrid.setRowHeight(int, float) implementation.
 void setTopMargin(float value)
          SwimlaneGrid.setTopMargin(float) implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaneGrid

public LaneGrid(com.mindfusion.diagramming.lanes.Grid grid)
Initializes a new instance of the LaneGrid class.

Method Detail

setRowCount

public void setRowCount(int value)
SwimlaneGrid.setRowCount(int) implementation.

Specified by:
setRowCount in interface SwimlaneGrid
Parameters:
value - A non-negative integer value specifying the number of rows.

setColumnCount

public void setColumnCount(int value)
SwimlaneGrid.setColumnCount(int) implementation.

Specified by:
setColumnCount in interface SwimlaneGrid
Parameters:
value - A non-negative integer value specifying the number of columns.

getRowCount

public int getRowCount()
SwimlaneGrid.getRowCount() implementation.

Specified by:
getRowCount in interface SwimlaneGrid
Returns:
The number of rows in the grid.

getColumnCount

public int getColumnCount()
SwimlaneGrid.getColumnCount() implementation.

Specified by:
getColumnCount in interface SwimlaneGrid
Returns:
The number of columns in the grid.

setRowHeight

public void setRowHeight(int index,
                         float value)
SwimlaneGrid.setRowHeight(int, float) implementation.

Specified by:
setRowHeight in interface SwimlaneGrid
Parameters:
index - The zero-based index of the row.
value - The new height of the row.

setColumnWidth

public void setColumnWidth(int index,
                           float value)
SwimlaneGrid.setColumnCount(int) implementation.

Specified by:
setColumnWidth in interface SwimlaneGrid
Parameters:
index - The zero-based index of the column.
value - The new width of the column.

getRowHeight

public float getRowHeight(int index)
SwimlaneGrid.getRowHeight(int) implementation.

Specified by:
getRowHeight in interface SwimlaneGrid
Parameters:
index - The zero-based index of the row.
Returns:
The height of the row.

getColumnWidth

public float getColumnWidth(int index)
SwimlaneGrid.getColumnCount() implementation.

Specified by:
getColumnWidth in interface SwimlaneGrid
Parameters:
index - The zero-based index of the column.
Returns:
The width of the column.

setLeftMargin

public void setLeftMargin(float value)
SwimlaneGrid.setLeftMargin(float) implementation.

Specified by:
setLeftMargin in interface SwimlaneGrid
Parameters:
value - The distance between the left side of the grid and the diagram bounds.

setTopMargin

public void setTopMargin(float value)
SwimlaneGrid.setTopMargin(float) implementation.

Specified by:
setTopMargin in interface SwimlaneGrid
Parameters:
value - The distance between the top side of the grid and the diagram bounds.