|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.style.DefaultStyleItem
Default implementation of interface StyleItem. Have a look at
this interface for documentation
StyleItem| Field Summary |
| Fields inherited from interface com.tensegrity.composite.style.StyleItem |
ELEMENT_ITEM, ELLIPSE_ITEM, GENERAL_ITEM, ITEM_TYPE_MAX, LABEL_ITEM, LINE_ITEM, POLYGON_ITEM, RECT_ITEM, TABLE_ITEM |
| Fields inherited from interface com.tensegrity.generic.util.CanonicalDescribable |
DELIMITER |
| Constructor Summary | |
DefaultStyleItem(int type,
java.lang.String name,
AttributeSet attributes)
Constructor for a DefaultStyleItem. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
AttributeSet |
getAttributes()
Returns an AttributeSet that holds the various attributes of
this StyleItem. |
java.lang.String |
getCanonicalDescription()
Returns a canonical description from the name and the type of this StyleItem. |
java.lang.String |
getName()
Returns the name of this StyleItem. |
int |
getType()
Returns the type of this StyleItem. |
java.lang.String |
toString()
Returns this items name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultStyleItem(int type,
java.lang.String name,
AttributeSet attributes)
DefaultStyleItem. Throws
InvalidArgumentException if the given type is not among the
predefined constants of class StyleItem.
type - the type (have a look a StyleItem for valid values.name - a name for this StyleItem.attributes - an AttributeSet holding the
Attributes to be used.| Method Detail |
public int getType()
StyleItemStyleItem. Have a look at the
constants of this class for possible values for type.
getType in interface StyleItemStyleItem.public java.lang.String getName()
StyleItemStyleItem.
getName in interface StyleItemStyleItem.public AttributeSet getAttributes()
StyleItemAttributeSet that holds the various attributes of
this StyleItem. If no attributes are assigned to the
StyleItem the return value is null.
getAttributes in interface StyleItemAttributeSet holding the various attributes of
this StyleItem or null.public java.lang.String getCanonicalDescription()
StyleItem. All values of the AttributeSet are
also added.
getCanonicalDescription in interface CanonicalDescribableCanonicalDescribable.getCanonicalDescription()public 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 | ||||||||||