TransformerHorizontalBarChart class
Transformer for the horizontal bar chart, where an inverted axis mirrors the values along the x axis instead of the y axis.
- Inheritance
-
- Object
- Transformer
- TransformerHorizontalBarChart
Constructors
- TransformerHorizontalBarChart(ViewPortHandler viewPortHandler)
-
Creates a transformer that maps into the content rectangle of
viewPortHandler.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- matrixOffset → Matrix
-
Matrix that moves the scaled values into the content rectangle and flips the y axis.
finalinherited
- matrixValueToPx → Matrix
-
Matrix that scales chart values to unzoomed pixel distances.
finalinherited
- offsetMatrix → Matrix
-
The offset matrix built by prepareMatrixOffset. Do not modify it.
no setterinherited
- pixelToValueMatrix → Matrix
-
The inverse of valueToPixelMatrix, mapping pixels to values.
Returns a buffer that is overwritten on the next access; do not keep a reference to it.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valueMatrix → Matrix
-
The value matrix built by prepareMatrixValuePx. Do not modify it.
no setterinherited
- valueToPixelMatrix → Matrix
-
The combined value, touch and offset matrix that maps values to pixels.
Returns a buffer that is overwritten on the next access; do not keep a reference to it.
no setterinherited
- viewPortHandler → ViewPortHandler
-
The viewport whose content rectangle and touch matrix this transformer maps into.
finalinherited
Methods
-
getPixelForValues(
double x, double y) → MPPointD -
Converts an x and y value to its pixel position.
inherited
-
getValuesByTouchPoint(
double x, double y, [MPPointD? outputPoint]) → MPPointD -
Converts a pixel position, for example a touch, to the x and y value at that point.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pathValuesToPixel(
List< Path> paths) → void -
Converts several paths built from chart values to pixel space in place.
inherited
-
pathValueToPixel(
Path path) → void -
Converts a path built from chart values to pixel space in place.
inherited
-
pixelsToValue(
Float32List pixels) → void -
Converts pixel positions to chart values in place.
inherited
-
pointValuesToPixel(
Float32List pts, [int? count]) → void -
Converts chart values to pixel positions in place.
inherited
-
prepareMatrixOffset(
bool inverted) → void -
Builds the offset matrix from the current content offsets.
override
-
prepareMatrixValuePx(
double xChartMin, double deltaX, double deltaY, double yChartMin) → void -
Builds the value matrix from the visible value range and the content size.
inherited
-
rectToPixelPhase(
MutableRect r, double phaseY) → void -
Multiplies the top and bottom of
rby the y animation phase, then converts it to pixel space in place. Used for vertical bars.inherited -
rectToPixelPhaseHorizontal(
MutableRect r, double phaseY) → void -
Multiplies the left and right of
rby the y animation phase, then converts it to pixel space in place. Used for horizontal bars, where the value runs along the x axis.inherited -
rectValuesToPixel(
List< MutableRect> rects) → void -
Converts several rectangles in value space to pixel space in place.
inherited
-
rectValueToPixel(
MutableRect r) → void -
Converts a rectangle in value space to pixel space in place.
inherited
-
rectValueToPixelHorizontal(
MutableRect r, [double? phaseY]) → void -
Converts a rectangle in value space to pixel space in place. Same as rectValueToPixel.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
valueToPixelMatrix4(
Float64List out) → bool -
Writes the matrix that pathValueToPixel applies in one step,
matrixOffset × matrixTouch × matrixValueToPx, intooutas column-major 4×4 storage (the formui.Path.transformtakes) and returns true. Returns false and leavesoutunchanged when one of the three matrices has skew or perspective.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited