|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.geometry.DefaultGeometryDescriptor
Default implementation of interface
GeometryDescriptor. Look at this
interface to get documentation.
| Field Summary |
| Fields inherited from interface com.tensegrity.composite.geometry.GeometryDescriptor |
COMPOSITE_DESCRIPTOR, COMPOSITEGROUP_DESCRIPTOR, COMPOSITELABEL_DESCRIPTOR, COMPOSITELINE_DESCRIPTOR, COMPOSITESWIMLANE_DESCRIPTOR, COMPOSITETABLE_COLUMN_DESCRIPTOR, COMPOSITETABLE_DESCRIPTOR, COMPOSITETABLE_ROW_DESCRIPTOR, COMPOSITEVIEW_DESCRIPTOR, DESCRIPTOR_TYPE_MAX |
| Constructor Summary | |
DefaultGeometryDescriptor(int type,
java.lang.String name,
CoordinateSystem coordSystem,
java.util.List items)
Constructor for DefaultGeometryDescriptor. |
|
DefaultGeometryDescriptor(int type,
java.lang.String name,
CoordinateSystem coordSystem,
java.util.List items,
AttributeSet attributes)
Constructor for DefaultGeometryDescriptor specifying an
additional AttributeSet. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
AttributeSet |
getAttributes()
Returns an AttributeSet that holds the various attributes of
this GeometryDescriptor. |
CoordinateSystem |
getCoordinateSystem()
Returns the CoordinateSystem of the geometry. |
GeometryDescriptorItem |
getItem(java.lang.String name)
Returns the GeometryDescriptorItem with the name given by
name. |
java.lang.String |
getName()
Returns the name of the GeometryDescriptor.
|
int |
getType()
Returns the type of the GeometryDescriptor. |
java.util.Iterator |
iteratorItems()
This method returns an iterator which steps over the GeometryItems provided by this
GeometryDescriptor object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultGeometryDescriptor(int type,
java.lang.String name,
CoordinateSystem coordSystem,
java.util.List items)
type - the type of this GeometryDescriptor.name - a name for this GeometryDescriptor.coordSystem - the CoordinateSystem to use.items - a List holding the items of this descriptor.
public DefaultGeometryDescriptor(int type,
java.lang.String name,
CoordinateSystem coordSystem,
java.util.List items,
AttributeSet attributes)
DefaultGeometryDescriptor specifying an
additional AttributeSet.
type - the type of this GeometryDescriptor.name - a name for this GeometryDescriptor.coordSystem - the CoordinateSystem to use.items - a List holding the items of this descriptor.attributes - an AttributeSet holding attributes for
this descriptor.| Method Detail |
public int getType()
GeometryDescriptorGeometryDescriptor. The allowed
types are defined through constants defined in this interface.
getType in interface GeometryDescriptorGeometryDescriptorpublic java.lang.String getName()
GeometryDescriptorGeometryDescriptor.
GeometryDescriptor is
used to store it in the GeometryPool the name must be
unique.
getName in interface GeometryDescriptorpublic CoordinateSystem getCoordinateSystem()
GeometryDescriptorCoordinateSystem of the geometry.
getCoordinateSystem in interface GeometryDescriptorpublic AttributeSet getAttributes()
GeometryDescriptorAttributeSet that holds the various attributes of
this GeometryDescriptor. If no attributes are assigned to
the GeometryDescriptor the return value is
null.
getAttributes in interface GeometryDescriptorAttributeSet holding the various attributes of
this GeometryDescriptor or null.public GeometryDescriptorItem getItem(java.lang.String name)
GeometryDescriptorGeometryDescriptorItem with the name given by
name. If no GeometryDescriptorItem is available
with the given name null is returned.
getItem in interface GeometryDescriptorname - the name of the GeometryDescriptorItem to return
GeometryDescriptorItem
with the given name or nullpublic java.util.Iterator iteratorItems()
GeometryDescriptorGeometryItems provided by this
GeometryDescriptor object.
iteratorItems in interface GeometryDescriptorpublic java.lang.String toString()
Object.toString()public boolean equals(java.lang.Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||