Class XYSequencePoint

    • Field Detail

      • m_ID

        protected String m_ID
        an optional ID.
      • m_X

        protected double m_X
        the X value.
      • m_Y

        protected double m_Y
        the Y value.
    • Constructor Detail

      • XYSequencePoint

        public XYSequencePoint()
        Initializes the point with no points and no ID.
      • XYSequencePoint

        public XYSequencePoint​(double x)
        Initializes the point with no ID and no y.
        Parameters:
        x - the X value
      • XYSequencePoint

        public XYSequencePoint​(double x,
                               double y)
        Initializes the point with no ID.
        Parameters:
        x - the X value
        y - the Y value
      • XYSequencePoint

        public XYSequencePoint​(String id,
                               double x)
        Initializes the point.
        Parameters:
        id - the ID, use null to ignore
        x - the X value
      • XYSequencePoint

        public XYSequencePoint​(String id,
                               double x,
                               double y)
        Initializes the point.
        Parameters:
        id - the ID, use null to ignore
        x - the X value
        y - the Y value
    • Method Detail

      • setX

        public void setX​(double value)
        Sets the X value.
        Parameters:
        value - the new X value
      • getX

        public double getX()
        Returns the X value.
        Returns:
        the X value
      • getMinX

        public double getMinX()
        Returns the minimum for X.
        Returns:
        the minimum
      • getMaxX

        public double getMaxX()
        Returns the maximum for X.
        Returns:
        the maximum
      • setY

        public void setY​(double value)
        Sets the Y value.
        Parameters:
        value - the new Y value
      • getY

        public double getY()
        Returns the Y value.
        Returns:
        the Y value
      • getMinY

        public double getMinY()
        Returns the minimum for Y.
        Returns:
        the minimum
      • getMaxY

        public double getMaxY()
        Returns the maximum for Y.
        Returns:
        the maximum
      • setID

        public void setID​(String value)
        Sets the ID.
        Parameters:
        value - the new ID
      • getID

        public String getID()
        Returns the ID.
        Returns:
        the ID
      • hasID

        public boolean hasID()
        Checks whether an ID is set.
        Returns:
        true if an ID is available
      • compareTo

        public int compareTo​(Object o)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Specified by:
        compareTo in interface Comparable
        Specified by:
        compareTo in class AbstractDataPoint
        Parameters:
        o - the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Throws:
        ClassCastException - if the specified object's type prevents it from being compared to this object.
      • assign

        public void assign​(DataPoint other)
        Obtains the stored variables from the other data point.
        Specified by:
        assign in interface DataPoint
        Overrides:
        assign in class AbstractDataPoint
        Parameters:
        other - the data point to get the values from
      • hasMetaData

        public boolean hasMetaData()
        Checks if any meta-data is available.
        Specified by:
        hasMetaData in interface DataPointWithMetaData
        Returns:
        true if meta-data available
      • toString

        public String toString()
        Returns a string representation of the point.
        Specified by:
        toString in class AbstractDataPoint
        Returns:
        the string representation