PolygonOutline class final

A closed outline with straight edges between its points, which are in shape-local coordinates. At least three points are required.

Inheritance

Constructors

PolygonOutline(DiagramRect bounds, List<DiagramPoint> points)

Properties

bounds → DiagramRect
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
points → List<DiagramPoint>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

boundaryToward(DiagramPoint target) → DiagramPoint
override
contains(DiagramPoint point) → bool
override
containsBounds(DiagramRect rectangle) → bool
Proves a complete axis-aligned rectangle is inside this local outline. False may mean unknown; custom and concave outlines remain conservative.
inherited
hitTest(DiagramPoint point, {required double tolerance}) → bool
Picking with a caller tolerance. Closed outlines pick their interior only; stroke-like outlines widen their stroke to tolerance instead of the fixed diagramStrokeHitTolerance used by contains.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
strokedBounds(double width) → DiagramRect
Conservative exterior ink bounds for the renderer's miter limit of four. Curved/rectangular outlines need only half the stroke width; arbitrary corners may extend to four times that distance. This is a culling envelope, not a replacement for the outline used by hit testing or attachments.
inherited
toString() → String
A string representation of this object.
inherited
translated(DiagramPoint delta) → PolygonOutline
This outline moved by delta, or null when the implementation cannot translate itself. Resolution then re-runs the full shape pipeline.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

regularCorners(int sides, DiagramSize size) → List<DiagramPoint>
The corners of a regular polygon with sides sides, the first at the top, spanning size in shape-local units.