ChartAreaContainer class abstract

Base class which manages, lays out, moves, and paints each top level block on the chart. The basic top level chart blocks are:

  • ChartTopContainer - the whole chart
  • LegendContainer - manages the legend
  • YContainer - manages the Y labels layout, which defines:
    • Y axis label sizes
    • Y positions of Y axis labels, defined as yTickY. yTicksY s are the Y points of scaled data values and also Y points on which the Y labels are centered.
  • XContainer - Equivalent to YContainer, but manages X direction layout and labels.
  • DataContainer and extensions - manages the area which displays:
    • Data as bar chart, line chart, or other chart type.
    • Grid (this includes the X and Y axis).

See Container for discussion of roles of this class. This extension of Container has the added ability to access the container's parent, which is handled by chartTopContainer.

Implementers

Constructors

ChartAreaContainer({required ChartTopContainer chartTopContainer})

Properties

chartTopContainer ChartTopContainer
The chart top level.
final
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
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

Methods

applyParentOffset(Offset offset) → void
Allow a parent container to move this Container after layout.
inherited
applyParentTiltMatrix(Matrix2 tiltMatrix) → void
Tilt may apply to the whole container. todo-2 unused? move to base class? similar to offset?
inherited
layout(LayoutExpansion parentLayoutExpansion) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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