LineChartTopContainer class
Container of the line chart.
The core override is setting the presenterCreator -
object which makes instances of LineAndHotspotPresenter
s,
which are, in turn, used to present each data value.
- Inheritance
-
- Object
- ChartTopContainer
- LineChartTopContainer
Constructors
- LineChartTopContainer({required ChartData chartData, LabelLayoutStrategy? xContainerLabelLayoutStrategy})
Properties
- chartArea ↔ Size
-
chartArea is the chart area size of this container.
In flutter_charts, this is guaranteed to be the same
area on which the painter will paint.
See the call to layout of this class.
chartArea marked late, as there is virtually no practical situation
it can be known before runtime; it is required,
but not set at construction time.
getter/setter pairinherited
- data ↔ ChartData
-
getter/setter pairinherited
- dataContainer ↔ DataContainer
-
getter/setter pairinherited
- 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
- isStacked ↔ bool
-
getter/setter pairinherited
- layoutSize ↔ Size
-
Implements
Container.layoutSize
. ChartTopContainer is the only one overriding layoutSize setter, to express the layoutSize is fixed chartAreagetter/setter pairinherited - legendContainer ↔ LegendContainer
-
Base Areas of chart.
getter/setter pairinherited
- offset ↔ Offset
-
Current absolute offset, set by parent (and it's parent etc, to root).
getter/setter pairinherited
- pointsColumns ↔ PointsColumns
-
Subclasses - aware members.
getter/setter pairinherited
- presenterCreator ↔ PresenterCreator
-
Abstract methods or subclasses-implemented getters
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
- startYAxisAtDataMinAllowed → bool
-
Implements ChartBehavior mixin abstract method.
no setteroverride
- tiltMatrix → Matrix2
-
Provides access to tiltMatrix for extension's paint methods.
no setterinherited
- xContainer ↔ XContainer
-
getter/setter pairinherited
-
xTickXs
→ List<
double> -
X coordinates of x ticks (x tick - middle of column, also middle of label).
Once XContainer.layout and YContainer.layout are complete,
this list drives the layout of DataContainer.
no setterinherited
- yContainer ↔ YContainer
-
getter/setter pairinherited
- yLabelsCreator ↔ YLabelsCreatorAndPositioner
-
Scaler of data values to values on the Y axis.
getter/setter pairinherited
-
yTickYs
→ List<
double> -
Y coordinates of y ticks (y tick - scaled value of data, also middle of label).
Once XContainer.layout and YContainer.layout are complete,
this list drives the layout of DataContainer.
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
-
createDataContainer(
{required ChartTopContainer chartTopContainer}) → LineChartDataContainer -
Abstract method creates the DataContainer,
for the particular chart type (line, bar).
override
-
layout(
LayoutExpansion parentLayoutExpansion) → void -
Implements
Container.layout
for the chart as a whole.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas) → void -
Implements abstract paint for the whole chart.
Paints the chart on the passed
canvas
, limited to thesize
area.inherited -
setupPointsColumns(
) → void -
Create member pointsColumns from
data.dataRows
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited