Readonly
chartReadonly
contentthis rectangle defines the area in which graph values can be drawn
Protected
mbuffer for storing the 9 matrix values of a 3x3 matrix
matrix used for touch events
Returns the smallest extension of the content rect (width or height).
Returns true if the chart is not yet fully zoomed in on the x-axis
Returns true if the chart is not yet fully zoomed in on the y-axis
Returns true if the chart is not yet fully zoomed out on the x-axis
Returns true if the chart is not yet fully zoomed out on the y-axis
Centers the viewport around the specified position (x-index and y-value) in the chart. Centering the viewport outside the bounds of the chart is not possible. Makes most sense in combination with the setScaleMinima(...) method.
the position to center view viewport to
save
Resets all zooming and dragging and makes the chart fit exactly it's bounds. Output Matrix is available for those who wish to cache the object.
Optional
outputMatrix: anyReturns the charts-touch matrix used for translation and scale on touch.
returns the current x-scale factor
returns the current y-scale factor
Returns the translation (drag / pan) distance on the x-axis
Returns the translation (drag / pan) distance on the y-axis
Returns true if both drag offsets (x and y) are zero or smaller.
if the chart is fully zoomed out, return true
Returns true if the chart is fully zoomed out on it's x-axis (horizontal).
Returns true if the chart is fully zoomed out on it's y-axis (vertical).
BELOW METHODS FOR BOUNDS CHECK
limits the maximum scale and X translation of the given matrix
call this method to refresh the graph with a given matrix
Zooms out to original size.
Sets the width and height of the chart.
Set an offset in dp that allows the user to drag the chart over it's bounds on the x-axis.
Set an offset in dp that allows the user to drag the chart over it's bounds on the y-axis.
Sets the maximum scale factor for the x-axis
Sets the maximum scale factor for the y-axis
Sets the minimum scale factor for the x-axis
Sets the minimum scale factor for the y-axis
Sets the minimum and maximum scale factors for the x-axis
Sets the scale factor to the specified values.
Sets the scale factor to the specified values. x and y is pivot.
Post-translates to the specified points. Output matrix allows for caching objects.
Optional
outputMatrix: anyPost-scales by the specified scale factors.
Post-scales by the specified scale factors. x and y is pivot.
Zooms in by 1.4f, x and y are the coordinates (in pixels) of the zoom center.
ViewPortHandler for HorizontalBarChart.