|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.style.persistence.StyleItemSerializer
The StyleItemSerializer creates an AttributeList from a StyleItem instance.
This class mainly consists of static methods to create suitable AttributeSets
for all sorts of formats like they are defined in
com.tensegrity.graphics.
| Constructor Summary | |
StyleItemSerializer(StyleItem item)
Constructor for StyleItemSerializer. |
|
| Method Summary | |
static java.lang.String |
getTypeName(int type)
This method returns the matching string constant to a given ItemType constant. |
AttributeList |
serialize()
Translates the information of the object to be serialized into an AttributeList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StyleItemSerializer(StyleItem item)
StyleItemSerializer.
item - the StyleItem to serialize.| Method Detail |
public AttributeList serialize()
throws SerializeException
SerializerAttributeList.
serialize in interface SerializerSerializeException - is thrown whenever an error occurs while
serializing the given object.
public static final java.lang.String getTypeName(int type)
throws SerializeException
type - the integer constant of a style item.
SerializeException - thrown if the type identifier is smaller than 0
or bigger than the length of the
StyleConstantsPersistence#itemTypeFormats
array.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||