|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.style.DefaultStyleDescriptor
Default implementation of interface StyleDescriptor. Have a look
at this interface for documentation
StyleDescriptor| Field Summary |
| Fields inherited from interface com.tensegrity.composite.style.StyleDescriptor |
COMPOSITE_DESCRIPTOR, COMPOSITEGROUP_DESCRIPTOR, COMPOSITELABEL_DESCRIPTOR, COMPOSITELINE_DESCRIPTOR, COMPOSITESWIMLANE_DESCRIPTOR, COMPOSITETABLE_DESCRIPTOR, COMPOSITEVIEW_DESCRIPTOR, DESCRIPTOR_TYPE_MAX, GENERAL_DESCRIPTOR |
| Constructor Summary | |
DefaultStyleDescriptor(int type,
java.lang.String name,
java.util.List items)
Constructor for DefaultStyleDescriptor. |
|
DefaultStyleDescriptor(int type,
java.lang.String name,
java.util.List items,
AttributeSet attributes)
Creates a new DefaultStyleDescriptor based on the parameter. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
AttributeSet |
getAttributes()
Returns an AttributeSet that holds the various attributes of
this StyleDescriptor. |
java.lang.String |
getName()
Returns the name of this StyleDescriptor. |
int |
getType()
Returns the type of this StyleDescriptor. |
java.util.Iterator |
iteratorItems()
This method returns an iterator which steps over the StyleDescriptorItems provided by this
StyleDescriptor object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultStyleDescriptor(int type,
java.lang.String name,
java.util.List items)
type - the type of the descriptor ( @see StyleDescriptor }.name - the name of the descriptor.items - the list of style items.
public DefaultStyleDescriptor(int type,
java.lang.String name,
java.util.List items,
AttributeSet attributes)
Note:
You
cannot create such a descriptor, without providing a list of items. An
InvalidArgumentException is thrown, if this list is
null or empty.
PRECONDITIONS:
StyleDescriptornull and must not be
empty.
type - the type of the descriptor ( @see StyleDescriptor }.name - the name of the descriptor.items - the list of style items.attributes - a set of optional attributes.| Method Detail |
public int getType()
StyleDescriptorStyleDescriptor.
getType in interface StyleDescriptorStyleDescriptor.public java.lang.String getName()
StyleDescriptorStyleDescriptor.
getName in interface StyleDescriptorStyleDescriptor.public AttributeSet getAttributes()
StyleDescriptorAttributeSet that holds the various attributes of
this StyleDescriptor. If no attributes are assigned to the
StyleDescriptor the return value is null.
getAttributes in interface StyleDescriptorAttributeSet holding the various attributes of
this StyleDescriptor or null.public java.util.Iterator iteratorItems()
StyleDescriptorStyleDescriptorItems provided by this
StyleDescriptor object.
iteratorItems in interface StyleDescriptorpublic java.lang.String toString()
public boolean equals(java.lang.Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||