-
- All Implemented Interfaces:
-
com.patrykandpatrick.vico.core.context.DrawContext,com.patrykandpatrick.vico.core.context.Extras,com.patrykandpatrick.vico.core.context.MeasureContext
public interface ChartDrawContext implements DrawContext
An extension of DrawContext that holds additional data required to render a Chart.
-
-
Method Summary
Modifier and Type Method Description abstract RectFgetChartBounds()The bounds in which the Chart will be drawn. abstract HorizontalDimensionsgetHorizontalDimensions()Holds information on the Chart’s horizontal dimensions. abstract PointgetMarkerTouchPoint()The point inside the chart’s coordinates where physical touch is occurring. abstract FloatgetHorizontalScroll()The current amount of horizontal scroll. abstract LonggetElevationOverlayColor()The elevation overlay color, applied to ShapeComponents that cast shadows. abstract CanvasgetCanvas()The canvas to draw the chart on. abstract RectFgetCanvasBounds()The bounds of the canvas that will be used to draw the chart and its components. abstract ChartValuesManagergetChartValuesManager()Manages the associated Chart’s ChartValues. abstract FloatgetDensity()The pixel density. abstract FloatgetFontScale()The font scale. abstract BooleangetIsLtr()Whether the layout direction is left-to-right. abstract BooleangetIsHorizontalScrollEnabled()Whether horizontal scrolling is enabled. abstract FloatgetChartScale()The scale of the chart. abstract HorizontalLayoutgetHorizontalLayout()Defines how the chart’s content is positioned horizontally. FloatgetLayoutDirectionMultiplier()FloatgetPixels(Float $self)IntegergetWholePixels(Float $self)-
Methods inherited from class com.patrykandpatrick.vico.core.chart.draw.ChartDrawContext
clipRect, clipRect, restoreCanvas, restoreCanvasToCount, saveCanvas, saveLayer, withOtherCanvas -
Methods inherited from class com.patrykandpatrick.vico.core.context.DrawContext
reset, toFontSize, toPixels -
Methods inherited from class com.patrykandpatrick.vico.core.context.MeasureContext
clearExtras, consumeExtra, get, getExtra, hasExtra, putExtra, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getChartBounds
abstract RectF getChartBounds()
The bounds in which the Chart will be drawn.
-
getHorizontalDimensions
abstract HorizontalDimensions getHorizontalDimensions()
Holds information on the Chart’s horizontal dimensions.
-
getMarkerTouchPoint
abstract Point getMarkerTouchPoint()
The point inside the chart’s coordinates where physical touch is occurring.
-
getHorizontalScroll
abstract Float getHorizontalScroll()
The current amount of horizontal scroll.
-
getElevationOverlayColor
abstract Long getElevationOverlayColor()
The elevation overlay color, applied to ShapeComponents that cast shadows.
-
getCanvasBounds
abstract RectF getCanvasBounds()
The bounds of the canvas that will be used to draw the chart and its components.
-
getChartValuesManager
abstract ChartValuesManager getChartValuesManager()
Manages the associated Chart’s ChartValues.
-
getDensity
abstract Float getDensity()
The pixel density.
-
getFontScale
abstract Float getFontScale()
The font scale.
-
getIsHorizontalScrollEnabled
abstract Boolean getIsHorizontalScrollEnabled()
Whether horizontal scrolling is enabled.
-
getChartScale
abstract Float getChartScale()
The scale of the chart. Used to handle zooming in and out.
-
getHorizontalLayout
abstract HorizontalLayout getHorizontalLayout()
Defines how the chart’s content is positioned horizontally.
-
getLayoutDirectionMultiplier
Float getLayoutDirectionMultiplier()
-
getWholePixels
Integer getWholePixels(Float $self)
-
-
-
-