org.graffiti.graphics
Class ShapeDescriptionAttribute

java.lang.Object
  extended by org.graffiti.attributes.AbstractAttribute
      extended by org.graffiti.attributes.AbstractCollectionAttribute
          extended by org.graffiti.attributes.LinkedHashMapAttribute
              extended by org.graffiti.graphics.ShapeDescriptionAttribute
All Implemented Interfaces:
Attribute, CollectionAttribute, SortedCollectionAttribute, DeepCopy, Displayable<Object>

public class ShapeDescriptionAttribute
extends LinkedHashMapAttribute


Field Summary
 
Fields inherited from class org.graffiti.attributes.AbstractCollectionAttribute
attributes
 
Fields inherited from class org.graffiti.attributes.AbstractAttribute
id
 
Fields inherited from interface org.graffiti.attributes.Attribute
SEPARATOR
 
Constructor Summary
ShapeDescriptionAttribute(String id)
          Constructor for ShapeDescriptionAttribute.
 
Method Summary
 Object copy()
          Copies this CollectionAttribute and returns the copy.
 List<Point2D> getCoordinates()
          Gets the x and y coordinates.
 void setCoordinates(List<Point2D> points)
          Replaces potentially existing coordinate attributes with the new given ones.
 
Methods inherited from class org.graffiti.attributes.LinkedHashMapAttribute
doSetValue, getCollection, setCollection, setDefaultValue, toXMLString
 
Methods inherited from class org.graffiti.attributes.AbstractCollectionAttribute
add, add, containsAttribute, getAttributable, getAttribute, getValue, isEmpty, remove, remove, setAttributable, toString
 
Methods inherited from class org.graffiti.attributes.AbstractAttribute
callPostAttributeAdded, callPostAttributeChanged, callPostAttributeRemoved, callPreAttributeAdded, callPreAttributeChanged, callPreAttributeRemoved, getDescription, getId, getName, getParent, getPath, getSpaces, getStandardXML, setDescription, setParent, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.graffiti.attributes.CollectionAttribute
add, add, containsAttribute, getAttribute, isEmpty, remove, remove, setAttributable
 
Methods inherited from interface org.graffiti.attributes.Attribute
getAttributable, getId, getParent, getPath, getValue, setParent, setValue, toString
 
Methods inherited from interface org.graffiti.plugin.Displayable
getDescription, getName, setDescription
 

Constructor Detail

ShapeDescriptionAttribute

public ShapeDescriptionAttribute(String id)
Constructor for ShapeDescriptionAttribute.

Parameters:
id -
Method Detail

setCoordinates

public void setCoordinates(List<Point2D> 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.


Generated at 2012-05-30 11:00:36 PM CEST