Class BalloonLink

GoDiagram®
v10.0.11
by Northwoods Software®

This custom Link class customizes its Shape to surround the comment node (the from node).

Inheritance
BalloonLink
Namespace: Northwoods.Go.Extensions
Assembly: BalloonLinkWinForms.dll
public class BalloonLink : Link, IHasContextMenu, IHasToolTip

If the Shape is filled, it will obscure the comment itself unless the Link is behind the comment node. Thus the default layer for BalloonLinks is "Background".

The Corner property controls the radius of the curves at the corners of the rectangular area surrounding the comment node, rather than the curve at corners along the route, which is always straight. The default value is 10.

Constructors

Constructs a BalloonLink and sets the LayerName property to "Background".

Declaration
public BalloonLink()

Properties

Gets or sets width of the base of the triangle at the center point of the FromNode.

Declaration
public double Base { get; set; }
Property Value
Type Description
double

The default value is 15.

Methods

Copies properties to a cloned BalloonLink.

Declaration
protected void CloneProtected(BalloonLink copy)
Parameters
Type Name Description
BalloonLink copy

Produce a Geometry from the Link's route that draws a "balloon" shape around the FromNode and has a triangular shape with the base at the FromNode and the top at the ToNode.

Declaration
public override Geometry MakeGeometry()
Returns
Type Description
Geometry
Overrides

Implements