DroidDiagram Programmer's Guide
TableNode Members
Constructors Fields Methods
 


Tables are diagram nodes that can contain multiple cells and can be related to other nodes through their rows.

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

 Public Constructors

  Name Description

TableNode

Overloaded.  

 Protected Fields

  Name Description

allowIncomingLinks

  (Inherited from DiagramNode.)

allowOutgoingLinks

  (Inherited from DiagramNode.)

anchorPattern

  (Inherited from DiagramNode.)

AV_Cancel

  (Inherited from DiagramNode.)

AV_EndModIncoming

  (Inherited from DiagramNode.)

AV_EndModOutgoing

  (Inherited from DiagramNode.)

AV_StartModIncoming

  (Inherited from DiagramNode.)

AV_StartModOutgoing

  (Inherited from DiagramNode.)

AV_UpdateIncoming

  (Inherited from DiagramNode.)

AV_UpdateOutgoing

  (Inherited from DiagramNode.)

AV_UpdIntscIncoming

  (Inherited from DiagramNode.)

AV_UpdIntscOutgoing

  (Inherited from DiagramNode.)

AV_UpdPosIncoming

  (Inherited from DiagramNode.)

AV_UpdPosOutgoing

  (Inherited from DiagramNode.)

bounds

  (Inherited from DiagramNode.)

brush

  (Inherited from DiagramItem.)

cycleDetected

  (Inherited from DiagramItem.)

cycleProtect

  (Inherited from DiagramItem.)

enabledHandles

  (Inherited from DiagramNode.)

handlesStyle

  (Inherited from DiagramNode.)

incomingLinks

  (Inherited from DiagramNode.)

masterGroup

  (Inherited from DiagramNode.)

modifyDX

  (Inherited from DiagramItem.)

modifyDY

  (Inherited from DiagramItem.)

modifyHandle

  (Inherited from DiagramItem.)

modifying

  (Inherited from DiagramItem.)

obstacle

  (Inherited from DiagramNode.)

outgoingLinks

  (Inherited from DiagramNode.)

pen

  (Inherited from DiagramItem.)

ptEnd

  (Inherited from DiagramItem.)

ptMdfLast

  (Inherited from DiagramItem.)

ptOrg

  (Inherited from DiagramItem.)

ptSavedEnd

  (Inherited from DiagramItem.)

ptSavedOrg

  (Inherited from DiagramItem.)

savedBounds

  (Inherited from DiagramNode.)

subordinateGroup

  (Inherited from DiagramItem.)

 Public Methods

  Name Description

addColumn

Appends a new column to this table.

addRelation

Creates a new DiagramLink related to this table.

addRow

Adds a row to the table.

attachTo

Overloaded.   (Inherited from DiagramNode.)

cellFromPoint

Returns the row and column indices of the cell located at the specified point, taking into consideration the cells span.

clone

Creates a copy of this item. (Inherited from DiagramItem.)

containsPoint

Overloaded.   (Inherited from DiagramNode.)

deleteColumn

Deletes the specified column.

deleteRow

Deletes the specified row from the table.

detach

Detaches a node from its master group. (Inherited from DiagramNode.)

getAllIncomingLinks

Gets a collection of all links entering this node. (Inherited from DiagramNode.)

getAllLinks

Gets all links connected to this node. (Inherited from DiagramNode.)

getAllOutgoingLinks

Gets a collection of all links going out of this node. (Inherited from DiagramNode.)

getAllowIncomingLinks

Gets a value indicating whether users are allowed to draw links to this node. (Inherited from DiagramNode.)

getAllowOutgoingLinks

Gets a value indicating whether users are allowed to draw links from this node. (Inherited from DiagramNode.)

getAnchorPattern

Gets the anchor points to which link end points are aligned when links connect to this node. (Inherited from DiagramNode.)

getBounds

Gets the node location and size. (Inherited from DiagramNode.)

getBrush

Gets the brush used to fill the item's interior. (Inherited from DiagramItem.)

getCaption

Gets the caption text of a table.

getCaptionBrush

Gets the brush used to draw the table's caption text.

getCaptionFormat

Gets a TextFormat object specifying how to format and align the caption text.

getCaptionHeight

Gets the height of the caption area of the table.

getCaptionPlainText

Gets the plain text extracted from the formatted caption text by removing the formatting tags.

getCell

Gets the cell at the specified row and column.

getCellFrameStyle

Gets the style of the cell frame lines.

getCellTextBrush

Gets the brush used to draw the cells' text in this table.

getCenter

Returns the center point of this node. (Inherited from DiagramNode.)

getColumnCount

Gets the number of columns of this table.

getColumns

Gets a list of all columns in the table.

getColumnWidth

Gets the initial width of the columns of this table.

getConnectionStyle

Gets a value indicating whether links should connect to the rows of this table or to the table as an integral entity.

getConstraints

Gets the movement and size constraints applied to a node. (Inherited from DiagramNode.)

getCurrentRow

Gets the index of the current scroll row.

getEditRect

Implements InplaceEditable.getEditRect. Returns the rectangle where the in-place edit text box should appear (in document coordinates).

getEffectiveBrush

Gets the effective brush of the item. (Inherited from DiagramItem.)

getEffectiveCaptionBrush

Returns a Brush object representing the currently effective caption brush of the table. This method returns the table's CaptionBrush if it's not null, or otherwise the TextBrush property of the current TableNodeStyle.

getEffectiveCellTextBrush

Creates a Brush object representing the currently effective text brush of the table cells. This method returns a system brush corresponding to the table's getCellTextBrush if the table's getCellTextBrush is not null, or a system brush corresponding to the TableNodeStyle.getCellTextBrush property of the table's style.

getEffectiveFont

Gets the currently effective font of the item. This property returns getFont if it is not null, or a font with the DiagramItemStyle.getFontFamily, DiagramItemStyle.getFontSize, and DiagramItemStyle.getFontStyle properties of the item's style. (Inherited from DiagramItem.)

getEffectivePen

Gets the effective pen of the item. (Inherited from DiagramItem.)

getEffectiveShadowBrush

Creates a Brush object representing the currently effective shadow brush of the item. This method returns a system brush corresponding to the item's getShadowBrush if the item's getShadowBrush is not null, or a system brush corresponding to the DiagramItemStyle.getShadowBrush property of the item's style. (Inherited from DiagramItem.)

getEffectiveTextBrush

Gets the effective text brush of the item. (Inherited from DiagramItem.)

getEffects

Gets a collection with all effects applied to this node. (Inherited from DiagramNode.)

getEnabledHandles

Gets a combination of NodeHandleType members identifying which manipulation handles are enabled for a node. This effectively controls what kind of modifications users are allowed to perform on this node. (Inherited from DiagramNode.)

getEnableStyledText

Gets a value indicating whether the text displayed inside a table contains formatting tags which should be processed by DroidDiagram.

getExpandable

Gets a value indicating whether users are allowed to expand or collapse the tree branch that starts from this node. (Inherited from DiagramNode.)

getExpanded

Gets a value indicating whether the tree branch that starts from a node is expanded or collapsed. (Inherited from DiagramNode.)

getFont

Gets the font used to draw the text displayed in this table.

getHandlesStyle

Gets a value indicating how the node adjustment handles behave and what do they look like. (Inherited from DiagramNode.)

getHyperLink

Gets the hyperlink associated with an item. (Inherited from DiagramItem.)

getId

Gets user-defined identifier associated with this item. (Inherited from DiagramItem.)

getIgnoreLayout

Gets a value indicating whether an item should be ignored by the automatic layout algorithms. (Inherited from DiagramItem.)

getImage

Gets the image displayed inside this table.

getImageAlign

Gets the alignment of the table image relative to the boundaries of the table.

getIncomingLinks

Gets the links coming into a node. (Inherited from DiagramNode.)

getLayerIndex

Gets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with any layer. (Inherited from DiagramItem.)

getLayoutTraits

Returns a hashtable containing properties specific to layout algorithms. (Inherited from DiagramItem.)

getLocalCenter

  (Inherited from DiagramNode.)

getLocked

Gets a value indicating whether users are allowed to modify an item. (Inherited from DiagramItem.)

getMasterGroup

Gets the hierarchical group in which this node is a subordinate item. (Inherited from DiagramNode.)

getNearestBorderPoint

Returns a point that lies on the outline of this node, at the shortest distance from the specified point. (Inherited from DiagramNode.)

getObstacle

Gets a value indicating whether the link routing algorithm should consider this node an obstacle. (Inherited from DiagramNode.)

getOffsetHeaderRows

Gets a value indicating whether the table cells are offset to the right to accommodate for the expand buttons displayed inside header rows.

getOutgoingLinks

Gets the links going out from a node. (Inherited from DiagramNode.)

getParent

Gets the diagram that contains this item. (Inherited from DiagramItem.)

getPen

Gets the pen used to draw the item frame lines. (Inherited from DiagramItem.)

getPrintable

Gets a value indicating whether an item will be printed. (Inherited from DiagramItem.)

getRotatedBounds

Gets the bounding rectangle of this node, when it is rotated at the specified angle around the specified pivot. (Inherited from DiagramNode.)

getRotationAngle

Gets the rotation angle of this node. (Inherited from DiagramNode.)

getRowAnchorPattern

Gets the default row AnchorPattern.

getRowCount

Gets the number of rows of this table.

getRowHeight

Gets the initial height of the rows of this table.

getRows

Gets a list of all rows in the table.

getRuntimeIndex

For internal use. (Inherited from DiagramItem.)

getScrollable

Gets a value indicating whether users are allowed to scroll the table.

getSelected

Gets a value indicating whether this item is selected. (Inherited from DiagramItem.)

getShadowBrush

Gets the brush used to paint the item's shadow. (Inherited from DiagramItem.)

getShadowOffsetX

Gets the horizontal distance between a shadow and the item that casts it. (Inherited from DiagramItem.)

getShadowOffsetY

Gets the vertical distance between a shadow and the item that casts it. (Inherited from DiagramItem.)

getShape

Gets the shape of this table.

getStyle

Gets the style associated with the item. (Inherited from DiagramItem.)

getSubordinateGroup

Gets the group of subordinated items attached to this one. (Inherited from DiagramItem.)

getTag

Gets user-defined data assigned to an item. (Inherited from DiagramItem.)

getTextBrush

Gets the brush used to paint texts inside the item. (Inherited from DiagramItem.)

getTextPadding

Gets the spacing between the item boundaries and its text. (Inherited from DiagramItem.)

getTextToEdit

Implements InplaceEditable.getTextToEdit. Returns the text that should be displayed initially when the table's caption is edited in-place.

getToolTip

Gets the tooltip text displayed when the pointer rests over this item. (Inherited from DiagramItem.)

getVisible

Gets a value indicating whether an item is visible. (Inherited from DiagramItem.)

getWeight

Gets a weight value used in layout and path-finding algorithms. (Inherited from DiagramItem.)

getZIndex

Gets the position of an item within the diagram's Z-order. (Inherited from DiagramItem.)

hasSubordinates

Checks whether there are any nodes attached to this item. (Inherited from DiagramItem.)

hitTest

Returns the diagram item that contains the specified point. (Inherited from DiagramItem.)

hitTestHandle

DiagramItem.hitTestHandle override. (Inherited from DiagramNode.)

init

Returns a TableNodeBuilder object used to configure this TableNode instance.

insertColumn

Inserts a new column at the specified position.

insertRow

Inserts a row in the table.

moveTo

Moves a node to the specified location. (Inherited from DiagramNode.)

nodesIntersect

Determines whether two nodes intersect. (Inherited from DiagramNode.)

onDragOut

Invoked when a diagram item is being dragged out of this node. (Inherited from DiagramNode.)

onDragOver

Invoked when a diagram item is being dragged over this node. (Inherited from DiagramNode.)

onDropOver

Invoked when a diagram item is dropped over this node. (Inherited from DiagramNode.)

query

Returns the items that can be reached from this item by following the path specified in the given query expression. (Inherited from DiagramItem.)

readExternal

Implements Externalizable.

redimTable

Sets the number of rows and columns.

renderText

 

resize

Sets the size of a node. (Inherited from DiagramNode.)

resizeToFitImage

Resizes a table so that it will be as big as the image displayed in the table.

resizeToFitText

Resizes the columns and rows so that the cells are large enough to fit their text.

setAllowIncomingLinks

Sets a value indicating whether users are allowed to draw links to this node. (Inherited from DiagramNode.)

setAllowOutgoingLinks

Sets a value indicating whether users are allowed to draw links from this node. (Inherited from DiagramNode.)

setAnchorPattern

Sets the anchor points to which link end points are aligned when links connect to this node. (Inherited from DiagramNode.)

setBounds

Overloaded.   (Inherited from DiagramNode.)

setBoundsDirect

For internal use. (Inherited from DiagramNode.)

setBrush

Sets the brush used to fill the item's interior. (Inherited from DiagramItem.)

setCaption

Sets the caption text of a table.

setCaptionBrush

Sets the brush used to draw the table's caption text.

setCaptionFormat

Sets a TextFormat object specifying how to format and align the caption text.

setCaptionHeight

Sets the height of the caption area of the table.

setCellFrameStyle

Sets the style of the cell frame lines.

setCellTextBrush

Sets the color used to draw the text in this table.

setColumnCount

Sets the number of columns of this table.

setColumnWidth

Sets the initial width of the columns of this table.

setConnectionStyle

Sets a value indicating whether links should connect to the rows of this table or to the table as an integral entity.

setConstraints

Sets constraints to the node size and movement direction. The constraints are applied when a user modifies the node interactively. They are not checked when the position of a node is set programmatically. (Inherited from DiagramNode.)

setCurrentRow

Scrolls the table to the specified row.

setEditedText

Implements InplaceEditable.setEditedText. Assigns the edited text to the table's caption after in-place edit operation completes successfully.

setEnabledHandles

Sets a combination of NodeHandleType members identifying which manipulation handles are enabled for a node. This effectively controls what kind of modifications users are allowed to perform on this node. (Inherited from DiagramNode.)

setEnableStyledText

Sets a value indicating whether the text displayed inside a table contains formatting tags which should be processed by DroidDiagram.

setExpandable

Sets a value indicating whether users are allowed to expand or collapse the tree branch that starts from this node. (Inherited from DiagramNode.)

setExpanded

Expands or collapses the tree branch that starts from a node. (Inherited from DiagramNode.)

setExpandedFlag

Changes the "expanded" flag without actually expanding or collapsing the tree branch that starts from a node. (Inherited from DiagramNode.)

setFont

Sets the font used to draw the text displayed in this table.

setHandlesStyle

Sets a value indicating how the node adjustment handles behave and what do they look like. (Inherited from DiagramNode.)

setHyperLink

Sets the hyperlink associated with an item. (Inherited from DiagramItem.)

setId

Assigns user-defined identifier to this item. (Inherited from DiagramItem.)

setIgnoreLayout

Sets a value indicating whether an item should be ignored by the automatic layout algorithms. (Inherited from DiagramItem.)

setImage

Sets the image that should be displayed inside this table.

setImageAlign

Sets the alignment of the table image relative to the boundaries of the table.

setLayerIndex

Sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with any layer. (Inherited from DiagramItem.)

setLocked

Sets a value indicating whether users are allowed to modify an item. (Inherited from DiagramItem.)

setObstacle

Sets a value indicating whether the link routing algorithm should consider this node an obstacle. (Inherited from DiagramNode.)

setOffsetHeaderRows

Sets a value indicating whether the table cells should be offset to the right to accommodate for the expand buttons displayed inside header rows.

setPen

Sets the pen used to draw the item frame lines. (Inherited from DiagramItem.)

setPrintable

Sets a value indicating whether an item will be printed. (Inherited from DiagramItem.)

setRotationAngle

Sets the rotation angle of a node. (Inherited from DiagramNode.)

setRowAnchorPattern

Sets the default row AnchorPattern. A link is aligned to the points of this pattern if the row the link connects to doesn't have an AnchorPattern defined for it.

setRowCount

Sets the number of rows of this table.

setRowHeight

Sets the initial height of the rows of this table.

setScrollable

Sets a value indicating whether users are allowed to scroll the table.

setSelected

Selects or deselects an item. (Inherited from DiagramItem.)

setShadowBrush

Sets the brush used to paint the item's shadow. (Inherited from DiagramItem.)

setShadowOffsetX

Sets the horizontal distance between a shadow and the item that casts it. (Inherited from DiagramItem.)

setShadowOffsetY

Sets the vertical distance between a shadow and the item that casts it. (Inherited from DiagramItem.)

setShape

Sets the shape of this table.

setStyle

Sets the style associated with the item. (Inherited from DiagramItem.)

setTag

Assigns user-defined data to an item. If the tag object is serializable, it will be automatically saved when serializing the diagram into binary format. When serializing to XML, you can save the tag by handling the DiagramListener.serializeTag event. (Inherited from DiagramItem.)

setTextBrush

Sets the brush used to paint texts inside the item. (Inherited from DiagramItem.)

setTextPadding

Sets the spacing between the item boundaries and its text. (Inherited from DiagramItem.)

setToolTip

Sets the tooltip text that should be displayed when the pointer rests over this item. (Inherited from DiagramItem.)

setVisible

Sets a value indicating whether an item is visible. (Inherited from DiagramItem.)

setWeight

Sets a weight value used in layout and path-finding algorithms. (Inherited from DiagramItem.)

setZIndex

Sets the position of an item within the diagram's Z-order. (Inherited from DiagramItem.)

with

Returns a TableNodeBuilder object used to configure and create new TableNode instances.

writeExternal

Implements Externalizable.

zBottom

Moves an item to the bottom of the Z order. (Inherited from DiagramItem.)

zLevelDown

Moves an item down in the Z order. (Inherited from DiagramItem.)

zLevelUp

Moves an item up in the Z order. (Inherited from DiagramItem.)

zTop

Moves an item to the top of the Z order. (Inherited from DiagramItem.)

 Protected Methods

  Name Description

allowCreate

DiagramItem.allowCreate override. (Inherited from DiagramNode.)

allowModify

  (Inherited from DiagramNode.)

allowModifyImpl

  (Inherited from DiagramNode.)

cancelModify

DiagramItem.cancelModify override. Invoked when the interactive modification of this node has been canceled. (Inherited from DiagramNode.)

completeCreate

DiagramItem.completeCreate override. (Inherited from DiagramNode.)

completeModify

  (Inherited from DiagramNode.)

constraintsInfringed

  (Inherited from DiagramNode.)

createConnectionPoint

 

createProperties

DiagramItem.createProperties override.

createState

DiagramItem.createState override. (Inherited from DiagramNode.)

draw

DiagramItem.draw override. (Inherited from DiagramNode.)

drawLocal

DiagramNode.drawLocal override.

drawShadow

DiagramItem.drawShadow override. (Inherited from DiagramNode.)

drawShadowLocal

DiagramNode.drawShadowLocal override.

getLocalBounds

Gets this node's bounding rectangle in local coordinates. (Inherited from DiagramNode.)

getLocalBoundsD

Gets this node's bounding rectangle in local coordinates. (Inherited from DiagramNode.)

getMeasureUnit

  (Inherited from DiagramItem.)

getRepaintRect

DiagramItem.getRepaintRect override.

getValue

Gets the effective value of the style property with the specified name. (Inherited from DiagramItem.)

groupContains

  (Inherited from DiagramNode.)

loadFromXml

 

move

  (Inherited from DiagramNode.)

onAdd

Called when an item is added to a Diagram, either by the user, programmatically or by undo / redo. (Inherited from DiagramItem.)

onChangeFont

  (Inherited from DiagramItem.)

onChangeTextPadding

DiagramItem.onChangeTextPadding override.

onChildModified

Called when a group child node has been modified. Override this method if you need to know when a node from the SubordinateGroup is modified. (Inherited from DiagramItem.)

onClick

Invoked when the user clicks this item. (Inherited from DiagramItem.)

onDoubleClick

Invoked when the user double-clicks this item. (Inherited from DiagramItem.)

onLoad

DiagramItem.onLoad override.

onMeasureUnitChanged

Called when the diagram's MeasureUnit changes. (Inherited from DiagramItem.)

onModify

Called when an item is modified (Inherited from DiagramNode.)

onRemove

Called when an item is removed from a Diagram, either by the user, programmatically or by undo / redo. (Inherited from DiagramNode.)

onRotationAngleChanged

Called when the node's rotation angle changes. (Inherited from DiagramNode.)

onStyleChanged

Invoked when the associated style or theme have changed. (Inherited from DiagramItem.)

onStyleFontChanged

DiagramItem.onStyleFontChanged override.

onUpdateBounds

 

parentConstraintsInfringed

  (Inherited from DiagramNode.)

putExpandable

  (Inherited from DiagramNode.)

putSelected

  (Inherited from DiagramItem.)

rectFromPoints

  (Inherited from DiagramNode.)

repaint

Overloaded.   (Inherited from DiagramItem.)

resizeToFitImage

  (Inherited from DiagramNode.)

restoreProperties

DiagramItem.restoreProperties override.

restoreState

DiagramItem.restoreState override. (Inherited from DiagramNode.)

saveProperties

DiagramItem.saveProperties override.

saveState

DiagramItem.saveState override. (Inherited from DiagramNode.)

saveToXml

 

scaleElements

DiagramNode.scaleElements override.

setDiagramDirty

Marks the diagram as changed. (Inherited from DiagramItem.)

setReflexive

Invoked to let a node set the shape of a reflexive link connected to it.

shouldRender

Determines whether the item is rendered in the current context. (Inherited from DiagramItem.)

shouldRenderAnchors

Determines whether the node should render its anchor points. (Inherited from DiagramNode.)

startCreate

DiagramItem.startCreate override. (Inherited from DiagramNode.)

startModify

DiagramItem.startModify override. Invoked when the user starts modifying this node interactively. (Inherited from DiagramNode.)

updateCreate

DiagramItem.updateCreate override. (Inherited from DiagramNode.)

updateLinkPositions

  (Inherited from DiagramNode.)

updateModify

DiagramItem.updateModify override. Invoked during interactive modification of this node. (Inherited from DiagramNode.)

 See Also

TableNode Class
com.mindfusion.diagramming Namespace