RectShape class
A rectangle or sector shape.
The shape is a rectangle in a rectangle coordinate or a sector in a polar coordinate.
- Inheritance
-
- Object
- Shape
- FunctionShape
- IntervalShape
- RectShape
Constructors
- RectShape({bool histogram = false, double labelPosition = 1, BorderRadius? borderRadius})
- Creates a rectangle shape.
Properties
- borderRadius → BorderRadius?
-
The border radius of the rectangle or sector.
final
- defaultSize → double
-
The default size of the shape if Attributes.size is null.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- histogram → bool
-
Whether the shape is a histogram.
final
- labelPosition → double
-
The position ratio of the label in the interval.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
drawGroupLabels(
List< Attributes> group, CoordConv coord, Offset origin) → List< MarkElement< ElementStyle>> -
Renders label elements of all tuples of a group.
override
-
drawGroupPrimitives(
List< Attributes> group, CoordConv coord, Offset origin) → List< MarkElement< ElementStyle>> -
Renders primitive elements of all tuples of a group.
override
-
equalTo(
Object other) → bool - Checks the equlity of two specs.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
representPoint(
List< Offset> position) → Offset -
Gets the represent point of Attributes.position points.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited