Home
last modified time | relevance | path

Searched refs:mScrollerStartViewport (Results 1 – 1 of 1) sorted by relevance

/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/
DInteractiveLineGraphView.java148 private RectF mScrollerStartViewport = new RectF(); // Used only for zooms and flings. field in InteractiveLineGraphView
721 mScrollerStartViewport.set(mCurrentViewport);
808 mScrollerStartViewport.set(mCurrentViewport); in fling()
809 int startX = (int) (mSurfaceSizeBuffer.x * (mScrollerStartViewport.left - AXIS_X_MIN) / ( in fling()
811 int startY = (int) (mSurfaceSizeBuffer.y * (AXIS_Y_MAX - mScrollerStartViewport.bottom) / ( in fling()
901 float newWidth = (1f - mZoomer.getCurrZoom()) * mScrollerStartViewport.width(); in computeScroll()
902 float newHeight = (1f - mZoomer.getCurrZoom()) * mScrollerStartViewport.height(); in computeScroll()
903 float pointWithinViewportX = (mZoomFocalPoint.x - mScrollerStartViewport.left) in computeScroll()
904 / mScrollerStartViewport.width(); in computeScroll()
905 float pointWithinViewportY = (mZoomFocalPoint.y - mScrollerStartViewport.top) in computeScroll()
[all …]