TTMSFNCBloxNavigatorController Class
Encapsulates the rendering and interaction logic that backs a navigator: it scales the diagram into the overview, draws blocks and lines, tracks the visible-area highlight, and translates pointer drags into scroll and zoom operations on the linked control.
API unit family: TMSFNCBloxNavigator
Inherits from: TObject
Syntax
TTMSFNCBloxNavigatorController = class(TObject)
Remarks
An instance is created and owned by each TTMSFNCBloxNavigator; the navigator exposes the relevant settings as published properties and forwards pointer events to the controller.
Properties
| Name | Description |
|---|---|
| BackgroundColor | The color used to fill the area behind the scaled-down diagram in the overview. |
| BlockShape | Selects whether blocks are drawn with their original shape or as plain rectangles in the overview. |
| BloxControl | The diagram control the navigator previews and controls. |
| Color | The color used to fill the navigator surface around the scaled-down diagram region. |
| EnableZoom | Allows zooming by dragging the highlight border. |
| HighlightColor | The color of the rectangle that highlights the currently visible region of the diagram. |
| HighlightRect | The rectangle, in navigator coordinates, that marks the currently visible region of the diagram. |
| HighlightWidth | The pen width, in pixels, used to draw the visible-area highlight rectangle. |
| Offset | The horizontal and vertical scale factors that map diagram coordinates onto the overview. |
| PaintArea | The rectangle within the navigator into which the scaled-down diagram is fitted. |
| PaintLines | Determines whether connecting lines between blocks are drawn in the overview. |
| State | The current interaction state, indicating whether a move or zoom drag is in progress. |
Methods
| Name | Description |
|---|---|
| EndMoving | Ends an in-progress move (scroll) interaction and returns the controller to its idle state. |
| EndZoom | Ends an in-progress zoom interaction and returns the controller to its idle state. |
| MoveTo | Scrolls the linked control so that its visible region follows the given overview point while a move is active. |
| PaintTo | Renders the scaled-down diagram, its connecting lines, and the visible-area highlight onto the given surface. |
| PointInHighlightRect | Determines whether a point lies inside, on the border of, or outside the visible-area highlight rectangle. |
| StartMoving | Begins a move (scroll) interaction anchored at the given overview point. |
| StartZoom | Begins a zoom interaction anchored at the corner of the highlight opposite the given point. |
| ZoomTo | Updates the linked control's zoom level from the rectangle dragged out since the zoom interaction started. |