Package 

Class ScalingXYSeries

  • All Implemented Interfaces:
    com.androidplot.Series , com.androidplot.xy.XYSeries

    
    public class ScalingXYSeries
     implements XYSeries
                        

    Wraps an existing XYSeries allowing easy scaling of that series' xy values.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum ScalingXYSeries.Mode
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double scale
    • Method Summary

      Modifier and Type Method Description
      double getScale()
      void setScale(double scale)
      String getTitle()
      int size()
      Number getX(int index) Returns the x-value for an index within a series.
      Number getY(int index) Returns the y-value for an index within a series.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScalingXYSeries

        ScalingXYSeries(XYSeries series, double scale, ScalingXYSeries.Mode mode)
        Parameters:
        series - The XYSeries to be scaled
        scale - The initial scale to be applied
        mode - Determines which axis (or both) to which scaling will be applied.
    • Method Detail

      • getX

         Number getX(int index)

        Returns the x-value for an index within a series.

        Parameters:
        index - the index index (in the range 0 tosize()-1).
      • getY

         Number getY(int index)

        Returns the y-value for an index within a series.

        Parameters:
        index - the index index (in the range 0 tosize()-1).