com.tensegrity.composite.geometry
Class DefaultGeometryItem

java.lang.Object
  extended bycom.tensegrity.composite.geometry.DefaultGeometryItem
All Implemented Interfaces:
GeometryItem

public class DefaultGeometryItem
extends java.lang.Object
implements GeometryItem

Default implementation of interface GeometryItem. Look at this interface to get a detailed documentation.

Version:
$Id: DefaultGeometryItem.java,v 1.7 2005/01/21 10:59:25 MichaelKegel Exp $
Author:
MichaelKegel

Field Summary
 
Fields inherited from interface com.tensegrity.composite.geometry.GeometryItem
ELEMENT_ITEM, ELLIPSE_ITEM, LABEL_ITEM, LINE_ITEM, POLYGON_ITEM, RECT_ITEM, TABLE_COLUMN_ITEM, TABLE_ITEM, TABLE_ROW_ITEM
 
Constructor Summary
DefaultGeometryItem(int type, java.lang.String name, AttributeSet attributes)
          Constructor specifying the type, the name and a AttributeSet to use.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 AttributeSet getAttributes()
          Returns an AttributeSet that holds the various attributes of this GeometryItem.
 java.lang.String getName()
          Returns the name of this GeometryItem.
 int getType()
          Returns the type of the GeometryItem.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGeometryItem

public DefaultGeometryItem(int type,
                           java.lang.String name,
                           AttributeSet attributes)
Constructor specifying the type, the name and a AttributeSet to use.

Parameters:
type - the type.
name - a name.
attributes - the attributes to set.
Method Detail

getType

public int getType()
Description copied from interface: GeometryItem
Returns the type of the GeometryItem. The type of a GeometryItem identifies the item and dependent on the of it

Specified by:
getType in interface GeometryItem
Returns:
an int specifying the type of the GeometryItem.

getName

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

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

getAttributes

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

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

equals

public boolean equals(java.lang.Object obj)


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