com.mindfusion.diagramming
Interface SwimlaneGrid

All Known Implementing Classes:
LaneGrid

public interface SwimlaneGrid

Represents an object which can be used by a SwimlaneLayout to adjust the corresponding swimlane grid.


Method Summary
 int getColumnCount()
          Gets the number of columns in the grid.
 float getColumnWidth(int index)
          Gets the the width of the specified column in the swimlane grid.
 int getRowCount()
          Gets the number of rows in the swimlane grid.
 float getRowHeight(int index)
          Gets the the height of the specified row in the swimlane grid.
 void setColumnCount(int value)
          Sets the number of columns in the swimlane grid.
 void setColumnWidth(int index, float value)
          Sets the the width of the specified column in the swimlane grid.
 void setLeftMargin(float value)
          Sets the left margin of the swimlane grid.
 void setRowCount(int value)
          Sets the number of rows in the swimlane grid.
 void setRowHeight(int index, float value)
          Sets the the height of the specified row in the swimlane grid.
 void setTopMargin(float value)
          Sets the top margin of the swimlane grid.
 

Method Detail

setRowCount

void setRowCount(int value)
Sets the number of rows in the swimlane grid.

Parameters:
value - A non-negative integer value specifying the number of rows.

setColumnCount

void setColumnCount(int value)
Sets the number of columns in the swimlane grid.

Parameters:
value - A non-negative integer value specifying the number of columns.

getRowCount

int getRowCount()
Gets the number of rows in the swimlane grid.

Returns:
The number of rows in the grid.

getColumnCount

int getColumnCount()
Gets the number of columns in the grid.

Returns:
The number of columns in the grid.

setRowHeight

void setRowHeight(int index,
                  float value)
Sets the the height of the specified row in the swimlane grid.

Parameters:
index - The zero-based index of the row.
value - The new height of the row.

setColumnWidth

void setColumnWidth(int index,
                    float value)
Sets the the width of the specified column in the swimlane grid.

Parameters:
index - The zero-based index of the column.
value - The new width of the column.

getRowHeight

float getRowHeight(int index)
Gets the the height of the specified row in the swimlane grid.

Parameters:
index - The zero-based index of the row.
Returns:
The height of the row.

getColumnWidth

float getColumnWidth(int index)
Gets the the width of the specified column in the swimlane grid.

Parameters:
index - The zero-based index of the column.
Returns:
The width of the column.

setLeftMargin

void setLeftMargin(float value)
Sets the left margin of the swimlane grid.

Parameters:
value - The distance between the left side of the grid and the diagram bounds.

setTopMargin

void setTopMargin(float value)
Sets the top margin of the swimlane grid.

Parameters:
value - The distance between the top side of the grid and the diagram bounds.