Class ShapeDescriptionAttribute

All Implemented Interfaces:
Attribute, CollectionAttribute, SortedCollectionAttribute, DeepCopy, Displayable

public class ShapeDescriptionAttribute
extends LinkedHashMapAttribute
  • Constructor Details

    • ShapeDescriptionAttribute

      public ShapeDescriptionAttribute​(String id)
      Constructor for ShapeDescriptionAttribute.
      Parameters:
      id -
  • Method Details

    • setCoordinates

      public void setCoordinates​(List points)
      Replaces potentially existing coordinate attributes with the new given ones.
      Parameters:
      points - a List of Point2D objects.
    • getCoordinates

      public List<Point2D> getCoordinates()
      Gets the x and y coordinates. The method returns a List containing Point2D objects.
      Returns:
      DOCUMENT ME!
    • copy

      public Object copy()
      Copies this CollectionAttribute and returns the copy. All sub-attributes will be copied, too, i.e. a deep-copy is returned.
      Specified by:
      copy in interface DeepCopy
      Overrides:
      copy in class LinkedHashMapAttribute
      Returns:
      a copy of the CollectionAttribute.