public class TableNodeBuilder
extends java.lang.Object
Constructor and Description |
---|
TableNodeBuilder()
Initializes a new instance of the TableNodeBuilder class.
|
TableNodeBuilder(TableNode instance)
Initializes a new instance of the TableNodeBuilder class.
|
Modifier and Type | Method and Description |
---|---|
TableNodeBuilder |
allowIncomingLinks(boolean value)
Sets a value indicating whether users are allowed to draw links to this node.
|
TableNodeBuilder |
allowOutgoingLinks(boolean value)
Sets a value indicating whether users are allowed to draw links from this node.
|
TableNodeBuilder |
allowResizeColumns(boolean value)
Sets a value indicating whether users are allowed to resize table columns.
|
TableNodeBuilder |
allowResizeRows(boolean value)
Sets a value indicating whether users are allowed to resize table rows.
|
TableNodeBuilder |
anchorPattern(AnchorPattern value)
Sets the anchor points to which link end points are aligned when
links connect to this node.
|
TableNodeBuilder |
brush(Brush value)
Sets the brush used to fill the item's interior.
|
TableNodeBuilder |
brush(java.awt.Color color) |
TableNodeBuilder |
brush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TableNodeBuilder |
caption(java.lang.String value)
Sets the caption text of a table.
|
TableNodeBuilder |
captionBackBrush(Brush value)
Sets the brush used to paint the caption area of this table.
|
TableNodeBuilder |
captionBackBrush(java.awt.Color color) |
TableNodeBuilder |
captionBackBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TableNodeBuilder |
captionBrush(Brush value)
Sets the brush used to draw the table's caption text.
|
TableNodeBuilder |
captionBrush(java.awt.Color color) |
TableNodeBuilder |
captionBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TableNodeBuilder |
captionFormat(TextFormat value)
Sets a
TextFormat object specifying how to format and align the caption text. |
TableNodeBuilder |
captionHeight(float value)
Sets the height of the caption area of the table.
|
TableNodeBuilder |
cellCustomDraw(CustomDraw value)
Sets the type of custom drawing performed on the table cells.
|
TableNodeBuilder |
cellFrameStyle(CellFrameStyle value)
Sets the style of the cell frame lines.
|
TableNodeBuilder |
cellTextBrush(Brush value)
Sets the color used to draw the text in this table.
|
TableNodeBuilder |
cellTextBrush(java.awt.Color color) |
TableNodeBuilder |
cellTextBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TableNodeBuilder |
columnCount(int value)
Sets the number of columns of this table.
|
TableNodeBuilder |
columnWidth(float value)
Sets the initial width of the columns of this table.
|
TableNodeBuilder |
connectionStyle(TableConnectionStyle value)
Sets a value indicating whether links should connect to the
rows of this table or to the table as an integral entity.
|
TableNodeBuilder |
constraints(NodeConstraints value)
Sets constraints to the node size and movement direction.
|
TableNode |
create()
Creates a new object with the attributes accumulated by this builder.
|
TableNodeBuilder |
currentRow(int value)
Scrolls the table to the specified row.
|
TableNodeBuilder |
customDraw(CustomDraw value)
Sets the type of custom drawing performed on this table.
|
TableNodeBuilder |
enabledHandles(java.util.EnumSet<NodeHandleType> value)
Sets a combination of
NodeHandleType members identifying which manipulation
handles are enabled for a node. |
TableNodeBuilder |
enableStyledText(boolean value)
Sets a value indicating whether the text displayed inside a table
contains formatting tags which should be processed by JDiagram.
|
TableNodeBuilder |
expandable(boolean value)
Sets a value indicating whether users are allowed to expand or collapse
the tree branch that starts from this node.
|
TableNodeBuilder |
expanded(boolean value)
Expands or collapses the tree branch that starts from a node.
|
TableNodeBuilder |
font(java.awt.Font value)
Sets the font used to draw the text displayed in this table.
|
TableNodeBuilder |
font(java.lang.String fontName,
float fontSize) |
TableNode |
get()
Returns an existing object passed for initialization to this builder.
|
TableNodeBuilder |
handlesStyle(HandlesStyle value)
Sets the style of the box selection handles.
|
TableNodeBuilder |
hyperLink(java.lang.String value)
Sets the hyperlink associated with an item.
|
TableNodeBuilder |
id(java.lang.Object value)
Assigns user-defined identifier to this item.
|
TableNodeBuilder |
ignoreLayout(boolean value)
Sets a value indicating whether an item should be ignored
by the automatic layout algorithms.
|
TableNodeBuilder |
image(java.awt.Image value)
Sets the image that should be displayed inside this table.
|
TableNodeBuilder |
imageAlign(ImageAlign value)
Sets the alignment of the table image relative to the boundaries of the table.
|
TableNodeBuilder |
imagePadding(Thickness value)
Sets the padding distance between node's borders and Image.
|
TableNodeBuilder |
layerIndex(int value)
Sets the zero-based index of the layer this item is associated
with, or -1, if the item is not associated with any layer.
|
TableNodeBuilder |
locked(boolean value)
Sets a value indicating whether users are allowed to modify an item.
|
TableNodeBuilder |
obstacle(boolean value)
Sets a value indicating whether the link routing algorithm
should consider this node an obstacle.
|
TableNodeBuilder |
offsetHeaderRows(boolean value)
Sets a value indicating whether the table cells should be offset to
the right to accommodate for the expand buttons displayed inside header rows.
|
TableNodeBuilder |
pen(Pen value)
Sets the pen used to draw the item frame lines.
|
TableNodeBuilder |
printable(boolean value)
Sets a value indicating whether an item will be printed.
|
TableNodeBuilder |
rotationAngle(float value)
Sets the rotation angle of a node.
|
TableNodeBuilder |
rowAnchorPattern(AnchorPattern value)
Sets the default row
AnchorPattern . |
TableNodeBuilder |
rowCount(int value)
Sets the number of rows of this table.
|
TableNodeBuilder |
rowHeight(float value)
Sets the initial height of the rows of this table.
|
TableNodeBuilder |
scrollable(boolean value)
Sets a value indicating whether users are allowed to scroll the table.
|
TableNodeBuilder |
selected(boolean value)
Selects or deselects an item.
|
TableNodeBuilder |
shadowBrush(Brush value)
Sets the color of the item's shadow.
|
TableNodeBuilder |
shadowBrush(java.awt.Color color) |
TableNodeBuilder |
shadowBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TableNodeBuilder |
shadowOffsetX(float value)
Sets the horizontal distance between a shadow and the item that casts it.
|
TableNodeBuilder |
shadowOffsetY(float value)
Sets the vertical distance between a shadow and the item that casts it.
|
TableNodeBuilder |
shape(SimpleShape value)
Sets the shape of this table.
|
TableNodeBuilder |
style(DiagramItemStyle value)
Sets the style associated with the item.
|
TableNodeBuilder |
tag(java.lang.Object value)
Assigns user-defined data to an item.
|
TableNodeBuilder |
textBrush(Brush value)
Sets the brush used to paint texts inside the item.
|
TableNodeBuilder |
textBrush(java.awt.Color color) |
TableNodeBuilder |
textBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TableNodeBuilder |
textPadding(Thickness value)
Sets the spacing between the item boundaries and its text.
|
TableNodeBuilder |
toolTip(java.lang.String value)
Sets the tooltip text that should be displayed when the mouse
pointer rests over an item.
|
TableNodeBuilder |
visible(boolean value)
Sets a value indicating whether an item is visible.
|
TableNodeBuilder |
weight(float value)
Sets a weight value used in layout and path-finding algorithms.
|
TableNodeBuilder |
zIndex(int value)
Sets the position of an item within the diagram's Z order.
|
public TableNodeBuilder()
public TableNodeBuilder(TableNode instance)
public TableNodeBuilder zIndex(int value)
value
- An integer value specifying the position of the item
within the diagram Z order.public TableNodeBuilder allowIncomingLinks(boolean value)
value
- true
if incoming links can be drawn to this node,
otherwise false
.public TableNodeBuilder allowOutgoingLinks(boolean value)
value
- true
if outgoing links can be drawn from
this node, otherwise false
.public TableNodeBuilder allowResizeColumns(boolean value)
value
- true to let users resize columns, or false otherwise.public TableNodeBuilder allowResizeRows(boolean value)
value
- true to let users resize rows, or false otherwise.public TableNodeBuilder anchorPattern(AnchorPattern value)
value
- An AnchorPattern
object that defines
the anchor points for this node.public TableNodeBuilder brush(Brush value)
value
- A Brush
-derived object representing the item's brush.public TableNodeBuilder brush(java.awt.Color color)
public TableNodeBuilder brush(java.awt.Color color1, java.awt.Color color2, int angle)
public TableNodeBuilder caption(java.lang.String value)
value
- A String
object containing the caption text.public TableNodeBuilder captionBackBrush(Brush value)
value
- An instance of a Brush-derived class.public TableNodeBuilder captionBackBrush(java.awt.Color color)
public TableNodeBuilder captionBackBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public TableNodeBuilder captionBrush(Brush value)
value
- A Brush
object representing the color of the caption text.public TableNodeBuilder captionBrush(java.awt.Color color)
public TableNodeBuilder captionBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public TableNodeBuilder captionFormat(TextFormat value)
TextFormat
object specifying how to format and align the caption text.value
- A TextFormat
object specifying the caption format and alignment.public TableNodeBuilder captionHeight(float value)
value
- A float value specifying the height of the table caption area.public TableNodeBuilder cellCustomDraw(CustomDraw value)
value
- A member of the CustomDraw
enumeration.public TableNodeBuilder cellFrameStyle(CellFrameStyle value)
value
- A member of the CellFrameStyle
enumeration.public TableNodeBuilder cellTextBrush(Brush value)
value
- A Brush
object representing the text color.public TableNodeBuilder cellTextBrush(java.awt.Color color)
public TableNodeBuilder cellTextBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public TableNodeBuilder columnCount(int value)
value
- An integer value specifying the number of columns in this table.public TableNodeBuilder columnWidth(float value)
value
- A float value specifying the initial width of columns
added to this table.public TableNodeBuilder connectionStyle(TableConnectionStyle value)
value
- A member of the TableConnectionStyle
enumeration.public TableNodeBuilder constraints(NodeConstraints value)
value
- A NodeConstraints
object.public TableNodeBuilder currentRow(int value)
value
- An integer value specifying the index of the row that
should be scrolled to the top of the table.public TableNodeBuilder customDraw(CustomDraw value)
value
- A member of the CustomDraw
enumeration.public TableNodeBuilder enableStyledText(boolean value)
value
- true
if JDiagram should process formatting tags
when rendering text in this table, otherwise false
.public TableNodeBuilder enabledHandles(java.util.EnumSet<NodeHandleType> value)
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.value
- A set of NodeHandleType
members.public TableNodeBuilder expandable(boolean value)
value
- true
if the tree branch that starts from this node
can be expanded or collapsed by users, otherwise false
.public TableNodeBuilder expanded(boolean value)
value
- true
if the tree branch that starts from
this node should be expanded, otherwise false
.public TableNodeBuilder font(java.awt.Font value)
value
- A Font
object representing the table font.public TableNodeBuilder font(java.lang.String fontName, float fontSize)
public TableNodeBuilder handlesStyle(HandlesStyle value)
value
- A member of the HandlesStyle
enumeration.public TableNodeBuilder hyperLink(java.lang.String value)
value
- A String
containing the hyperlink.public TableNodeBuilder id(java.lang.Object value)
DiagramListener.serializeTag(com.mindfusion.diagramming.SerializeTagEvent)
event.value
- An Object
containing custom data.public TableNodeBuilder ignoreLayout(boolean value)
value
- true
if the item should be ignored by
automatic layout algorithms, otherwise false
.public TableNodeBuilder image(java.awt.Image value)
value
- A Image
object.public TableNodeBuilder imageAlign(ImageAlign value)
value
- A member of the ImageAlign
enumeration.public TableNodeBuilder imagePadding(Thickness value)
value
- A Thickness value specifying padding distance.public TableNodeBuilder layerIndex(int value)
value
- An integer value specifying the layer index.public TableNodeBuilder locked(boolean value)
value
- true
if the item should not be modified,
otherwise false
.public TableNodeBuilder obstacle(boolean value)
value
- true
if auto-routed links should go around
this node, otherwise false
.public TableNodeBuilder offsetHeaderRows(boolean value)
value
- true
if table cells should be offset
to the right, otherwise false
.public TableNodeBuilder pen(Pen value)
value
- A Pen
object representing the item's pen.public TableNodeBuilder printable(boolean value)
value
- true
if the item should be drawn
when printing the diagram, otherwise false
.public TableNodeBuilder rotationAngle(float value)
value
- A float value specifying the node rotation angle.public TableNodeBuilder rowAnchorPattern(AnchorPattern value)
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.value
- An AnchorPattern
object representing the set of anchor
points used when connecting links to the rows of this table.public TableNodeBuilder rowCount(int value)
value
- An integer value specifying the number of rows in this table.public TableNodeBuilder rowHeight(float value)
value
- A float value specifying the initial height of rows
added to this table.public TableNodeBuilder scrollable(boolean value)
value
- true
if users are allowed to scroll
the table, otherwise false
.public TableNodeBuilder selected(boolean value)
value
- true
if the item should be selected,
otherwise false
.public TableNodeBuilder shadowBrush(Brush value)
value
- A Brush
object representing the brush of the item's shadow.public TableNodeBuilder shadowBrush(java.awt.Color color)
public TableNodeBuilder shadowBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public TableNodeBuilder shadowOffsetX(float value)
value
- A float value representing the horizontal offset of the item's shadow.public TableNodeBuilder shadowOffsetY(float value)
value
- A float value representing the vertical offset of the item's shadow.public TableNodeBuilder shape(SimpleShape value)
value
- A member of the SimpleShape
enumeration.public TableNodeBuilder style(DiagramItemStyle value)
public TableNodeBuilder tag(java.lang.Object value)
DiagramListener.serializeTag(com.mindfusion.diagramming.SerializeTagEvent)
event.value
- An Object
containing custom data.public TableNodeBuilder textBrush(Brush value)
public TableNodeBuilder textBrush(java.awt.Color color)
public TableNodeBuilder textBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public TableNodeBuilder textPadding(Thickness value)
value
- A Thickness
instance specifying the size of the padding space left around the text.public TableNodeBuilder toolTip(java.lang.String value)
value
- A String
that contains the tooltip text.public TableNodeBuilder visible(boolean value)
value
- true
if the item should be visible,
otherwise false
.public TableNodeBuilder weight(float value)
value
- A float value representing the item's weight.public TableNode create()
public TableNode get()