Class XYSequenceContainer

    • Field Detail

      • m_Color

        protected Color m_Color
        the associated color.
      • m_Visible

        protected boolean m_Visible
        whether the sequence is visible.
    • Constructor Detail

      • XYSequenceContainer

        public XYSequenceContainer​(XYSequenceContainerManager manager,
                                   XYSequence data)
        Initializes the container.
        Parameters:
        manager - the owning manager
        data - the sequence to encapsulate
    • Method Detail

      • assign

        public void assign​(XYSequenceContainer c)
        Updates itself with the values from given container (the manager is excluded!).
        Parameters:
        c - the container to get the values from
      • setColor

        public void setColor​(Color value)
        Sets the color to use.
        Specified by:
        setColor in interface ColorContainer
        Parameters:
        value - the color
      • getColor

        public Color getColor()
        Returns the current color in use.
        Specified by:
        getColor in interface ColorContainer
        Returns:
        the color
      • setVisible

        public void setVisible​(boolean value)
        Sets the sequence's visibility.
        Specified by:
        setVisible in interface VisibilityContainer
        Parameters:
        value - if true then the sequence will be visible
      • isVisible

        public boolean isVisible()
        Returns whether the sequence is visible.
        Specified by:
        isVisible in interface VisibilityContainer
        Returns:
        true if the sequence is visible
      • setData

        public void setData​(XYSequence value)
        Sets the sequence.
        Parameters:
        value - the sequence
      • getData

        public XYSequence getData()
        Returns the stored sequence.
        Returns:
        the sequence
      • getDisplayID

        public String getDisplayID()
        Returns the displayed container's ID.
        Specified by:
        getDisplayID in interface NamedContainer
        Returns:
        the displayed ID
      • compareTo

        public int compareTo​(AbstractContainer 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<AbstractContainer>
        Overrides:
        compareTo in class AbstractContainer
        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.
      • hashCode

        public int hashCode()
        Returns the hashcode of the sequence.
        Overrides:
        hashCode in class Object
        Returns:
        the hashcode
      • toString

        public String toString()
        Returns a short string representation of the container.
        Overrides:
        toString in class AbstractContainer
        Returns:
        a string representation