Table of Contents

TTMSFNCBloxPolyLine Class

A multi-segment line built interactively by clicking successive points, with a live preview segment drawn to the cursor.

API unit family: TMSFNCBloxCoreLine Inherits from: TTMSFNCBloxBaseLine

Syntax

TTMSFNCBloxPolyLine = class(TTMSFNCBloxBaseLine)

Properties

Name Description
LineStyle Selects which shape is drawn for the line; the style can be switched at runtime. (inherited from TTMSFNCBloxLine)
Points The ordered points that define the drawn path of the line; segments are drawn from each point to the next. (inherited from TTMSFNCBloxLine)
RecalcIntermediateArcHandles When True, the intermediate handles of an arc line are recomputed automatically when the line is moved or its anchors change. (inherited from TTMSFNCBloxLine)
RequiresConnections When True, the line must be connected to a block at both its start and end points; the user cannot insert, move, or resize it unless both ends are connected. (inherited from TTMSFNCBloxLine)
SourceArrow The arrow shape drawn at the start point of the line. (inherited from TTMSFNCBloxLine)
SourceHandle The handle at the start point of the line, or nil when none exists. (inherited from TTMSFNCBloxLine)
SourceLinkPoint The link point associated with the start point of the line. Read or assign its anchor to connect the line's start point. (inherited from TTMSFNCBloxLine)
TargetArrow The arrow shape drawn at the end point of the line. (inherited from TTMSFNCBloxLine)
TargetHandle The handle at the end point of the line, or nil when none exists. (inherited from TTMSFNCBloxLine)
TargetLinkPoint The link point associated with the end point of the line. Read or assign its anchor to connect the line's end point. (inherited from TTMSFNCBloxLine)

Methods

Name Description
AnchorLinkChanged Recalculates the line's anchors when the anchor of the given link point changes. (inherited from TTMSFNCBloxLine)
CalcNewHandles Recalculates the handles of the line from the supplied geometry information. (inherited from TTMSFNCBloxLine)
DrawTemporary Draws the in-progress poly line, including a dotted preview segment from the last committed point to the cursor.
ElementRect Returns the smallest rectangle, in element coordinates, that contains all line points. (inherited from TTMSFNCBloxLine)
EndCursorPlacement Restores the original handles after cursor placement ends. (inherited from TTMSFNCBloxLine)
GetLinkPoint Returns the current position of the endpoint associated with the given link point. (inherited from TTMSFNCBloxLine)
HandleMoving Recalculates the line while one of its handles is being dragged. (inherited from TTMSFNCBloxLine)
HandlesChanged Recalculates the text cells whenever the handle collection changes. (inherited from TTMSFNCBloxLine)
LinkPointByHandle Returns the link point associated with the given start or end handle of the line. (inherited from TTMSFNCBloxLine)
LinkedAnchorChanged Responds to a change of an anchor the line is linked to by recalculating the line's anchors and geometry. (inherited from TTMSFNCBloxLine)
MovePosition Offsets every handle of the line by the given amounts, moving the whole line. (inherited from TTMSFNCBloxLine)
PointInElement Determines whether a point lies on or close to the line. (inherited from TTMSFNCBloxLine)
StartCursorPlacement Swaps in the temporary handles so the line can be drawn at the cursor position. (inherited from TTMSFNCBloxLine)
StartMoving Captures the current handles before a move of the whole line begins. (inherited from TTMSFNCBloxLine)
StartMovingHandle Captures the current handles before a handle drag begins. (inherited from TTMSFNCBloxLine)
SurroundRect Returns the smallest rectangle, in element coordinates, that surrounds the line. (inherited from TTMSFNCBloxLine)
TextCellDestroyed Notifies the line that one of its text cells has been destroyed so it can clear the matching internal reference. (inherited from TTMSFNCBloxLine)
UpdateDrawing Builds the poly line point by point during interactive drawing, adding a handle on each step and tracking the preview point at the cursor.
UpdateInserting Recalculates the line while it is being inserted and binds its endpoints to the supplied anchors. (inherited from TTMSFNCBloxLine)
UpdateMoving Recalculates the line while it is being moved. (inherited from TTMSFNCBloxLine)