Class StrokeList

    • Constructor Detail

      • StrokeList

        public StrokeList()
        Creates a new list.
    • Method Detail

      • getStroke

        public Stroke getStroke​(int index)
        Returns a Stroke object from the list.
        Parameters:
        index - the index (zero-based).
        Returns:
        The object.
      • setStroke

        public void setStroke​(int index,
                              Stroke stroke)
        Sets the Stroke for an item in the list. The list is expanded if necessary.
        Parameters:
        index - the index (zero-based).
        stroke - the Stroke.
      • equals

        public boolean equals​(Object o)
        Tests the list for equality with another object (typically also a list).
        Overrides:
        equals in class AbstractObjectList
        Parameters:
        o - the other object.
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class AbstractObjectList
        Returns:
        the hashcode