public class DiagramBuilder
extends java.lang.Object
Constructor and Description |
---|
DiagramBuilder()
Initializes a new instance of the DiagramBuilder class.
|
DiagramBuilder(Diagram instance)
Initializes a new instance of the DiagramBuilder class.
|
Modifier and Type | Method and Description |
---|---|
DiagramBuilder |
activeItem(DiagramItem value)
Sets the active item.
|
DiagramBuilder |
activeLayer(int value)
Sets the zero-based index of the active layer.
|
DiagramBuilder |
adjustmentHandlesSize(float value)
Sets the size of selection handles.
|
DiagramBuilder |
alignmentGuidePen(Pen value)
Sets the pen used to draw alignment guides.
|
DiagramBuilder |
alignToGrid(boolean value)
Sets a value indicating whether items should be aligned to the
alignment grid while users draw them with the mouse.
|
DiagramBuilder |
allowLinksRepeat(boolean value)
Sets a value indicating whether users are allowed to
draw more than one links between the same nodes.
|
DiagramBuilder |
allowMultipleResize(boolean value)
Sets whether multiple selected nodes can be resized simultaneously.
|
DiagramBuilder |
allowSelfLoops(boolean value)
Sets whether users are allowed to draw reflexive links.
|
DiagramBuilder |
allowSplitLinks(boolean value)
Sets whether link segments can be added and removed interactively.
|
DiagramBuilder |
allowUnanchoredLinks(boolean value)
Sets a value indicating whether users are allowed to attach links to
nodes that do not have any anchor points.
|
DiagramBuilder |
allowUnconnectedLinks(boolean value)
Sets a value indicating whether users are allowed to draw unconnected links.
|
DiagramBuilder |
autoAlignDistance(float value)
Sets the maximal horizontal or vertical distance at which
a node aligns to the borders of other nodes.
|
DiagramBuilder |
autoAlignNodes(boolean value)
Sets whether nodes should automatically align to
the borders of other nodes during user interaction.
|
DiagramBuilder |
autoCloseDistance(float value)
Sets the maximum distance between first and last points of a
FreeFormNode
for which the node's outline is closed automatically. |
DiagramBuilder |
autoResize(AutoResize value)
Sets a value specifying whether the document scrollable area should be
resized automatically when users draw items near the edges of the diagram.
|
DiagramBuilder |
autoSnapDistance(float value)
Specifies the maximum distance at which links auto-snap to nodes.
|
DiagramBuilder |
autoSnapLinks(boolean value)
Sets the default value for the AutoSnapToNode property of new links.
|
DiagramBuilder |
backBrush(Brush value)
Sets the diagram's background brush.
|
DiagramBuilder |
backBrush(java.awt.Color color) |
DiagramBuilder |
backBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
DiagramBuilder |
backgroundImage(java.awt.Image value)
Sets the background image.
|
DiagramBuilder |
backgroundImageAlign(ImageAlign value)
Sets how the background image should be positioned relatively to
the scrollable area of the diagram.
|
DiagramBuilder |
backgroundImageUrl(java.lang.String value)
Sets the URL of the background image.
|
DiagramBuilder |
bounds(java.awt.geom.Rectangle2D value)
Sets the bounds of the scrollable area of the diagram.
|
DiagramBuilder |
boundsPen(Pen value)
Sets the pen with which document bounds are drawn.
|
DiagramBuilder |
cellCustomDraw(CustomDraw value)
Sets the default type of custom painting applied to cells of new tables.
|
DiagramBuilder |
cellFrameStyle(CellFrameStyle value)
Sets the default style of the cell frames of new tables.
|
DiagramBuilder |
containerCaption(java.lang.String value)
Sets the default value for the Caption property of containers.
|
DiagramBuilder |
containerCaptionHeight(float value)
Sets the default value for the CaptionHeight property of containers.
|
DiagramBuilder |
containerHighlightPen(Pen value)
Sets the default value for the HighlightPen property of containers.
|
DiagramBuilder |
containerMargin(float value)
Sets the default value for the Margin property of containers.
|
DiagramBuilder |
containerMinimumSize(java.awt.geom.Dimension2D value)
Sets the default value for the MinimumSize property of containers.
|
DiagramBuilder |
containersFoldable(boolean value)
Sets the default value for the Foldable property of containers.
|
Diagram |
create()
Creates a new object with the attributes accumulated by this builder.
|
DiagramBuilder |
crossingRadius(float value)
Sets the radius of the shapes drawn at link crossing points.
|
DiagramBuilder |
defaultControlType(java.lang.Class<? extends java.awt.Component> value)
Sets the type of components that will be hosted by default
in newly created
ControlNode objects. |
DiagramBuilder |
defaultShape(Shape value)
Sets the default shape that should be assigned to new nodes.
|
DiagramBuilder |
dirty(boolean value)
Lets you set or clear the diagram's modification flag.
|
DiagramBuilder |
dynamicLinks(boolean value)
Sets a value indicating whether links should automatically update their end
points positions so that they will always point towards the node centers.
|
DiagramBuilder |
enableLanes(boolean value)
Sets whether lanes are enabled.
|
DiagramBuilder |
enableStyledText(boolean value)
Sets a value indicating whether newly created nodes
should display richly formatted text.
|
DiagramBuilder |
expandButtonAction(ExpandButtonAction value)
Sets what should happen when a user clicks the +/- button
that is displayed near expandable nodes.
|
DiagramBuilder |
expandButtonPosition(ExpandButtonPosition value)
Sets where expand/collapse buttons are located relatively to their nodes.
|
DiagramBuilder |
expandOnIncoming(boolean value)
Sets which direction of links is considered the tree direction
when expanding or collapsing diagram branches.
|
DiagramBuilder |
focusedComponent(ComponentBase value)
Sets the component within this diagram which is currently
holding the input focus.
|
DiagramBuilder |
focusedManipulator(Manipulator value)
Sets the manipulator currently holding the input focus.
|
DiagramBuilder |
foldedContainerSize(java.awt.geom.Dimension2D value)
Sets the size of folded containers.
|
DiagramBuilder |
font(java.awt.Font value)
Sets the default font for new diagram items.
|
DiagramBuilder |
font(java.lang.String fontName,
float fontSize) |
DiagramBuilder |
freeFormAttractDistance(float value)
Sets the radius around dragged free-form adjustment handle
in which other points of FreeFormNode are modified too.
|
DiagramBuilder |
freeFormTargets(Shape[] value)
Sets an array of Shape objects used to replace FreeFormNode instances with
ShapeNode ones when Behavior is set to LinkFreeShapes or DrawFreeShapes.
|
Diagram |
get()
Returns an existing object passed for initialization to this builder.
|
DiagramBuilder |
gridColor(java.awt.Color value)
Sets the color of the alignment grid.
|
DiagramBuilder |
gridOffsetX(float value)
Sets the horizontal offset of the first point of the alignment grid.
|
DiagramBuilder |
gridOffsetY(float value)
Sets the vertical offset of the first point of the alignment grid.
|
DiagramBuilder |
gridSizeX(float value)
Sets the horizontal distance between grid points.
|
DiagramBuilder |
gridSizeY(float value)
Sets the vertical distance between grid points.
|
DiagramBuilder |
gridStyle(GridStyle value)
Sets the appearance style of the alignment grid.
|
DiagramBuilder |
hitTestPriority(HitTestPriority value)
Sets a value indicating the order in which items are hit-tested.
|
DiagramBuilder |
imageDpiX(int value) |
DiagramBuilder |
imageDpiY(int value) |
DiagramBuilder |
linkBaseShape(Shape value)
Sets what shape should be displayed at the origin of new links.
|
DiagramBuilder |
linkBaseShapeSize(float value)
Sets the default size of the shape displayed at the origin of new links.
|
DiagramBuilder |
linkBranchIndicator(BranchIndicator value) |
DiagramBuilder |
linkBrush(Brush value)
Sets the default brush that should be assigned to new links.
|
DiagramBuilder |
linkBrush(java.awt.Color color) |
DiagramBuilder |
linkBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
DiagramBuilder |
linkCascadeOrientation(Orientation value)
Sets the default orientation of the first segments of cascading links.
|
DiagramBuilder |
linkCrossings(LinkCrossings value)
Sets what shapes should be drawn at the points where links cross.
|
DiagramBuilder |
linkCustomDraw(CustomDraw value)
Sets the default type of custom painting done on links.
|
DiagramBuilder |
linkEndsMovable(boolean value)
Sets a value indicating users are allowed to move the end points
of a link after the link is created.
|
DiagramBuilder |
linkHandlesStyle(HandlesStyle value)
Sets the style of selection handles that should be assigned to new links.
|
DiagramBuilder |
linkHeadShape(Shape value)
Sets what shape should be displayed as arrowhead of new links.
|
DiagramBuilder |
linkHeadShapeSize(float value)
Sets the default size of the shape displayed as arrowhead of new links.
|
DiagramBuilder |
linkIntermediateShape(Shape value)
Sets what shape should be displayed at the middle of links segments.
|
DiagramBuilder |
linkIntermediateShapeSize(float value)
Sets the default size of the shape displayed at the middle of links segments.
|
DiagramBuilder |
linkPen(Pen value)
Sets the default pen that should be assigned to new links.
|
DiagramBuilder |
linkRouter(LinkRouter value)
Sets the component used to find paths for auto-routed links
when diagram nodes are added or their positions change.
|
DiagramBuilder |
linkSegments(int value)
Sets the default number of link segments.
|
DiagramBuilder |
linkShape(LinkShape value)
Sets the style that should be assigned to new links.
|
DiagramBuilder |
linksRetainForm(boolean value)
Sets a value indicating whether new links are set to maintain their
shapes while the nodes they connect are moved around.
|
DiagramBuilder |
linkText(java.lang.String value)
Sets the default text that should be assigned to new links.
|
DiagramBuilder |
linkTextStyle(LinkTextStyle value)
Sets the default placement and orientation of the links labels.
|
DiagramBuilder |
measureUnit(GraphicsUnit value)
Sets in what units JDiagram should measure lengths and sizes.
|
DiagramBuilder |
mergeThreshold(float value)
Sets the maximum distance between adjacent control points of a link
at which the respective segments can be merged.
|
DiagramBuilder |
nodesExpandable(boolean value)
Sets whether the tree branches that start from new nodes
should be expandable by default.
|
DiagramBuilder |
recursiveExpand(boolean value)
Sets whether tree branches should be expanded recursively.
|
DiagramBuilder |
restrictItemsToBounds(RestrictToBounds value)
Sets a value indicating whether users are allowed to move items
outside the currently define document bounds.
|
DiagramBuilder |
roundedLinks(boolean value)
Sets if the joins between segments of Polyline
and Cascading links should be rounded.
|
DiagramBuilder |
roundedLinksRadius(float value)
Sets the radius of arc joins of rounded links' segments.
|
DiagramBuilder |
routeLinks(boolean value)
Sets a value indicating whether newly created links will
automatically find their way between nodes.
|
DiagramBuilder |
selectAfterCreate(boolean value)
Sets a value indicating whether newly created items should be selected automatically.
|
DiagramBuilder |
selectionOnTop(boolean value)
Sets a value indicating whether selected items should be
drawn on top of the non-selected ones.
|
DiagramBuilder |
shadowBrush(Brush value)
Sets the brush of items shadows.
|
DiagramBuilder |
shadowBrush(java.awt.Color color) |
DiagramBuilder |
shadowBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
DiagramBuilder |
shadowOffsetX(float value)
Sets the default horizontal distance between shadows
and the items that cast them.
|
DiagramBuilder |
shadowOffsetY(float value)
Sets the default vertical distance between shadows
and the items that cast them.
|
DiagramBuilder |
shadowsStyle(ShadowsStyle value)
Sets the style of shadows.
|
DiagramBuilder |
shapeBrush(Brush value)
Sets the default brush that should be assigned to new nodes.
|
DiagramBuilder |
shapeBrush(java.awt.Color color) |
DiagramBuilder |
shapeBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
DiagramBuilder |
shapeCustomDraw(CustomDraw value)
Sets whether new nodes should be custom drawn
and what type of custom drawing will be performed on them.
|
DiagramBuilder |
shapeHandlesStyle(HandlesStyle value)
Sets the style of selection handles that should be assigned to new nodes.
|
DiagramBuilder |
shapeOrientation(float value)
Sets the default shape definition orientation angle assigned to new nodes.
|
DiagramBuilder |
shapePen(Pen value)
Sets the default pen that should be assigned to new nodes.
|
DiagramBuilder |
shapeText(java.lang.String value)
Sets the default text that should be assigned to new nodes.
|
DiagramBuilder |
showAnchors(ShowAnchors value)
Sets a value indicating whether anchor points should be shown on screen.
|
DiagramBuilder |
showDisabledHandles(boolean value)
Sets whether disabled manipulation handles should be displayed.
|
DiagramBuilder |
showGrid(boolean value)
Sets a value indicating whether the alignment grid should be displayed.
|
DiagramBuilder |
showHandlesOnDrag(boolean value)
Sets whether selection handles of objects under the mouse should be
displayed while another object is being modified.
|
DiagramBuilder |
snapToAnchor(SnapToAnchor value)
Sets a value indicating when links should snap to anchor points.
|
DiagramBuilder |
style(DiagramStyle value)
Sets the style associated with the diagram.
|
DiagramBuilder |
tableBrush(Brush value)
Sets the default brush that should be assigned to new links.
|
DiagramBuilder |
tableBrush(java.awt.Color color) |
DiagramBuilder |
tableBrush(java.awt.Color color1,
java.awt.Color color2,
int angle) |
DiagramBuilder |
tableCaption(java.lang.String value)
Sets the default caption text that should be assigned to new tables.
|
DiagramBuilder |
tableCaptionHeight(float value)
Sets the default height of the caption area of new tables.
|
DiagramBuilder |
tableColumnCount(int value)
Sets how many columns should be allocated to new tables.
|
DiagramBuilder |
tableColumnWidth(float value)
Sets the default width of columns in newly created tables.
|
DiagramBuilder |
tableConnectionStyle(TableConnectionStyle value)
Sets how users are allowed to link tables to each other -
as integral entities, by rows, or both.
|
DiagramBuilder |
tableCustomDraw(CustomDraw value)
Sets the default type of custom painting applied to new tables.
|
DiagramBuilder |
tableHandlesStyle(HandlesStyle value)
Sets the style of selection handles that should be assigned to new tables.
|
DiagramBuilder |
tablePen(Pen value)
Sets the default pen that should be assigned to new tables.
|
DiagramBuilder |
tableRowCount(int value)
Sets how many rows should be allocated to new tables.
|
DiagramBuilder |
tableRowHeight(float value)
Sets the default height of rows in newly created tables.
|
DiagramBuilder |
tableShape(SimpleShape value)
Sets the default style of tables.
|
DiagramBuilder |
tablesScrollable(boolean value)
Sets a value indicating whether users are allowed to scroll new tables.
|
DiagramBuilder |
tag(java.lang.Object value)
Associates a custom data with this diagram.
|
DiagramBuilder |
textColor(java.awt.Color value)
Sets the default text color that should be assigned to new items.
|
DiagramBuilder |
textFormat(TextFormat value)
Sets the default format and alignment of the text of new items.
|
DiagramBuilder |
theme(Theme value)
Sets the theme associated with the diagram.
|
DiagramBuilder |
toolTip(java.lang.String value)
Sets the tooltip text that should be displayed when the mouse hovers
over an unoccupied area of the diagram.
|
DiagramBuilder |
validityChecks(boolean value) |
public DiagramBuilder()
public DiagramBuilder(Diagram instance)
public DiagramBuilder activeItem(DiagramItem value)
value
- A reference to an DiagramItem
that should be made the active one.public DiagramBuilder activeLayer(int value)
value
- An integer value that specifies the index of the active layer.public DiagramBuilder adjustmentHandlesSize(float value)
value
- A float value specifying the size of selection handles.public DiagramBuilder alignToGrid(boolean value)
value
- true
if items should be automatically aligned
to the grid, otherwise false
.public DiagramBuilder alignmentGuidePen(Pen value)
value
- A Pen
instance.public DiagramBuilder allowLinksRepeat(boolean value)
value
- true
if users are allowed to draw more than one
link between the same nodes, otherwise false
.public DiagramBuilder allowMultipleResize(boolean value)
value
- true to let the user resize multiple selected nodes; otherwise, false.public DiagramBuilder allowSelfLoops(boolean value)
value
- true
if users are allowed to draw reflexive links,
otherwise false
.public DiagramBuilder allowSplitLinks(boolean value)
value
- true
to make new links splittable by default,
otherwise false
.public DiagramBuilder allowUnanchoredLinks(boolean value)
value
- true
to lets users attach links to nodes that do
not have anchor points, otherwise false
.public DiagramBuilder allowUnconnectedLinks(boolean value)
value
- true
if users are allowed to draw unconnected
links, otherwise false
.public DiagramBuilder autoAlignDistance(float value)
value
- A float value specifying the maximal distance.public DiagramBuilder autoAlignNodes(boolean value)
value
- true if nodes should align, otherwise false.public DiagramBuilder autoCloseDistance(float value)
FreeFormNode
for which the node's outline is closed automatically.value
- A float value.public DiagramBuilder autoResize(AutoResize value)
value
- A member of the AutoResize
enumeration.public DiagramBuilder autoSnapDistance(float value)
value
- A float value specifying the maximum distance.public DiagramBuilder autoSnapLinks(boolean value)
value
- true
if newly created links are set to align
automatically to node borders when modified, otherwise false
.public DiagramBuilder backBrush(Brush value)
value
- A Brush
object representing the background brush.public DiagramBuilder backBrush(java.awt.Color color)
public DiagramBuilder backBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public DiagramBuilder backgroundImage(java.awt.Image value)
value
- The background Image
object.public DiagramBuilder backgroundImageAlign(ImageAlign value)
value
- A member of the ImageAlign
enumeration.public DiagramBuilder backgroundImageUrl(java.lang.String value)
value
- The URL of the background image.public DiagramBuilder bounds(java.awt.geom.Rectangle2D value)
value
- A Rectangle2D
object representing the
document scrollable region.public DiagramBuilder boundsPen(Pen value)
value
- A Pen
object that should be assigned
to newly created links.public DiagramBuilder cellCustomDraw(CustomDraw value)
value
- A member of the CustomDraw
enumeration.public DiagramBuilder cellFrameStyle(CellFrameStyle value)
value
- A member of the CellFrameStyle
enumeration.public DiagramBuilder containerCaption(java.lang.String value)
containerCaption
- A String containing the default caption string.public DiagramBuilder containerCaptionHeight(float value)
public DiagramBuilder containerHighlightPen(Pen value)
public DiagramBuilder containerMargin(float value)
public DiagramBuilder containerMinimumSize(java.awt.geom.Dimension2D value)
public DiagramBuilder containersFoldable(boolean value)
public DiagramBuilder crossingRadius(float value)
value
- A float value specifying the size of the shapes drawn
at link intersection points.public DiagramBuilder defaultControlType(java.lang.Class<? extends java.awt.Component> value)
ControlNode
objects.value
- A Class
instance specifying a Component
-derived type.public DiagramBuilder defaultShape(Shape value)
ShapeNode.setShape(com.mindfusion.diagramming.Shape)
method.value
- The default Shape
object that should be assigned to
newly created nodes.public DiagramBuilder dirty(boolean value)
value
- true
to mark the diagram as changed,
otherwise false
.public DiagramBuilder dynamicLinks(boolean value)
value
- true
if newly created links should be
set to update their end point positions automatically,
otherwise false
.public DiagramBuilder enableLanes(boolean value)
public DiagramBuilder enableStyledText(boolean value)
value
- true
if text formatting tags should be
processed by default, otherwise false
.public DiagramBuilder expandButtonAction(ExpandButtonAction value)
value
- A member of the ExpandButtonAction
enumeration; the default value is ExpandTreeBranch.public DiagramBuilder expandButtonPosition(ExpandButtonPosition value)
value
- A member of the ExpandButtonPosition
enumeration.public DiagramBuilder expandOnIncoming(boolean value)
value
- true
is tree branches should be expanded in
the direction of incoming links, otherwise false
.public DiagramBuilder focusedComponent(ComponentBase value)
public DiagramBuilder focusedManipulator(Manipulator value)
public DiagramBuilder foldedContainerSize(java.awt.geom.Dimension2D value)
public DiagramBuilder font(java.awt.Font value)
value
- A Font
object.public DiagramBuilder font(java.lang.String fontName, float fontSize)
public DiagramBuilder freeFormAttractDistance(float value)
value
- A float value.public DiagramBuilder freeFormTargets(Shape[] value)
value
- A Shape array.public DiagramBuilder gridColor(java.awt.Color value)
value
- A Color
object representing the grid color.public DiagramBuilder gridOffsetX(float value)
value
- A float value that specifies the horizontal grid offset.public DiagramBuilder gridOffsetY(float value)
value
- A float value that specifies the vertical grid offset.public DiagramBuilder gridSizeX(float value)
value
- An integer value specifying the horizontal distance
between grid points.public DiagramBuilder gridSizeY(float value)
value
- An integer value specifying the vertical distance
between grid points.public DiagramBuilder gridStyle(GridStyle value)
value
- A member of the GridStyle
enumeration.public DiagramBuilder hitTestPriority(HitTestPriority value)
value
- A member of the HitTestPriority
enumeration.public DiagramBuilder imageDpiX(int value)
public DiagramBuilder imageDpiY(int value)
public DiagramBuilder linkBaseShape(Shape value)
value
- An instance of the Shape
class. Predefined arrowhead shapes are exposed as members of ArrowHeads
.public DiagramBuilder linkBaseShapeSize(float value)
value
- A float value specifying the default size of the shapes
displayed at the link base.public DiagramBuilder linkBranchIndicator(BranchIndicator value)
public DiagramBuilder linkBrush(Brush value)
value
- A Brush
object that should be assigned
to newly created links.public DiagramBuilder linkBrush(java.awt.Color color)
public DiagramBuilder linkBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public DiagramBuilder linkCascadeOrientation(Orientation value)
value
- One of the Orientation
constants.public DiagramBuilder linkCrossings(LinkCrossings value)
value
- A member of the LinkCrossings
enumeration.public DiagramBuilder linkCustomDraw(CustomDraw value)
value
- A member of the CustomDraw
enumeration.public DiagramBuilder linkEndsMovable(boolean value)
value
- true
if users are allowed to move the end points
of new links, otherwise false
.public DiagramBuilder linkHandlesStyle(HandlesStyle value)
value
- A member of the HandlesStyle
enumeration.public DiagramBuilder linkHeadShape(Shape value)
value
- An instance of the Shape
class. Predefined arrowhead shapes are exposed as members of ArrowHeads
.public DiagramBuilder linkHeadShapeSize(float value)
value
- A float value specifying the default arrowhead size.public DiagramBuilder linkIntermediateShape(Shape value)
value
- An instance of the Shape
class. Predefined arrowhead shapes are exposed as members of ArrowHeads
.public DiagramBuilder linkIntermediateShapeSize(float value)
value
- A float value specifying the default size of the shapes
displayed in the middles of link segments.public DiagramBuilder linkPen(Pen value)
value
- A Pen
object that should be assigned
to newly created links.public DiagramBuilder linkRouter(LinkRouter value)
public DiagramBuilder linkSegments(int value)
value
- An integer value specifying the default number of link segments.public DiagramBuilder linkShape(LinkShape value)
value
- A member of the LinkShape
enumeration.public DiagramBuilder linkText(java.lang.String value)
value
- A String
containing the default link text.public DiagramBuilder linkTextStyle(LinkTextStyle value)
value
- One of the LinkTextStyle
constants.public DiagramBuilder linksRetainForm(boolean value)
value
- true
if newly created links should preserve
their shapes, otherwise false
.public DiagramBuilder measureUnit(GraphicsUnit value)
value
- A member of the GraphicsUnit
enumeration.public DiagramBuilder mergeThreshold(float value)
value
- A float value specifying the maximal merge distance.public DiagramBuilder nodesExpandable(boolean value)
value
- true
if nodes should be expandable by default,
otherwise false
.public DiagramBuilder recursiveExpand(boolean value)
value
- true
if tree branches should be expanded recursively.public DiagramBuilder restrictItemsToBounds(RestrictToBounds value)
value
- A member of the RestrictToBounds
enumeration.public DiagramBuilder roundedLinks(boolean value)
public DiagramBuilder roundedLinksRadius(float value)
public DiagramBuilder routeLinks(boolean value)
value
- true
if newly created links should be set to
find their routes automatically, otherwise false
.public DiagramBuilder selectAfterCreate(boolean value)
value
- true
if newly created items should be selected
automatically, otherwise false
.public DiagramBuilder selectionOnTop(boolean value)
value
- true
if selected items should be drawn
above non-selected ones, otherwise false
.public DiagramBuilder shadowBrush(Brush value)
value
- A Brush
object representing the shadow brush.public DiagramBuilder shadowBrush(java.awt.Color color)
public DiagramBuilder shadowBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public DiagramBuilder shadowOffsetX(float value)
value
- A float value specifying the horizontal shadow offset.public DiagramBuilder shadowOffsetY(float value)
value
- A float value specifying the vertical shadow offset.public DiagramBuilder shadowsStyle(ShadowsStyle value)
value
- A member of the ShadowsStyle
enumeration.public DiagramBuilder shapeBrush(Brush value)
value
- A Brush
object.public DiagramBuilder shapeBrush(java.awt.Color color)
public DiagramBuilder shapeBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public DiagramBuilder shapeCustomDraw(CustomDraw value)
value
- A member of the CustomDraw
enumeration.public DiagramBuilder shapeHandlesStyle(HandlesStyle value)
value
- A member of the HandlesStyle
enumeration.public DiagramBuilder shapeOrientation(float value)
value
- The default orientation applied to shape definitions when
assigning shapes to nodes.public DiagramBuilder shapePen(Pen value)
value
- A Pen
object.public DiagramBuilder shapeText(java.lang.String value)
value
- A String
containing the default box text.public DiagramBuilder showAnchors(ShowAnchors value)
value
- A member of the ShowAnchors
enumeration.public DiagramBuilder showDisabledHandles(boolean value)
value
- true
if disabled selection handles should be
drawn, otherwise false
.public DiagramBuilder showGrid(boolean value)
value
- true
if the alignment grid should be drawn on
the screen, otherwise false
.public DiagramBuilder showHandlesOnDrag(boolean value)
value
- true
to display selection handles, otherwise false
.public DiagramBuilder snapToAnchor(SnapToAnchor value)
value
- A member of the SnapToAnchor
enumeration.public DiagramBuilder style(DiagramStyle value)
public DiagramBuilder tableBrush(Brush value)
value
- A Brush
object that should be assigned to newly created tables.public DiagramBuilder tableBrush(java.awt.Color color)
public DiagramBuilder tableBrush(java.awt.Color color1, java.awt.Color color2, int angle)
public DiagramBuilder tableCaption(java.lang.String value)
value
- A String
containing the default table caption.public DiagramBuilder tableCaptionHeight(float value)
value
- A float value specifying the default height of table caption bars.public DiagramBuilder tableColumnCount(int value)
value
- An integer value specifying the default number of table columns.public DiagramBuilder tableColumnWidth(float value)
value
- A float value specifying the default width of table columns.public DiagramBuilder tableConnectionStyle(TableConnectionStyle value)
value
- A member of the TableConnectionStyle
enumeration.public DiagramBuilder tableCustomDraw(CustomDraw value)
value
- A member of the CustomDraw
enumeration.public DiagramBuilder tableHandlesStyle(HandlesStyle value)
value
- A member of the HandlesStyle
enumeration.public DiagramBuilder tablePen(Pen value)
value
- A Pen
object that should be assigned to newly created tables.public DiagramBuilder tableRowCount(int value)
value
- An integer value specifying the default number of table rows.public DiagramBuilder tableRowHeight(float value)
value
- A float value specifying the default height of table rows.public DiagramBuilder tableShape(SimpleShape value)
value
- A member of the SimpleShape
enumeration.public DiagramBuilder tablesScrollable(boolean value)
value
- true
if the rows of newly created tables
can be scrolled up or down, otherwise false
.public DiagramBuilder tag(java.lang.Object value)
value
- An Object containing custom data.public DiagramBuilder textColor(java.awt.Color value)
value
- A Color
object representing the default text color.public DiagramBuilder textFormat(TextFormat value)
value
- A TextFormat
object specifying the text format and alignment.public DiagramBuilder theme(Theme value)
public DiagramBuilder toolTip(java.lang.String value)
value
- A String
containing the tooltip text.public DiagramBuilder validityChecks(boolean value)
public Diagram create()
public Diagram get()