DroidDiagram Programmer's Guide
DiagramBuilder Members
Constructors Methods
 


A class used to initialize Diagram objects.

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

 Public Constructors

  Name Description

DiagramBuilder

Overloaded.  

 Public Methods

  Name Description

activeItem

Sets the active item.

activeLayer

Sets the zero-based index of the active layer.

adjustmentHandlesSize

Sets the size of selection handles.

alignmentGuidePen

Sets the pen used to draw alignment guides.

alignToGrid

Sets a value indicating whether items should be aligned to the alignment grid while users draw them with the mouse.

allowLinksRepeat

Sets a value indicating whether users are allowed to draw more than one links between the same nodes.

allowMultipleResize

Sets whether multiple selected nodes can be resized simultaneously.

allowSelfLoops

Sets whether users are allowed to draw reflexive links.

allowSplitLinks

Sets whether link segments can be added and removed interactively.

allowUnanchoredLinks

Sets a value indicating whether users are allowed to attach links to nodes that do not have any anchor points.

allowUnconnectedLinks

Sets a value indicating whether users are allowed to draw unconnected links.

autoAlignDistance

Sets the maximal horizontal or vertical distance at which a node aligns to the borders of other nodes.

autoAlignNodes

Sets whether nodes should automatically align to the borders of other nodes during user interaction.

autoCloseDistance

Sets the maximum distance between first and last points of a FreeFormNode for which the node's outline is closed automatically.

autoResize

Sets a value specifying whether the document scrollable area should be resized automatically when users draw items near the edges of the diagram.

autoSnapDistance

Specifies the maximum distance at which links auto-snap to nodes.

autoSnapLinks

Sets the default value for the AutoSnapToNode property of new links.

backBrush

Overloaded.  

backgroundImage

Sets the background image. The imageUrl property is reset to null.

backgroundImageAlign

Sets how the background image should be positioned relatively to the scrollable area of the diagram.

backgroundImageUrl

Sets the URL of the background image. Default applet security allows only images on the same server. URL may be relative to the document base for applets or current dir for applications.

bounds

Sets the bounds of the scrollable area of the diagram.

boundsPen

Sets the pen with which document bounds are drawn.

cellFrameStyle

Sets the default style of the cell frames of new tables.

containerCaption

Sets the default value for the Caption property of containers.

containerCaptionHeight

Sets the default value for the CaptionHeight property of containers.

containerHighlightPen

Sets the default value for the HighlightPen property of containers.

containerMargin

Sets the default value for the Margin property of containers.

containerMinimumSize

Sets the default value for the MinimumSize property of containers.

containersFoldable

Sets the default value for the Foldable property of containers.

create

Creates a new object with the attributes accumulated by this builder.

crossingRadius

Sets the radius of the shapes drawn at link crossing points.

defaultControlType

Sets the type of components that will be hosted by default in newly created ControlNode objects.

defaultShape

Sets the default shape that should be assigned to new nodes. The shape of individual nodes can be set by calling their ShapeNode.setShape method.

dirty

Lets you set or clear the diagram's modification flag.

dynamicLinks

Sets a value indicating whether links should automatically update their end points positions so that they will always point towards the node centers.

enableLanes

Sets whether lanes are enabled.

enableStyledText

Sets a value indicating whether newly created nodes should display richly formatted text.

expandButtonAction

Sets what should happen when a user clicks the +/- button that is displayed near expandable nodes.

expandButtonPosition

Sets where expand/collapse buttons are located relatively to their nodes.

expandOnIncoming

Sets which direction of links is considered the tree direction when expanding or collapsing diagram branches.

foldedContainerSize

Sets the size of folded containers.

font

Overloaded.  

freeFormAttractDistance

Sets the radius around dragged free-form adjustment handle in which other points of FreeFormNode are modified too.

freeFormTargets

Sets an array of Shape objects used to replace FreeFormNode instances with ShapeNode ones when Behavior is set to LinkFreeShapes or DrawFreeShapes.

get

Returns an existing object passed for initialization to this builder.

gridColor

Sets the color of the alignment grid.

gridOffsetX

Sets the horizontal offset of the first point of the alignment grid.

gridOffsetY

Sets the vertical offset of the first point of the alignment grid.

gridSizeX

Sets the horizontal distance between grid points.

gridSizeY

Sets the vertical distance between grid points.

gridStyle

Sets the appearance style of the alignment grid.

hitTestPriority

Sets a value indicating the order in which items are hit-tested.

imageDpiX

 

imageDpiY

 

linkBaseShape

Sets what shape should be displayed at the origin of new links.

linkBaseShapeSize

Sets the default size of the shape displayed at the origin of new links.

linkBrush

Overloaded.  

linkCascadeOrientation

Sets the default orientation of the first segments of cascading links.

linkCrossings

Sets what shapes should be drawn at the points where links cross.

linkCustomDraw

Sets the default type of custom painting done on links.

linkEndsMovable

Sets a value indicating users are allowed to move the end points of a link after the link is created.

linkHandlesStyle

Sets the style of selection handles that should be assigned to new links.

linkHeadShape

Sets what shape should be displayed as arrowhead of new links.

linkHeadShapeSize

Sets the default size of the shape displayed as arrowhead of new links.

linkIntermediateShape

Sets what shape should be displayed at the middle of links segments.

linkIntermediateShapeSize

Sets the default size of the shape displayed at the middle of links segments.

linkPen

Sets the default pen that should be assigned to new links.

linkRouter

Sets the component used to find paths for auto-routed links when diagram nodes are added or their positions change.

linkShape

Sets the style that should be assigned to new links.

linksRetainForm

Sets a value indicating whether new links are set to maintain their shapes while the nodes they connect are moved around.

linkText

Sets the default text that should be assigned to new links.

linkTextStyle

Sets the default placement and orientation of the links labels.

measureUnit

Sets in what units JDiagram should measure lengths and sizes.

mergeThreshold

Sets the maximum distance between adjacent control points of a link at which the respective segments can be merged.

nodesExpandable

Sets whether the tree branches that start from new nodes should be expandable by default.

recursiveExpand

Sets whether tree branches should be expanded recursively.

restrictItemsToBounds

Sets a value indicating whether users are allowed to move items outside the currently define document bounds.

roundedLinks

Sets if the joins between segments of Polyline and Cascading links should be rounded.

roundedLinksRadius

Sets the radius of arc joins of rounded links' segments.

routeLinks

Sets a value indicating whether newly created links will automatically find their way between nodes.

selectAfterCreate

Sets a value indicating whether newly created items should be selected automatically.

selectionOnTop

Sets a value indicating whether selected items should be drawn on top of the non-selected ones.

shadowBrush

Overloaded.  

shadowOffsetX

Sets the default horizontal distance between shadows and the items that cast them.

shadowOffsetY

Sets the default vertical distance between shadows and the items that cast them.

shadowsStyle

Sets the style of shadows.

shapeBrush

Overloaded.  

shapeCustomDraw

Sets whether new nodes should be custom drawn and what type of custom drawing will be performed on them.

shapeHandlesStyle

Sets the style of selection handles that should be assigned to new nodes.

shapeOrientation

Sets the default shape definition orientation angle assigned to new nodes.

shapePen

Sets the default pen that should be assigned to new nodes.

shapeText

Sets the default text that should be assigned to new nodes.

showAnchors

Sets a value indicating whether anchor points should be shown on screen.

showDisabledHandles

Sets whether disabled manipulation handles should be displayed.

showGrid

Sets a value indicating whether the alignment grid should be displayed.

showHandlesOnDrag

Sets whether selection handles of objects under the mouse should be displayed while another object is being modified.

snapToAnchor

Sets a value indicating when links should snap to anchor points.

style

Sets the style associated with the diagram.

tableBrush

Overloaded.  

tableCaption

Sets the default caption text that should be assigned to new tables.

tableCaptionHeight

Sets the default height of the caption area of new tables.

tableColumnCount

Sets how many columns should be allocated to new tables.

tableColumnWidth

Sets the default width of columns in newly created tables.

tableConnectionStyle

Sets how users are allowed to link tables one to another - as integral entities, by rows, or both.

tableHandlesStyle

Sets the style of selection handles that should be assigned to new tables.

tablePen

Sets the default pen that should be assigned to new tables.

tableRowCount

Sets how many rows should be allocated to new tables.

tableRowHeight

Sets the default height of rows in newly created tables.

tableShape

Sets the default style of tables.

tablesScrollable

Sets a value indicating whether users are allowed to scroll new tables.

tag

Associates a custom data with this diagram.

textColor

Sets the default text color that should be assigned to new items.

textFormat

Sets the default format and alignment of the text of new items.

theme

Sets the theme associated with the diagram.

toolTip

Sets the tooltip text that should be displayed when the mouse hovers over an unoccupied area of the diagram.

 See Also

DiagramBuilder Class
com.mindfusion.diagramming.builders Namespace