XContainer class

Container of the X axis labels.

This ChartAreaContainer operates as follows:

  • Horizontally available space is all used (filled).
  • Vertically available space is used only as much as needed. The used amount is given by maximum X label height, plus extra spacing.
  • See layout and layoutSize for resulting size calculations.
  • See the XContainer constructor for the assumption on LayoutExpansion.
Inheritance

Constructors

XContainer({required ChartTopContainer chartTopContainer, LabelLayoutStrategy? xContainerLabelLayoutStrategy})
Constructs the container that holds X labels.

Properties

chartTopContainer ChartTopContainer
The chart top level.
finalinherited
enableSkipOnDistressedSize bool
If size constraints imposed by parent are too tight, some internal calculations of sizes may lead to negative values, making painting of this container not possible.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isDistressed bool
getter/setter pairinherited
labelLayoutStrategy LabelLayoutStrategy
no setterinherited
layoutSize Size
Manages the layout size during the layout process in layout. Should be only mentioned in this class, not super
getter/setter pairinherited
offset Offset
Current absolute offset, set by parent (and it's parent etc, to root).
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipByParent bool
skipByParent instructs the parent container that this container should not be painted or layed out - as if it collapsed to zero size.
getter/setter pairinherited
tiltMatrix → Matrix2
Provides access to tiltMatrix for extension's paint methods.
no setterinherited
xGridStep double
no setter
xLabelsMaxHeight double
no setter

Methods

applyParentOffset(Offset offset) → void
Allow a parent container to move this Container after layout.
applyParentTiltMatrix(Matrix2 tiltMatrix) → void
Tilt may apply to the whole container. todo-2 unused? move to base class? similar to offset?
inherited
labelsOverlap() bool
Only should be called after layout
override
layout(LayoutExpansion parentLayoutExpansion) → void
Lays out the chart in horizontal (x) direction.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas) → void
Paints this XContainer on the passed canvas.
toString() String
A string representation of this object.
inherited

Operators

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