com.tensegrity.composite.geometry
Class DefaultGeometryDescriptorItem

java.lang.Object
  extended bycom.tensegrity.composite.geometry.DefaultGeometryDescriptorItem
All Implemented Interfaces:
GeometryDescriptorItem

public class DefaultGeometryDescriptorItem
extends java.lang.Object
implements GeometryDescriptorItem

Default implementation of interface GeometryDescriptorItem. Look at this interface to get documentation on its usage.

Version:
$Id: DefaultGeometryDescriptorItem.java,v 1.21 2005/09/21 12:25:33 MichaelKegel Exp $
Author:
MichaelKegel

Constructor Summary
DefaultGeometryDescriptorItem(java.lang.String name, java.lang.String itemname, GeometryItemCoordinates coordinates, AttributeSet attributes)
          Constructor for DefaultGeometryDescriptorItem specifying the GeometryItem, the GeometryItemCoordinates and an AttributeSet to use.
DefaultGeometryDescriptorItem(java.lang.String name, java.lang.String itemname, GeometryItemCoordinates coordinates, AttributeSet attributes, AttributeSet hints)
          Constructor for DefaultGeometryDescriptorItem specifying the GeometryItem, the GeometryItemCoordinates and an AttributeSet to use.
 
Method Summary
 AttributeSet getAttributes()
          Returns an AttributeSet that holds the various attributes of this GeometryDescriptorItem.
 GeometryItemCoordinates getCoordinates()
          Returns the coordinates of this descriptor-item.
 AttributeSet getHints()
          Returns an AttributeSet that holds the geometrical hints provides by the GeometryDescriptorItem.
 GeometryItem getItem()
          Returns the GeometryItem belonging to this descriptor.
 java.lang.String getItemName()
           
 java.lang.String getName()
          Returns the name of this GeometryDescriptorItem.
 int getType()
          Returns the type of the GeometryDescriptorItem.
 boolean hasHints()
          Returns a boolean that indicates whether the GeometryDescriptorItem provides geometrical hints or not.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGeometryDescriptorItem

public DefaultGeometryDescriptorItem(java.lang.String name,
                                     java.lang.String itemname,
                                     GeometryItemCoordinates coordinates,
                                     AttributeSet attributes)
Constructor for DefaultGeometryDescriptorItem specifying the GeometryItem, the GeometryItemCoordinates and an AttributeSet to use.

Parameters:
itemname - the name of the GeometryItem referenced by this DefaultGeometryDescriptorItem
coordinates - the GeometryItemCoordinates to use
attributes - the AttributeSet to use.; may be null. These attributes are meant for future requirements. Do not pass the attributes of the GeometryItem here. They are handled elsewhere.

DefaultGeometryDescriptorItem

public DefaultGeometryDescriptorItem(java.lang.String name,
                                     java.lang.String itemname,
                                     GeometryItemCoordinates coordinates,
                                     AttributeSet attributes,
                                     AttributeSet hints)
Constructor for DefaultGeometryDescriptorItem specifying the GeometryItem, the GeometryItemCoordinates and an AttributeSet to use.

Parameters:
itemname - the name of the GeometryItem to referenced by this DefaultGeometryDescriptorItem
coordinates - the GeometryItemCoordinates to use
attributes - the AttributeSet to use.; may be null. These attributes are meant for future requirements. Do not pass the attributes of the GeometryItem here. They are handled elsewhere.
hints - printing hints (optional)
Method Detail

getType

public int getType()
Description copied from interface: GeometryDescriptorItem
Returns the type of the GeometryDescriptorItem. The type of a GeometryDescriptorItem identifies the item.

Specified by:
getType in interface GeometryDescriptorItem
Returns:
an int specifying the type. Possible values are defined in GeometryItem.
See Also:
GeometryItem

getName

public java.lang.String getName()
Description copied from interface: GeometryDescriptorItem
Returns the name of this GeometryDescriptorItem.

Specified by:
getName in interface GeometryDescriptorItem
Returns:
the name of this GeometryDescriptorItem.

getItemName

public java.lang.String getItemName()
Specified by:
getItemName in interface GeometryDescriptorItem

getItem

public GeometryItem getItem()
Description copied from interface: GeometryDescriptorItem
Returns the GeometryItem belonging to this descriptor.

Specified by:
getItem in interface GeometryDescriptorItem
Returns:
the GeometryItem belonging to this descriptor.

getCoordinates

public GeometryItemCoordinates getCoordinates()
Description copied from interface: GeometryDescriptorItem
Returns the coordinates of this descriptor-item.

Specified by:
getCoordinates in interface GeometryDescriptorItem
Returns:
the coordinates of this descriptor-item.

getAttributes

public AttributeSet getAttributes()
Description copied from interface: GeometryDescriptorItem
Returns an AttributeSet that holds the various attributes of this GeometryDescriptorItem. If no attributes are assigned to the GeometryDescriptorItem the return value is null.

Specified by:
getAttributes in interface GeometryDescriptorItem
Returns:
an AttributeSet holding the various attributes of this GeometryDescriptorItem or null.

hasHints

public boolean hasHints()
Description copied from interface: GeometryDescriptorItem
Returns a boolean that indicates whether the GeometryDescriptorItem provides geometrical hints or not.

Specified by:
hasHints in interface GeometryDescriptorItem
Returns:
boolean flag that indicates whether geometrical hints are provided or not

getHints

public AttributeSet getHints()
Description copied from interface: GeometryDescriptorItem
Returns an AttributeSet that holds the geometrical hints provides by the GeometryDescriptorItem.

Specified by:
getHints in interface GeometryDescriptorItem
Returns:
AttributeSet the geometrical hints

toString

public java.lang.String toString()


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.