Class SeriesValue

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.prop.ui.chart.series.SeriesValue
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, IChartContainer, Cloneable
Direct Known Subclasses:
ESeriesValue

public class SeriesValue extends PropCnr implements IChartContainer
A series value property is a property container that can only contain NumberProp's. The following table indicates the value types and the expected property names:
   Type    Name(s)
   ------  --------------
   Simple  [v]
   X/Y     [x] [y]
   Bubble  [x] [y] [s]
   OHLC    [o] [h] [l] [c] [m]
 
Author:
Christopher Mindus
  • Constructor Details

    • SeriesValue

      public SeriesValue()
      Constructs a new series value without a name.

      This constructor is used by the persistence framework and should not be used.

    • SeriesValue

      public SeriesValue(Atom atom)
      Constructs a new series value from an Atom name.

      This constructor is used by the persistence framework and should not be used.

      Parameters:
      atom - The atom name.
    • SeriesValue

      public SeriesValue(Atom atom, GSeriesValue value)
      Constructs a new series value from an Atom name.

      This constructor is used by the persistence framework and should not be used.

      Parameters:
      atom - The atom name.
  • Method Details

    • getSeriesType

      public SeriesType getSeriesType()
      Gets the value as a series type.
      Returns:
      The series type, or null if undefined.
    • getContainerType

      public final IChartContainer.Type getContainerType()
      Gets the type of container.
      Specified by:
      getContainerType in interface IChartContainer
      Returns:
      Type.SERIES.
    • clone

      public SeriesValue clone()
      Clone must be overridden.
      Overrides:
      clone in class PropCnr
    • getValue

      public GSeriesValue getValue()
      Gets the series value.
      Returns:
      The value.
    • setValue

      public void setValue(GSeriesValue value)
      Sets the series value.
      Parameters:
      value - The new value.
    • verify

      public boolean verify(PropVerification verification)
      Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
      Specified by:
      verify in interface IGProp<GProp<?>[]>
      Overrides:
      verify in class PropCnr
      Parameters:
      verification - The property verification class.
      Returns:
      true if verification should proceed, false if disposed of and verification should not take place.