Class Series


  • public class Series
    extends java.lang.Object
    The series of data that will be shown in the charts.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int color
      The color to be used when drawing this series on a chart
      Image dot
      An image that will be used in some chars, to be used instead of a circle.
      int dotVAlign
      The alignment of the dot image.
      java.lang.String name
      This series' name
      double[] xValues
      This series' values for the X axis
      double[] yValues
      This series' values for the Y axis
    • Constructor Summary

      Constructors 
      Constructor Description
      Series​(java.lang.String name, double[] xValues, double[] yValues, int color)
      Creates a new series
      Series​(java.lang.String name, double[] xValues, double[] yValues, Image dot)
      Creates a new series
      Series​(java.lang.String name, double[] yValues, int color)
      Creates a new category series
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • name

        public java.lang.String name
        This series' name
      • xValues

        public double[] xValues
        This series' values for the X axis
      • yValues

        public double[] yValues
        This series' values for the Y axis
      • color

        public int color
        The color to be used when drawing this series on a chart
      • dot

        public Image dot
        An image that will be used in some chars, to be used instead of a circle.
        See Also:
        dotVAlign
      • dotVAlign

        public int dotVAlign
        The alignment of the dot image. Use CENTER (default), TOP or BOTTOM.
    • Constructor Detail

      • Series

        public Series​(java.lang.String name,
                      double[] yValues,
                      int color)
        Creates a new category series
        Parameters:
        name - the series' name
        yValues - the series' values for the Y axis (one for each category)
        color - the color to be used when drawing the series on a chart
      • Series

        public Series​(java.lang.String name,
                      double[] xValues,
                      double[] yValues,
                      int color)
        Creates a new series
        Parameters:
        name - the series' name
        xValues - the series' values for the X axis
        yValues - the series' values for the Y axis
        color - the color to be used when drawing the series on a chart
      • Series

        public Series​(java.lang.String name,
                      double[] xValues,
                      double[] yValues,
                      Image dot)
        Creates a new series
        Parameters:
        name - the series' name
        xValues - the series' values for the X axis
        yValues - the series' values for the Y axis
        dot - The image to be used instead of a circle.