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 Objectcopy()Copies thisCollectionAttributeand returns the copy.List<Point2D>getCoordinates()Gets the x and y coordinates.voidsetCoordinates(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, toXMLStringMethods inherited from class org.graffiti.attributes.AbstractCollectionAttribute
add, add, getAttributable, getAttribute, getValue, isEmpty, remove, remove, setAttributable, toStringMethods inherited from class org.graffiti.attributes.AbstractAttribute
addEdgeAttributeType, addNodeAttributeType, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isDeleted, isTypedAttributeFromID, setDeleted, setDescription, setId, setParent, setValue, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.graffiti.attributes.Attribute
getAttributable, getId, getParent, getPath, getValue, isDeleted, setDeleted, setId, setParent, setValue, toStringMethods inherited from interface org.graffiti.attributes.CollectionAttribute
add, add, getAttribute, isEmpty, remove, remove, setAttributableMethods 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- aListofPoint2Dobjects.
-
getCoordinates
Gets the x and y coordinates. The method returns aListcontainingPoint2Dobjects.- Returns:
- DOCUMENT ME!
-
copy
Copies thisCollectionAttributeand returns the copy. All sub-attributes will be copied, too, i.e. a deep-copy is returned.- Specified by:
copyin interfaceDeepCopy- Overrides:
copyin classLinkedHashMapAttribute- Returns:
- a copy of the
CollectionAttribute.
-