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