BarLineChartBasePainter<T extends BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleDataSet<Entry>>> class

Inheritance
Implemented types
Implementers

Constructors

BarLineChartBasePainter(T data, Animator animator, ViewPortHandler viewPortHandler, double maxHighlightDistance, bool highLightPerTapEnabled, double extraLeftOffset, double extraTopOffset, double extraRightOffset, double extraBottomOffset, IMarker marker, Description desc, bool drawMarkers, Color infoBgColor, TextPainter infoPainter, TextPainter descPainter, XAxis xAxis, Legend legend, LegendRenderer legendRenderer, DataRendererSettingFunction rendererSettingFunction, OnChartValueSelectedListener selectedListener, int maxVisibleCount, bool autoScaleMinMaxEnabled, bool pinchZoomEnabled, bool doubleTapToZoomEnabled, bool highlightPerDragEnabled, bool dragXEnabled, bool dragYEnabled, bool scaleXEnabled, bool scaleYEnabled, Paint gridBackgroundPaint, Paint borderPaint, bool drawGridBackground, bool drawBorders, bool clipValuesToContent, double minOffset, bool keepPositionOnRotation, OnDrawListener drawListener, YAxis axisLeft, YAxis axisRight, YAxisRenderer axisRendererLeft, YAxisRenderer axisRendererRight, Transformer leftAxisTransformer, Transformer rightAxisTransformer, XAxisRenderer xAxisRenderer, Matrix4 zoomMatrixBuffer, bool customViewPortEnabled, Paint backgroundPaint, ChartTransListener chartTransListener)

Properties

animator Animator
read-only, inherited
axisLeft YAxis
read-only
axisRendererLeft YAxisRenderer
read-only
axisRendererRight YAxisRenderer
read-only
axisRight YAxis
read-only
doubleTapToZoomEnabled bool
read-only
dragXEnabled bool
read-only
dragYEnabled bool
read-only
extraBottomOffset double
read-only, inherited
extraLeftOffset double
read-only, inherited
extraRightOffset double
read-only, inherited
extraTopOffset double
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
highlighter IHighlighter
read / write, inherited
highlightPerDragEnabled bool
read-only
highLightPerTapEnabled bool
read-only, inherited
indicesToHighlight List<Highlight>
read-only, inherited
isDrawMarkers bool
read-only, inherited
leftAxisTransformer Transformer
read-only
legend Legend
read-only, inherited
legendRenderer LegendRenderer
read-only, inherited
marker IMarker
read-only, inherited
mGetPositionBuffer List<double>
read / write
minOffset double
read-only
posForGetHighestVisibleX MPPointD
buffer for storing highest visible x point
read / write
posForGetLowestVisibleX MPPointD
buffer for storing lowest visible x point
read / write
renderer DataRenderer
///////////////////////////////////////////// object responsible for rendering the data
read / write, inherited
rightAxisTransformer Transformer
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scaleXEnabled bool
read-only
scaleYEnabled bool
read-only
semanticsBuilder SemanticsBuilderCallback
Returns a function that builds semantic information for the picture drawn by this painter. [...]
read-only, inherited
size Size
read-only, inherited
viewPortHandler ViewPortHandler
read-only, inherited
xAxis XAxis
read-only, inherited

Methods

addEntry(Entry entry, int dataSetIndex) → void
addEntryByIndex(int index, Entry entry, int dataSetIndex) → void
addListener(VoidCallback listener) → void
Register a closure to be notified when it is time to repaint. [...]
inherited
autoScale() → void
Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view.
calcMinMax() → void
Calculates the y-min and y-max value and the y-delta and x-delta value
override
calculateLegendOffsets(Rect offsets) Rect
calculateOffsets() → void
Calculates the offsets of the chart to the border depending on the position of an eventual legend or depending on the length of the y-axis and x-axis labels and their position
override
compute() → void
drawDescription(Canvas c, Size size) → void
Draws the description text in the bottom right corner of the chart (per default)
inherited
drawGridBackground(Canvas c) → void
draws the grid background
drawMarkers(Canvas canvas) → void
draws all MarkerViews on the highlighted positions
inherited
getAxis(AxisDependency axis) YAxis
Returns the y-axis object to the corresponding AxisDependency. In the horizontal bar-chart, LEFT == top, RIGHT == BOTTOM [...]
getAxisRange(AxisDependency axis) double
Returns the range of the specified axis. [...]
getCenter(Size size) MPPointF
Returns a recyclable MPPointF instance. Returns the center point of the chart (the whole View) in pixels. [...]
inherited
getCenterOffsets() MPPointF
Returns a recyclable MPPointF instance. Returns the center of the chart taking offsets under consideration. (returns the center of the content rectangle) [...]
inherited
getData() BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleDataSet<Entry>>
override
getDataSetByTouchPoint(double x, double y) IBarLineScatterCandleBubbleDataSet<Entry>
returns the DataSet object displayed at the touched position of the chart [...]
getDefaultValueFormatter() ValueFormatter
inherited
getEntryByTouchPoint(double x, double y) Entry
returns the Entry object displayed at the touched position of the chart [...]
getHighestVisibleX() double
Returns the highest x-index (value on the x-axis) that is still visible on the chart. [...]
override
getHighlightByTouchPoint(double x, double y) Highlight
Returns the Highlight object (contains x-index and DataSet index) of the selected value at the given touch point inside the Line-, Scatter-, or CandleStick-Chart. [...]
inherited
getLowestVisibleX() double
Returns the lowest x-index (value on the x-axis) that is still visible on the chart. [...]
override
getMarkerPosition(Highlight high) List<double>
Returns the actual position in pixels of the MarkerView for the given Highlight object. [...]
inherited
getMaxHighlightDistance() double
Returns the maximum distance in scren dp a touch can be away from an entry to cause it to get highlighted. [...]
inherited
getMaxVisibleCount() int
override
getMeasuredHeight() double
inherited
getMeasuredWidth() double
inherited
getPixelForValues(double x, double y, AxisDependency axis) MPPointD
Returns a recyclable MPPointD instance Transforms the given chart values into pixels. This is the opposite method to getValuesByTouchPoint(...). [...]
getPosition(Entry e, AxisDependency axis) MPPointF
Returns a recyclable MPPointF instance. Returns the position (in pixels) the provided Entry has inside the chart view or null, if the provided Entry is null. [...]
getScaleX() double
returns the current x-scale factor
getScaleY() double
returns the current y-scale factor
getTransformer(AxisDependency which) Transformer
Returns the Transformer class that contains all matrices and is responsible for transforming values into pixels on the screen and backwards. [...]
override
getValuesByTouchPoint1(double x, double y, AxisDependency axis) MPPointD
Returns a recyclable MPPointD instance Returns the x and y values in the chart at the given touch point (encapsulated in a MPPointD). This method transforms pixel coordinates to coordinates / values in the chart. This is the opposite method to getPixelForValues(...). [...]
getValuesByTouchPoint2(double x, double y, AxisDependency axis, MPPointD outputPoint) → void
getVisibleXRange() double
Returns the range visible on the x-axis. [...]
getYChartMax() double
Returns the maximum y value of the chart, regardless of zoom or translation. [...]
override
getYChartMin() double
Returns the minimum y value of the chart, regardless of zoom or translation. [...]
override
hasNoDragOffset() bool
Returns true if both drag offsets (x and y) are zero or smaller. [...]
highlightValue1(double x, int dataSetIndex) → void
Highlights any y-value at the given x-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting. This method will call the listener. @param x The x-value to highlight @param dataSetIndex The dataset index to search in
inherited
highlightValue2(double x, double y, int dataSetIndex) → void
Highlights the value at the given x-value and y-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting. This method will call the listener. @param x The x-value to highlight @param y The y-value to highlight. Supply NaN for "any" @param dataSetIndex The dataset index to search in
inherited
highlightValue3(double x, int dataSetIndex, bool callListener) → void
Highlights any y-value at the given x-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting. @param x The x-value to highlight @param dataSetIndex The dataset index to search in @param callListener Should the listener be called for this change
inherited
highlightValue4(double x, double y, int dataSetIndex, bool callListener) → void
Highlights any y-value at the given x-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting. @param x The x-value to highlight @param y The y-value to highlight. Supply NaN for "any" @param dataSetIndex The dataset index to search in @param callListener Should the listener be called for this change
inherited
highlightValue5(Highlight highlight) → void
Highlights the values represented by the provided Highlight object This method will not call the listener. [...]
inherited
highlightValue6(Highlight high, bool callListener) → void
Highlights the value selected by touch gesture. Unlike highlightValues(...), this generates a callback to the OnChartValueSelectedListener. [...]
inherited
highlightValues(List<Highlight> highs) → void
Highlights the values at the given indices in the given DataSets. Provide null or an empty array to undo all highlighting. This should be used to programmatically highlight values. This method will not call the listener. [...]
inherited
hitTest(Offset position) bool
Called whenever a hit test is being performed on an object that is using this custom paint delegate. [...]
inherited
init() → void
inherited
initDefaultNormal() → void
inherited
initDefaultWithData() → void
override
isAnyAxisInverted() bool
Returns true if either the left or the right or both axes are inverted. [...]
isFullyZoomedOut() bool
if the chart is fully zoomed out, return true [...]
isInverted(AxisDependency axis) bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onPaint(Canvas canvas, Size size) → void
override
paint(Canvas canvas, Size size) → void
Called whenever the object needs to paint. The given Canvas has its coordinate space configured such that the origin is at the top left of the box. The area of the box is the size of the size argument. [...]
inherited
prepareOffsetMatrix() → void
prepareValuePxMatrix() → void
reassemble() → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies when it is time to repaint. [...]
inherited
selectedValue(Highlight high) → void
inherited
setBorderColor(Color color) → void
Sets the color of the chart border lines. [...]
setBorderWidth(double width) → void
Sets the width of the border lines in dp. [...]
setDragOffsetX(double offset) → void
Set an offset in dp that allows the user to drag the chart over it's bounds on the x-axis. [...]
setDragOffsetY(double offset) → void
Set an offset in dp that allows the user to drag the chart over it's bounds on the y-axis. [...]
setGridBackgroundColor(Color color) → void
Sets the color for the background of the chart-drawing area (everything behind the grid lines). [...]
setVisibleYRange(double minYRange, double maxYRange, AxisDependency axis) → void
Limits the maximum and minimum y range that can be visible by pinching and zooming. [...]
setVisibleYRangeMaximum(double maxYRange, AxisDependency axis) → void
Sets the size of the area (range on the y-axis) that should be maximum visible at once. [...]
setVisibleYRangeMinimum(double minYRange, AxisDependency axis) → void
Sets the size of the area (range on the y-axis) that should be minimum visible at once, no further zooming in possible. [...]
shouldRebuildSemantics(covariant CustomPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former). [...]
inherited
shouldRepaint(covariant CustomPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former). [...]
inherited
toString() String
A string representation of this object. [...]
inherited
translate(double dx, double dy) → void
updateEntry(int index, Entry entry, int dataSetIndex) bool
valuesToHighlight() bool
Returns true if there are values to highlight, false if there are no values to highlight. Checks if the highlight array is null, has a length of zero or if the first object is null. [...]
inherited
zoom(double scaleX, double scaleY, double x, double y) → void
Zooms in or out by the given scale factor. x and y are the coordinates (in pixels) of the zoom center. [...]

Operators

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