HorizontalViewPortHandler class
Methods
-
canZoomInMoreX()
→ bool
-
Returns true if the chart is not yet fully zoomed in on the x-axis
inherited
-
canZoomInMoreY()
→ bool
-
Returns true if the chart is not yet fully zoomed in on the y-axis
inherited
-
canZoomOutMoreX()
→ bool
-
Returns true if the chart is not yet fully zoomed out on the x-axis
inherited
-
canZoomOutMoreY()
→ bool
-
Returns true if the chart is not yet fully zoomed out on the y-axis
inherited
-
centerViewPort(List<double> transformedPts)
→ void
-
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.
inherited
-
chartHeight()
→ double
-
inherited
-
chartWidth()
→ double
-
inherited
-
contentBottom()
→ double
-
inherited
-
contentHeight()
→ double
-
inherited
-
contentLeft()
→ double
-
inherited
-
contentRight()
→ double
-
inherited
-
contentTop()
→ double
-
inherited
-
contentWidth()
→ double
-
inherited
-
fitScreen1()
→ Matrix4
-
Resets all zooming and dragging and makes the chart fit exactly it's
bounds.
inherited
-
fitScreen2(Matrix4 outputMatrix)
→ void
-
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.
inherited
-
getChartHeight()
→ double
-
inherited
-
getChartWidth()
→ double
-
inherited
-
getContentCenter()
→ MPPointF
-
inherited
-
getContentRect()
→ Rect
-
inherited
-
getMatrixTouch()
→ Matrix4
-
Returns the charts-touch matrix used for translation and scale on touch.
inherited
-
getMaxScaleX()
→ double
-
inherited
-
getMaxScaleY()
→ double
-
inherited
-
getMinScaleX()
→ double
-
inherited
-
getMinScaleY()
→ double
-
inherited
-
getScaleX()
→ double
-
returns the current x-scale factor
inherited
-
getScaleY()
→ double
-
returns the current y-scale factor
inherited
-
getSmallestContentExtension()
→ double
-
Returns the smallest extension of the content rect (width or height).
inherited
-
getTransX()
→ double
-
Returns the translation (drag / pan) distance on the x-axis
inherited
-
getTransY()
→ double
-
Returns the translation (drag / pan) distance on the y-axis
inherited
-
hasChartDimens()
→ bool
-
inherited
-
hasNoDragOffset()
→ bool
-
Returns true if both drag offsets (x and y) are zero or smaller.
inherited
-
isFullyZoomedOut()
→ bool
-
if the chart is fully zoomed out, return true
inherited
-
isFullyZoomedOutX()
→ bool
-
Returns true if the chart is fully zoomed out on it's x-axis
(horizontal).
inherited
-
isFullyZoomedOutY()
→ bool
-
Returns true if the chart is fully zoomed out on it's y-axis (vertical).
inherited
-
isInBounds(double? x, double? y)
→ bool
-
inherited
-
isInBoundsBottom(double? y)
→ bool
-
inherited
-
isInBoundsLeft(double? x)
→ bool
-
inherited
-
isInBoundsRight(double? x)
→ bool
-
inherited
-
isInBoundsTop(double? y)
→ bool
-
inherited
-
isInBoundsX(double? x)
→ bool
-
BELOW METHODS FOR BOUNDS CHECK
inherited
-
isInBoundsY(double? y)
→ bool
-
inherited
-
limitTransAndScale(Matrix4 matrix, Rect content)
→ void
-
limits the maximum scale and X translation of the given matrix
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
offsetBottom()
→ double
-
inherited
-
offsetLeft()
→ double
-
inherited
-
offsetRight()
→ double
-
inherited
-
offsetTop()
→ double
-
inherited
-
refresh(Matrix4 newMatrix)
→ Matrix4
-
call this method to refresh the graph with a given matrix
inherited
-
resetZoom(Matrix4 outputMatrix)
→ void
-
Zooms out to original size.
@param outputMatrix
inherited
-
restrainViewPort(double offsetLeft, double offsetTop, double offsetRight, double offsetBottom)
→ void
-
inherited
-
setChartDimens(double width, double height)
→ void
-
Sets the width and height of the chart.
inherited
-
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.
inherited
-
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.
inherited
-
setMaximumScaleX(double xScale)
→ void
-
Sets the maximum scale factor for the x-axis
inherited
-
setMaximumScaleY(double yScale)
→ void
-
Sets the maximum scale factor for the y-axis
inherited
-
setMinimumScaleX(double xScale)
→ void
-
Sets the minimum scale factor for the x-axis
inherited
-
setMinimumScaleY(double yScale)
→ void
-
Sets the minimum scale factor for the y-axis
inherited
-
setMinMaxScaleX(double minScaleX, double maxScaleX)
→ void
-
Sets the minimum and maximum scale factors for the x-axis
inherited
-
setMinMaxScaleY(double minScaleY, double maxScaleY)
→ void
-
inherited
-
setZoom1(double scaleX, double scaleY)
→ Matrix4
-
Sets the scale factor to the specified values.
inherited
-
setZoom2(double scaleX, double scaleY, Matrix4 outputMatrix)
→ void
-
inherited
-
setZoom3(double scaleX, double scaleY, double x, double y)
→ Matrix4
-
Sets the scale factor to the specified values. x and y is pivot.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
translate1(List<double> transformedPts)
→ Matrix4
-
Post-translates to the specified points. Less Performant.
inherited
-
translate2(List<double> transformedPts, Matrix4 outputMatrix)
→ void
-
Post-translates to the specified points. Output matrix allows for caching objects.
inherited
-
zoom1(double scaleX, double scaleY)
→ Matrix4
-
Post-scales by the specified scale factors.
inherited
-
zoom2(double scaleX, double scaleY, Matrix4 outputMatrix)
→ void
-
inherited
-
zoom3(double scaleX, double scaleY, double x, double y)
→ Matrix4
-
Post-scales by the specified scale factors. x and y is pivot.
inherited
-
zoom4(double scaleX, double scaleY, double x, double y, Matrix4 outputMatrix)
→ void
-
inherited
-
zoomIn1(double x, double y)
→ Matrix4
-
Zooms in by 1.4f, x and y are the coordinates (in pixels) of the zoom
center.
inherited
-
zoomIn2(double x, double y, Matrix4 outputMatrix)
→ void
-
inherited
-
zoomOut1(double x, double y)
→ Matrix4
-
Zooms out by 0.7f, x and y are the coordinates (in pixels) of the zoom
center.
inherited
-
zoomOut2(double x, double y, Matrix4 outputMatrix)
→ void
-
inherited