Package jcckit.data

Class DataCurve

    • Constructor Detail

      • DataCurve

        public DataCurve​(String title)
        Creates an empty instance with the specified title.
      • DataCurve

        public DataCurve​(ConfigParameters config)
        Creates an instance from the specified config parameters.
        Key & Default ValueTypeMandatory Description
        title = empty string Stringno Curve title.
        xdouble[]yes x-coordinates of the curve points.
        ydouble[]yes y-coordinates of the curve points.
    • Method Detail

      • setContainer

        public void setContainer​(DataContainer container)
        Sets the DataPlot where this is a curve of.
        Specified by:
        setContainer in interface DataElement
        Parameters:
        container - Container which should contains this element. Cann be null if this element does not belong to a container.
      • getTitle

        public String getTitle()
        Returns the title of this curve.
      • isValid

        protected boolean isValid​(DataElement element)
        Returns true if element is an instance of DataPoint.
        Specified by:
        isValid in class DataContainer
        Parameters:
        element - DataElement to be checked.