XYPlot extends Plot<XYSeries, XYSeriesFormatter, XYSeriesRenderer, XYSeriesBundle, XYSeriesRegistry> { public void centerOnRangeOrigin(@NonNull Number origin) { centerOnRangeOrigin(origin, null, BoundaryMode.AUTO); } XYPlot(Context context, String title);  XYPlot(Context context, String title, RenderMode mode);  XYPlot(Context context, AttributeSet attributes);  XYPlot(Context context, AttributeSet attrs, int defStyle); boolean containsPoint(float x, float y); boolean containsPoint(PointF point); void setCursorPosition(PointF point); void setCursorPosition(float x, float y); @Deprecated Number getXVal(float xPix); Number getYVal(float yPix); @Deprecated Number getYVal(PointF point); @Deprecated Number getXVal(PointF point); Number screenToSeriesX(float x); Number screenToSeriesY(float y); float seriesToScreenX(Number x); float seriesToScreenY(Number y); PointF seriesToScreen(XYCoords xy); XYCoords screentoSeries(PointF point); void calculateMinMaxVals(); void centerOnDomainOrigin(@NonNull Number origin); void centerOnDomainOrigin(@NonNull Number origin, Number extent, BoundaryMode mode); void centerOnRangeOrigin(@NonNull Number origin); @SuppressWarnings("SameParameterValue") void centerOnRangeOrigin(@NonNull Number origin, Number extent, BoundaryMode mode); void updateDomainMinMaxForOriginModel(); void updateRangeMinMaxForOriginModel(); int getLinesPerRangeLabel(); void setLinesPerRangeLabel(int linesPerLabel); int getLinesPerDomainLabel(); void setLinesPerDomainLabel(int linesPerDomainLabel); StepMode getDomainStepMode(); void setDomainStepMode(StepMode domainStepMode); double getDomainStepValue(); void setDomainStepValue(double domainStepValue); void setDomainStep(StepMode mode, double value); StepMode getRangeStepMode(); void setRangeStepMode(StepMode rangeStepMode); double getRangeStepValue(); void setRangeStepValue(double rangeStepValue); void setRangeStep(StepMode mode, double value); XYLegendWidget getLegend(); void setLegend(XYLegendWidget legend); XYGraphWidget getGraph(); void setGraph(XYGraphWidget graph); TextLabelWidget getDomainTitle(); void setDomainTitle(TextLabelWidget domainTitle); void setDomainLabel(String domainLabel); TextLabelWidget getRangeTitle(); void setRangeTitle(TextLabelWidget rangeTitle); void setRangeLabel(String rangeLabel); synchronized void setDomainBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode); synchronized void setDomainBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode,
                                                 Number upperBoundary, BoundaryMode upperBoundaryMode); synchronized void setRangeBoundaries(Number lowerBoundary, Number upperBoundary, BoundaryMode mode); synchronized void setRangeBoundaries(Number lowerBoundary, BoundaryMode lowerBoundaryMode,
                                                Number upperBoundary, BoundaryMode upperBoundaryMode); synchronized void setDomainUpperBoundary(Number boundary, BoundaryMode mode); synchronized void setDomainLowerBoundary(Number boundary, BoundaryMode mode); synchronized void setRangeUpperBoundary(Number boundary, BoundaryMode mode); synchronized void setRangeLowerBoundary(Number boundary, BoundaryMode mode); XYCoords getOrigin(); Number getDomainOrigin(); Number getRangeOrigin(); synchronized void setUserDomainOrigin(Number origin); synchronized void setUserRangeOrigin(Number origin); RectRegion getBounds(); boolean addMarker(YValueMarker marker); YValueMarker removeMarker(YValueMarker marker); int removeMarkers(); int removeYMarkers(); boolean addMarker(XValueMarker marker); XValueMarker removeMarker(XValueMarker marker); int removeXMarkers(); RectRegion getInnerLimits(); RectRegion getOuterLimits(); StepModel getDomainStepModel(); void setDomainStepModel(StepModel domainStepModel); StepModel getRangeStepModel(); void setRangeStepModel(StepModel rangeStepModel);  }
@Test(expected = IllegalArgumentException.class) public void centerOnRangeOrigin_throwsIllegalArgumentException_ifNullOrigin() { plot.centerOnRangeOrigin(null); }