DroidDiagram Programmer's Guide
DiagramLink.getShape Method
See Also
 






Gets the shape of a link.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public LinkShape getShape ()

 Return Value

A member of the LinkShape enumeration. Initialized with the value of getLinkShape.

 Remarks

This property specifies whether the segments of a link are straight lines or curves. Its value together with SegmentCount also specifies the number of ControlPoints. Each Bezier segment is defined by four control points, where the second and third ones do not lie on the segment but specify its curvature. All other LinkShape types are defined by two control points per segment. Adjacent segments share a control point, and when moved it will modify both of them.

Cascading links consist of straight lines whose orientation is constrained to strictly horizontal or vertical, where adjacent segments are orthogonal to each other. The orientation of the first segment of a cascading link depends on the value of CascadeOrientation. If that property is set to Auto, users may change the cascade orientation interactively.

Each control point of a Spline or Polyline link can be moved freely, independently from each other, and the link will pass through all control points drawn respectively as an interpolating spline curve or as a polygonal chain.

 See Also

DiagramLink Members
DiagramLink Class
com.mindfusion.diagramming Namespace