public class TreeViewNodeBuilder
extends java.lang.Object
Constructor and Description |
---|
TreeViewNodeBuilder()
Initializes a new instance of the TreeViewNodeBuilder class.
|
TreeViewNodeBuilder(TreeViewNode instance)
Initializes a new instance of the TreeViewNodeBuilder class.
|
Modifier and Type | Method and Description |
---|---|
TreeViewNodeBuilder |
allowIncomingLinks(boolean value)
Sets a value indicating whether users are allowed to draw links to this node.
|
TreeViewNodeBuilder |
allowOutgoingLinks(boolean value)
Sets a value indicating whether users are allowed to draw links from this node.
|
TreeViewNodeBuilder |
anchorPattern(AnchorPattern value)
Sets the anchor points to which link end points are aligned when
links connect to this node.
|
TreeViewNodeBuilder |
brush(Brush value)
Sets the brush used to fill the item's interior.
|
TreeViewNodeBuilder |
brush(java.awt.Color color) |
TreeViewNodeBuilder |
brush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TreeViewNodeBuilder |
caption(java.lang.String value)
Sets the text displayed as caption of the node.
|
TreeViewNodeBuilder |
captionHeight(float value)
Gets the height of the node's caption area.
|
TreeViewNodeBuilder |
captionImage(java.awt.Image value)
Gets the image that is displayed in the caption.
|
TreeViewNodeBuilder |
connectionStyle(TreeViewConnectionStyle value)
Sets a value indicating whether drawing a link from/to this
node should connect an item or the whole node as an integral entity.
|
TreeViewNodeBuilder |
constraints(NodeConstraints value)
Sets constraints to the node size and movement direction.
|
TreeViewNode |
create()
Creates a new object with the attributes accumulated by this builder.
|
TreeViewNodeBuilder |
enabledHandles(java.util.EnumSet<NodeHandleType> value)
Sets a combination of
NodeHandleType members identifying which manipulation
handles are enabled for a node. |
TreeViewNodeBuilder |
enableStyledText(boolean value)
Sets a value indicating whether styled text rendering is enabled.
|
TreeViewNodeBuilder |
expandable(boolean value)
Sets a value indicating whether users are allowed to expand or collapse
the tree branch that starts from this node.
|
TreeViewNodeBuilder |
expanded(boolean value)
Expands or collapses the tree branch that starts from a node.
|
TreeViewNodeBuilder |
font(java.awt.Font value)
Sets or the font used to render the node's caption.
|
TreeViewNodeBuilder |
font(java.lang.String fontName,
float fontSize) |
TreeViewNode |
get()
Returns an existing object passed for initialization to this builder.
|
TreeViewNodeBuilder |
handlesStyle(HandlesStyle value)
Sets the style of the box selection handles.
|
TreeViewNodeBuilder |
hyperLink(java.lang.String value)
Sets the hyperlink associated with an item.
|
TreeViewNodeBuilder |
id(java.lang.Object value)
Assigns user-defined identifier to this item.
|
TreeViewNodeBuilder |
ignoreLayout(boolean value)
Sets a value indicating whether an item should be ignored
by the automatic layout algorithms.
|
TreeViewNodeBuilder |
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.
|
TreeViewNodeBuilder |
locked(boolean value)
Sets a value indicating whether users are allowed to modify an item.
|
TreeViewNodeBuilder |
obstacle(boolean value)
Sets a value indicating whether the link routing algorithm
should consider this node an obstacle.
|
TreeViewNodeBuilder |
pen(Pen value)
Sets the pen used to draw the item frame lines.
|
TreeViewNodeBuilder |
printable(boolean value)
Sets a value indicating whether an item will be printed.
|
TreeViewNodeBuilder |
rotationAngle(float value)
Sets the rotation angle of a node.
|
TreeViewNodeBuilder |
scrollable(boolean value)
Sets a value indicating whether users are allowed to scroll this tree view.
|
TreeViewNodeBuilder |
scrollPosition(float value)
Sets the current scroll position.
|
TreeViewNodeBuilder |
selected(boolean value)
Selects or deselects an item.
|
TreeViewNodeBuilder |
shadowBrush(Brush value)
Sets the color of the item's shadow.
|
TreeViewNodeBuilder |
shadowBrush(java.awt.Color color) |
TreeViewNodeBuilder |
shadowBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TreeViewNodeBuilder |
shadowOffsetX(float value)
Sets the horizontal distance between a shadow and the item that casts it.
|
TreeViewNodeBuilder |
shadowOffsetY(float value)
Sets the vertical distance between a shadow and the item that casts it.
|
TreeViewNodeBuilder |
shape(SimpleShape value)
Sets the shape of this node.
|
TreeViewNodeBuilder |
showLines(boolean value)
Sets whether to display lines connecting child items to parent items.
|
TreeViewNodeBuilder |
style(DiagramItemStyle value)
Sets the style associated with the item.
|
TreeViewNodeBuilder |
tag(java.lang.Object value)
Assigns user-defined data to an item.
|
TreeViewNodeBuilder |
textBrush(Brush value)
Sets the brush used to paint texts inside the item.
|
TreeViewNodeBuilder |
textBrush(java.awt.Color color) |
TreeViewNodeBuilder |
textBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
TreeViewNodeBuilder |
textFormat(TextFormat value)
Sets a
TextFormat object specifying how to format and align the text of this node. |
TreeViewNodeBuilder |
textPadding(Thickness value)
Sets the spacing between the item boundaries and its text.
|
TreeViewNodeBuilder |
toolTip(java.lang.String value)
Sets the tooltip text that should be displayed when the mouse
pointer rests over an item.
|
TreeViewNodeBuilder |
visible(boolean value)
Sets a value indicating whether an item is visible.
|
TreeViewNodeBuilder |
weight(float value)
Sets a weight value used in layout and path-finding algorithms.
|
TreeViewNodeBuilder |
zIndex(int value)
Sets the position of an item within the diagram's Z order.
|
public TreeViewNodeBuilder()
public TreeViewNodeBuilder(TreeViewNode instance)
public TreeViewNodeBuilder zIndex(int value)
value
- An integer value specifying the position of the item
within the diagram Z order.public TreeViewNodeBuilder allowIncomingLinks(boolean value)
value
- true
if incoming links can be drawn to this node,
otherwise false
.public TreeViewNodeBuilder allowOutgoingLinks(boolean value)
value
- true
if outgoing links can be drawn from
this node, otherwise false
.public TreeViewNodeBuilder anchorPattern(AnchorPattern value)
value
- An AnchorPattern
object that defines
the anchor points for this node.public TreeViewNodeBuilder brush(Brush value)
value
- A Brush
-derived object representing the item's brush.public TreeViewNodeBuilder brush(java.awt.Color color)
public TreeViewNodeBuilder brush(java.awt.Color color1, java.awt.Color color2, int angle)
public TreeViewNodeBuilder caption(java.lang.String value)
caption
- A string specifying the caption text.public TreeViewNodeBuilder captionHeight(float value)
value
- A float value specifying the caption area height. The default value is 8.public TreeViewNodeBuilder captionImage(java.awt.Image value)
image
- An instance of the Image
class.public TreeViewNodeBuilder connectionStyle(TreeViewConnectionStyle value)
public TreeViewNodeBuilder constraints(NodeConstraints value)
value
- A NodeConstraints
object.public TreeViewNodeBuilder enableStyledText(boolean value)
value
- true
to parse the text of the node's caption and items in order to
find formatting tags; otherwise false
.public TreeViewNodeBuilder 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 TreeViewNodeBuilder expandable(boolean value)
value
- true
if the tree branch that starts from this node
can be expanded or collapsed by users, otherwise false
.public TreeViewNodeBuilder expanded(boolean value)
value
- true
if the tree branch that starts from
this node should be expanded, otherwise false
.public TreeViewNodeBuilder font(java.awt.Font value)
value
- A Font
instance specifying the font attributes.public TreeViewNodeBuilder font(java.lang.String fontName, float fontSize)
public TreeViewNodeBuilder handlesStyle(HandlesStyle value)
value
- A member of the HandlesStyle
enumeration.public TreeViewNodeBuilder hyperLink(java.lang.String value)
value
- A String
containing the hyperlink.public TreeViewNodeBuilder id(java.lang.Object value)
DiagramListener.serializeTag(com.mindfusion.diagramming.SerializeTagEvent)
event.value
- An Object
containing custom data.public TreeViewNodeBuilder ignoreLayout(boolean value)
value
- true
if the item should be ignored by
automatic layout algorithms, otherwise false
.public TreeViewNodeBuilder layerIndex(int value)
value
- An integer value specifying the layer index.public TreeViewNodeBuilder locked(boolean value)
value
- true
if the item should not be modified,
otherwise false
.public TreeViewNodeBuilder obstacle(boolean value)
value
- true
if auto-routed links should go around
this node, otherwise false
.public TreeViewNodeBuilder pen(Pen value)
value
- A Pen
object representing the item's pen.public TreeViewNodeBuilder printable(boolean value)
value
- true
if the item should be drawn
when printing the diagram, otherwise false
.public TreeViewNodeBuilder rotationAngle(float value)
value
- A float value specifying the node rotation angle.public TreeViewNodeBuilder scrollPosition(float value)
value
- A float value specifying the scroll position.public TreeViewNodeBuilder scrollable(boolean value)
value
- true
if users are allowed to scroll
the tree view, otherwise false
.public TreeViewNodeBuilder selected(boolean value)
value
- true
if the item should be selected,
otherwise false
.public TreeViewNodeBuilder shadowBrush(Brush value)
value
- A Brush
object representing the brush of the item's shadow.public TreeViewNodeBuilder shadowBrush(java.awt.Color color)
public TreeViewNodeBuilder shadowBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public TreeViewNodeBuilder shadowOffsetX(float value)
value
- A float value representing the horizontal offset of the item's shadow.public TreeViewNodeBuilder shadowOffsetY(float value)
value
- A float value representing the vertical offset of the item's shadow.public TreeViewNodeBuilder shape(SimpleShape value)
value
- A member of the SimpleShape
enumeration.public TreeViewNodeBuilder showLines(boolean value)
value
- true to draw connecting lines, or false otherwise.public TreeViewNodeBuilder style(DiagramItemStyle value)
public TreeViewNodeBuilder tag(java.lang.Object value)
DiagramListener.serializeTag(com.mindfusion.diagramming.SerializeTagEvent)
event.value
- An Object
containing custom data.public TreeViewNodeBuilder textBrush(Brush value)
public TreeViewNodeBuilder textBrush(java.awt.Color color)
public TreeViewNodeBuilder textBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public TreeViewNodeBuilder textFormat(TextFormat value)
TextFormat
object specifying how to format and align the text of this node.value
- A TextFormat
object specifying the text format and alignment.public TreeViewNodeBuilder textPadding(Thickness value)
value
- A Thickness
instance specifying the size of the padding space left around the text.public TreeViewNodeBuilder toolTip(java.lang.String value)
value
- A String
that contains the tooltip text.public TreeViewNodeBuilder visible(boolean value)
value
- true
if the item should be visible,
otherwise false
.public TreeViewNodeBuilder weight(float value)
value
- A float value representing the item's weight.public TreeViewNode create()
public TreeViewNode get()