Class SeriesValue

  • All Implemented Interfaces:
    EventListener, IGProp<GProp<?>[]>, IPropCnr, IChartContainer, java.lang.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 Detail

      • 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 Detail

      • getSeriesType

        public SeriesType getSeriesType()
        Gets the value as a series type.
        Returns:
        The series type, or null if undefined.
      • 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.