Class GSeriesValue

java.lang.Object
com.iizix.prop.ui.chart.series.GSeriesValue
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
Bubble, NoValue, OHLC, Simple, XY

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

    • GSeriesValue

      public GSeriesValue()
  • Method Details

    • parseNumber

      public static double parseNumber(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:
      NumberFormatException - For number format errors.
    • fromString

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

      public final GSeriesValue clone()
      Clones the instance.
      Overrides:
      clone in class 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(Object o)
      Checks if two fill objects are equal.
      Overrides:
      equals in class Object
    • getString

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

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