RectangleOutline class final
An outline in the shape of its bounds, with optional circular corners of cornerRadius.
- Inheritance
-
- Object
- ResolvedOutline
- RectangleOutline
Constructors
- RectangleOutline(DiagramRect bounds, {double cornerRadius = 0})
-
const
Properties
- bounds → DiagramRect
-
finalinherited
- cornerRadius → double
-
final
- effectiveCornerRadius → double
-
Uniform circular corners use the same radius fitting as the paint path.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
override
-
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
toleranceinstead 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) → RectangleOutline -
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