Class GSeriesValue

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    Bubble, NoValue, OHLC, Simple, XY

    public abstract class GSeriesValue
    extends java.lang.Object
    implements java.lang.Cloneable
    The series value that can be simple, X/Y, Bubble or OHLC.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      Constructor Description
      GSeriesValue()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      GSeriesValue clone()
      Clones the instance.
      abstract boolean equals​(java.lang.Object o)
      Checks if two fill objects are equal.
      static GSeriesValue fromString​(java.lang.String string)
      Creates a fill from an element.
      java.lang.String getString()
      Gets the fill as a String in the form described below.
      abstract SeriesType getType()
      Gets the fill type.
      static double parseNumber​(java.lang.String string)
      Parses a value string to a double number.
      java.lang.String toString()
      Returns a string representation of this class instance and its values.
      • Methods inherited from class java.lang.Object

        finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GSeriesValue

        public GSeriesValue()
    • Method Detail

      • parseNumber

        public static double parseNumber​(java.lang.String string)
        Parses a value string to a double number.

        If the string is empty or "NaN", the returned value is Double.NaN.

        Parameters:
        string - The string to parse.
        Returns:
        The double value.
        Throws:
        java.lang.NumberFormatException - For number format errors.
      • fromString

        public static GSeriesValue fromString​(java.lang.String string)
                                       throws java.lang.IllegalArgumentException,
                                              java.lang.NumberFormatException
        Creates a fill from an element.
        Throws:
        java.lang.IllegalArgumentException - For errors in the string specification.
        java.lang.NumberFormatException - For invalid number formats.
        java.util.NoSuchElementException - If the string misses a parameter.
      • clone

        public final GSeriesValue clone()
        Clones the instance.
        Overrides:
        clone in class java.lang.Object
        Returns:
        The same instance is returned as the class is invariant.
      • getType

        public abstract SeriesType getType()
        Gets the fill type.
        Returns:
        One of the types SIMPLE, X_Y, BUBBLE or OHLC.
      • equals

        public abstract boolean equals​(java.lang.Object o)
        Checks if two fill objects are equal.
        Overrides:
        equals in class java.lang.Object
      • getString

        public final java.lang.String getString()
        Gets the fill as a String in the form described below.
        Returns:
        the String as described above.
      • toString

        public final java.lang.String toString()
        Returns a string representation of this class instance and its values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this class instance.