PathFigure class
A PathFigure represents a section of a Geometry. It is a single connected series of two-dimensional geometric PathSegments.
The Geometry#figures property is a list of PathFigures.
PathFigures are drawn with the Shape#stroke and other stroke properties. Filled PathFigures are painted with the Shape#fill.
A PathFigure must not be modified once its containing Geometry has been assigned to a Shape.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEvenOdd ↔ bool
-
Available on PathFigure, provided by the PathFigure$Typings extension
Gets or sets whether this PathFigure will render and hit-test with the even-odd fill rule or nonzero winding number fill rule (false). The default value is false, using the nonzero winding number rule.getter/setter pair - isFilled ↔ bool
-
Available on PathFigure, provided by the PathFigure$Typings extension
Gets or sets whether this PathFigure is drawn filled. The default value is true.getter/setter pair - isShadowed ↔ bool
-
Available on PathFigure, provided by the PathFigure$Typings extension
Gets or sets whether this PathFigure will render a shadow if one is defined. This is used for turning off shadows on specific subpaths. The default value is true.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
↔ List<
PathSegment> -
Available on PathFigure, provided by the PathFigure$Typings extension
Gets or sets the List of PathSegments that define this PathFigure.getter/setter pair - startX ↔ num
-
Available on PathFigure, provided by the PathFigure$Typings extension
Gets or sets the starting point X coordinate of the PathFigure. The default value is zero.getter/setter pair - startY ↔ num
-
Available on PathFigure, provided by the PathFigure$Typings extension
Gets or sets the starting point Y coordinate of the PathFigure. The default value is zero.getter/setter pair
Methods
-
add(
PathSegment segment) → PathFigure -
Available on PathFigure, provided by the PathFigure$Typings extension
Add a PathSegment to the #segments list. @param {PathSegment} segment a newly allocated unshared PathSegment that will become owned by this PathFigure @return {PathFigure} @since 1.5 -
copy(
) → PathFigure -
Available on PathFigure, provided by the PathFigure$Typings extension
Create a copy of this PathFigure, with the same values and segments. @expose @return {PathFigure} -
equalsApprox(
PathFigure f) → bool -
Available on PathFigure, provided by the PathFigure$Typings extension
(undocumented) @param {PathFigure} f @return {boolean} -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited