DroidDiagram Programmer's Guide
Grid Members
Constructors Methods
 


Represents a lane grid.

The following tables list the members exposed by the Grid type.

 Public Constructors

  Name Description

Grid

Overloaded.  

 Public Methods

  Name Description

addGridListener

 

findColumn

Returns the first column header matching the specified caption.

findRow

Finds the first row whose header caption matches the specified string.

get

Overloaded.  

getAllowResizeHeaders

Gets a value indicating whether users can resize the headers of the grid interactively.

getCellBounds

Returns the bounding rectangle of the specified cell.

getCellColumn

Returns the column index of the specified cell.

getCellFromPoint

Gets the cell located at the specified point.

getCellRow

Returns the row index of the specified cell.

getColumn

Returns the column header with the specified index from the bottommost column header level.

getColumnCount

Gets the number of columns in the grid.

getColumnHeaderBounds

Returns the bounding rectangle of all column headers.

getColumnHeaders

Gets the collection with the topmost column headers.

getColumnHeadersHeights

Gets an array with float values specifying the heights of individual column levels. If a value is non-positive or does not exist because the array has less arguments than the number of rows, then the height is calculated as the maximum height of the columns in that level.

getColumnIndex

Returns the 0-based index of the specified column. Only works for bottommost headers. If the specified column is a group header, returns -1.

getEnableStyledText

Gets a value indicating whether the text of the lane headers can contain formatting tags, such as <b>.

getHeaderBounds

Returns the bounding rectangle of the specified header.

getHeaderFromPoint

Overloaded.  

getHeaderLevel

Gets the level of the specified header.

getheadersOnTop

Gets a value indicating whether lane headers appear at the top of the z-order above all other items.

getHookHeaders

Gets a value indicating whether headers will be anchored to the corresponding side (that is, the column header anchored to the top side and the row header anchored to the left side).

getLeftMargin

Gets the offset of the lane grid from the left side of the document bounds.

getMinHeaderSize

 

getRow

Returns the row header with the specified index from the bottommost row header level.

getRowCount

Gets the number of rows in the grid.

getRowHeaderBounds

Returns the bounding rectangle of all row headers.

getRowHeaders

Gets the collection with the leftmost row headers.

getRowHeadersWidths

Gets an array with float values specifying the widths of individual row levels.

getRowIndex

Returns the 0-based index of the specified row. Only works for bottommost headers. If the specified row is a group header, returns -1;

getTopLeftAreaStyle

Gets the style of the area above all row headers and to the left of all column headers.

getTopLeftAreaText

Gets the text displayed in the top left area.

getTopLeftAreaTextColor

Gets the color of the text displayed in the top left area.

getTopLeftAreaTextFont

Gets the font used to display text in the top left area.

getTopLeftAreaTextFormat

Gets the format of the text displayed in the top left area.

getTopMargin

Gets the offset of the lane grid from the top side of the document bounds.

insertAfter

Inserts a new header after the specified header and returns a reference to it.

loadFromXml

Deserializes the lane grid from the specified Element using the specified context.

raiseAppearanceChanged

 

raiseCellBoundsChanged

 

raiseHeaderAdded

 

raiseHeaderResized

 

raiseHeaderStartResizing

 

readExternal

 

removeGridListener

 

renderFirst

Invoked in order to render the grid before any other diagram items are drawn.

renderLast

Invoked in order to render the grid after all other diagram items are drawn.

resizeColumnHeaderHeights

This method is for internal use only. Resizes the heights of all column headers from the specified level with the specified amount.

resizeRowHeaderWidths

This method is for internal use only. Resizes the widths of all row headers from the specified level with the specified amount.

saveToXml

Serializes the lane grid to the specified XmlElement using the specified context.

setAllowResizeHeaders

Sets a value indicating whether users can resize the headers of the grid interactively.

setColumnCount

Sets the number of columns in the grid.

setColumnHeadersHeights

Sets an array with float values specifying the heights of individual column levels. If a value is non-positive or does not exist because the array has less arguments than the number of rows, then the height is calculated as the maximum height of the columns in that level.

setEnableStyledText

Sets a value indicating whether the text of the lane headers can contain formatting tags, such as <b>.

setHeadersOnTop

Sets a value indicating whether lane headers appear at the top of the z-order above all other items.

setHookHeaders

Sets a value indicating whether headers will be anchored to the corresponding side (that is, the column header anchored to the top side and the row header anchored to the left side).

setLeftMargin

Sets the offset of the lane grid from the left side of the document bounds.

setMinHeaderSize

 

setParent

 

setRowCount

Sets the number of rows in the grid.

setRowHeadersWidths

Sets an array with float values specifying the widths of individual row levels. If a value is non-positive or does not exist because the array has less arguments than the number of rows, then the width is calculated as the maximum width of the rows in that level.

setTopLeftAreaStyle

Sets the style of the area above all row headers and to the left of all column headers.

setTopLeftAreaText

Sets the text displayed in the top left area.

setTopLeftAreaTextColor

Sets the color of the text displayed in the top left area.

setTopLeftAreaTextFont

Sets the font used to display text in the top left area.

setTopLeftAreaTextFormat

Sets the format of the text displayed in the top left area.

setTopMargin

Sets the offset of the lane grid from the top side of the document bounds.

writeExternal

 

 Protected Methods

  Name Description

columnHeaderAdded

Handles the HeaderAdded event on the master column header.

columnHeaderHeightChanged

 

columnHeaderRemoved

 

columnHeaderSizeChanged

 

columnHeaderWidthChanged

 

headerSizeChanged

 

rowHeaderAdded

 

rowHeaderHeightChanged

 

rowHeaderRemoved

 

rowHeaderWidthChanged

 

 See Also

Grid Class
com.mindfusion.diagramming.lanes Namespace