3131import com .github .mikephil .charting .listener .OnDrawListener ;
3232import com .github .mikephil .charting .renderer .XAxisRenderer ;
3333import com .github .mikephil .charting .renderer .YAxisRenderer ;
34+ import com .github .mikephil .charting .utils .MPPointD ;
3435import com .github .mikephil .charting .utils .MPPointF ;
35- import com .github .mikephil .charting .utils .PointD ;
3636import com .github .mikephil .charting .utils .Transformer ;
3737import com .github .mikephil .charting .utils .Utils ;
3838
@@ -683,14 +683,14 @@ public void zoomAndCenterAnimated(float scaleX, float scaleY, float xValue, floa
683683
684684 if (android .os .Build .VERSION .SDK_INT >= 11 ) {
685685
686- PointD origin = getValuesByTouchPoint (mViewPortHandler .contentLeft (), mViewPortHandler .contentTop (), axis );
686+ MPPointD origin = getValuesByTouchPoint (mViewPortHandler .contentLeft (), mViewPortHandler .contentTop (), axis );
687687
688688 Runnable job = AnimatedZoomJob .getInstance (mViewPortHandler , this , getTransformer (axis ), getAxis (axis ), mXAxis
689689 .mAxisRange , scaleX , scaleY , mViewPortHandler .getScaleX (), mViewPortHandler .getScaleY (),
690690 xValue , yValue , (float ) origin .x , (float ) origin .y , duration );
691691 addViewportJob (job );
692692
693- PointD .recycleInstance (origin );
693+ MPPointD .recycleInstance (origin );
694694
695695 } else {
696696 Log .e (LOG_TAG , "Unable to execute zoomAndCenterAnimated(...) on API level < 11" );
@@ -848,7 +848,7 @@ public void moveViewToAnimated(float xValue, float yValue, AxisDependency axis,
848848
849849 if (android .os .Build .VERSION .SDK_INT >= 11 ) {
850850
851- PointD bounds = getValuesByTouchPoint (mViewPortHandler .contentLeft (), mViewPortHandler .contentTop (), axis );
851+ MPPointD bounds = getValuesByTouchPoint (mViewPortHandler .contentLeft (), mViewPortHandler .contentTop (), axis );
852852
853853 float yInView = getDeltaY (axis ) / mViewPortHandler .getScaleY ();
854854
@@ -857,7 +857,7 @@ public void moveViewToAnimated(float xValue, float yValue, AxisDependency axis,
857857
858858 addViewportJob (job );
859859
860- PointD .recycleInstance (bounds );
860+ MPPointD .recycleInstance (bounds );
861861 } else {
862862 Log .e (LOG_TAG , "Unable to execute moveViewToAnimated(...) on API level < 11" );
863863 }
@@ -915,7 +915,7 @@ public void centerViewToAnimated(float xValue, float yValue, AxisDependency axis
915915
916916 if (android .os .Build .VERSION .SDK_INT >= 11 ) {
917917
918- PointD bounds = getValuesByTouchPoint (mViewPortHandler .contentLeft (), mViewPortHandler .contentTop (), axis );
918+ MPPointD bounds = getValuesByTouchPoint (mViewPortHandler .contentLeft (), mViewPortHandler .contentTop (), axis );
919919
920920 float yInView = getDeltaY (axis ) / mViewPortHandler .getScaleY ();
921921 float xInView = getXAxis ().mAxisRange / mViewPortHandler .getScaleX ();
@@ -926,7 +926,7 @@ public void centerViewToAnimated(float xValue, float yValue, AxisDependency axis
926926
927927 addViewportJob (job );
928928
929- PointD .recycleInstance (bounds );
929+ MPPointD .recycleInstance (bounds );
930930 } else {
931931 Log .e (LOG_TAG , "Unable to execute centerViewToAnimated(...) on API level < 11" );
932932 }
@@ -1202,40 +1202,40 @@ public void setKeepPositionOnRotation(boolean keepPositionOnRotation) {
12021202 }
12031203
12041204 /**
1205- * Returns a recyclable PointD instance
1205+ * Returns a recyclable MPPointD instance
12061206 * Returns the x and y values in the chart at the given touch point
1207- * (encapsulated in a PointD ). This method transforms pixel coordinates to
1207+ * (encapsulated in a MPPointD ). This method transforms pixel coordinates to
12081208 * coordinates / values in the chart. This is the opposite method to
12091209 * getPixelsForValues(...).
12101210 *
12111211 * @param x
12121212 * @param y
12131213 * @return
12141214 */
1215- public PointD getValuesByTouchPoint (float x , float y , AxisDependency axis ) {
1216- PointD result = PointD .getInstance (0 ,0 );
1215+ public MPPointD getValuesByTouchPoint (float x , float y , AxisDependency axis ) {
1216+ MPPointD result = MPPointD .getInstance (0 ,0 );
12171217 getValuesByTouchPoint (x ,y ,axis ,result );
12181218 return result ;
12191219 }
12201220
1221- public void getValuesByTouchPoint (float x , float y , AxisDependency axis , PointD outputPoint ){
1221+ public void getValuesByTouchPoint (float x , float y , AxisDependency axis , MPPointD outputPoint ){
12221222 getTransformer (axis ).getValuesByTouchPoint (x , y , outputPoint );
12231223 }
12241224
12251225 /**
1226- * Returns a recyclable PointD instance
1226+ * Returns a recyclable MPPointD instance
12271227 * Transforms the given chart values into pixels. This is the opposite
12281228 * method to getValuesByTouchPoint(...).
12291229 *
12301230 * @param x
12311231 * @param y
12321232 * @return
12331233 */
1234- public PointD getPixelsForValues (float x , float y , AxisDependency axis ) {
1234+ public MPPointD getPixelsForValues (float x , float y , AxisDependency axis ) {
12351235 return getTransformer (axis ).getPixelsForValues (x , y );
12361236 }
12371237
1238- PointD pointForGetYValueByTouchPoint = PointD .getInstance (0 ,0 );
1238+ MPPointD pointForGetYValueByTouchPoint = MPPointD .getInstance (0 ,0 );
12391239 /**
12401240 * Returns y value at the given touch position (must not necessarily be
12411241 * a value contained in one of the datasets)
@@ -1281,7 +1281,7 @@ public IBarLineScatterCandleBubbleDataSet getDataSetByTouchPoint(float x, float
12811281 }
12821282
12831283 /** buffer for storing lowest visible x point */
1284- protected PointD posForGetLowestVisibleX = PointD .getInstance (0 ,0 );
1284+ protected MPPointD posForGetLowestVisibleX = MPPointD .getInstance (0 ,0 );
12851285
12861286 /**
12871287 * Returns the lowest x-index (value on the x-axis) that is still visible on
@@ -1298,7 +1298,7 @@ public float getLowestVisibleX() {
12981298 }
12991299
13001300 /** buffer for storing highest visible x point */
1301- protected PointD posForGetHighestVisibleX = PointD .getInstance (0 ,0 );
1301+ protected MPPointD posForGetHighestVisibleX = MPPointD .getInstance (0 ,0 );
13021302
13031303 /**
13041304 * Returns the highest x-index (value on the x-axis) that is still visible
0 commit comments