Package org.graffiti.graphics
Class ShapeDescriptionAttribute
java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.graffiti.attributes.AbstractCollectionAttribute
org.graffiti.attributes.LinkedHashMapAttribute
org.graffiti.graphics.ShapeDescriptionAttribute
- All Implemented Interfaces:
Attribute
,CollectionAttribute
,SortedCollectionAttribute
,DeepCopy
,Displayable
public class ShapeDescriptionAttribute extends LinkedHashMapAttribute
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ShapeDescriptionAttribute(String id)
Constructor for ShapeDescriptionAttribute. -
Method Summary
Modifier and Type Method Description Object
copy()
Copies thisCollectionAttribute
and returns the copy.List<Point2D>
getCoordinates()
Gets the x and y coordinates.void
setCoordinates(List points)
Replaces potentially existing coordinate attributes with the new given ones.Methods inherited from class org.graffiti.attributes.LinkedHashMapAttribute
getCollection, getCollectionNoClone, setCollection, setDefaultValue, size, toXMLString
Methods inherited from class org.graffiti.attributes.AbstractCollectionAttribute
add, add, getAttributable, getAttribute, getValue, isEmpty, remove, remove, setAttributable, toString
Methods inherited from class org.graffiti.attributes.AbstractAttribute
addEdgeAttributeType, addNodeAttributeType, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isDeleted, isTypedAttributeFromID, setDeleted, setDescription, setId, setParent, setValue, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.graffiti.attributes.Attribute
getAttributable, getId, getParent, getPath, getValue, isDeleted, setDeleted, setId, setParent, setValue, toString
Methods inherited from interface org.graffiti.attributes.CollectionAttribute
add, add, getAttribute, isEmpty, remove, remove, setAttributable
Methods inherited from interface org.graffiti.plugin.Displayable
getDescription, getIcon, getName, setDescription
-
Constructor Details
-
ShapeDescriptionAttribute
Constructor for ShapeDescriptionAttribute.- Parameters:
id
-
-
-
Method Details
-
setCoordinates
Replaces potentially existing coordinate attributes with the new given ones.- Parameters:
points
- aList
ofPoint2D
objects.
-
getCoordinates
Gets the x and y coordinates. The method returns aList
containingPoint2D
objects.- Returns:
- DOCUMENT ME!
-
copy
Copies thisCollectionAttribute
and returns the copy. All sub-attributes will be copied, too, i.e. a deep-copy is returned.- Specified by:
copy
in interfaceDeepCopy
- Overrides:
copy
in classLinkedHashMapAttribute
- Returns:
- a copy of the
CollectionAttribute
.
-