TreeMapLabelDecorator<D> class

Decorator that renders label for treemap renderer element.

Constructors

TreeMapLabelDecorator({TextStyleSpec? labelStyleSpec, int labelPadding = _defaultLabelPadding, bool allowLabelOverflow = true, bool enableMultiline = false})

Properties

allowLabelOverflow → bool
Whether or not to allow labels to draw outside of their bounding box.
final
enableMultiline → bool
Whether or not drawing a label in multiple lines if there is enough space.
final
hashCode → int
The hash code for this object.
no setterinherited
labelPadding → int
Padding of the label text.
final
labelStyleSpec → TextStyleSpec
Text style spec for labels.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decorate(TreeMapRendererElement<D> rendererElement, ChartCanvas canvas, GraphicsFactory graphicsFactory, {required Rectangle<num> drawBounds, required double animationPercent, bool rtl = false, bool renderVertically = false, bool renderMultiline = false}) → void
Paints decorator on top of rendererElement.
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