Module platform

Class StrokeList

All Implemented Interfaces:
Serializable, Cloneable

public class StrokeList extends AbstractObjectList
A table of Stroke objects.
See Also:
  • Constructor Details

    • StrokeList

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

    • 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.
    • clone

      public Object clone() throws CloneNotSupportedException
      Returns an independent copy of the list.
      Overrides:
      clone in class AbstractObjectList
      Returns:
      A clone.
      Throws:
      CloneNotSupportedException - if an item in the list cannot be cloned.
    • 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