|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.flagstone.transform.FSTransformObject
com.flagstone.transform.FSShape
public class FSShape
FSShape is a container for the shape objects (FSLine, FSCurve and FSShapeStyle objects) that describe how a particular shape is drawn.
| Attributes | |
|---|---|
| objects | An array of shape (FSLine, FSCurve and FSShapeStyle) objects which are used to draw the outline of the shape. |
FSShapes are used in shape and font definitions. The FSShape class is used to simplify the design of these classes and provides no added functionality other than acting as a container class.
The FSShape class represents the Shape record from the Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 1.
| Constructor Summary | |
|---|---|
FSShape()
Constructs an FSShape object with no shape objects. |
|
FSShape(java.util.ArrayList anArray)
Constructs an FSShape object, specifying the Objects that describe how the shape is drawn. |
|
FSShape(FSCoder coder)
Construct an FSShape object, initalizing it with values decoded from an encoded object. |
|
FSShape(FSShape obj)
Constructs an FSShape object by copying values from an existing object. |
|
| Method Summary | |
|---|---|
void |
add(FSTransformObject anObject)
Adds the object to the array of shape records. |
void |
appendDescription(java.lang.StringBuffer buffer,
int depth)
AppendDescription is used to present a string description of the object including all nested objects up to a specified depth. |
java.lang.Object |
clone()
Creates a deep copy of the entire object. |
void |
decode(FSCoder coder)
|
void |
encode(FSCoder coder)
|
boolean |
equals(java.lang.Object anObject)
Returns true if anObject is equal to this one. |
java.util.ArrayList |
getObjects()
Gets the array of shape records that define the shape. |
int |
length(FSCoder coder)
|
void |
setObjects(java.util.ArrayList anArray)
Sets the array of shape records. |
| Methods inherited from class com.flagstone.transform.FSTransformObject |
|---|
name, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FSShape(FSCoder coder)
coder - an FSCoder containing the binary data.public FSShape()
public FSShape(java.util.ArrayList anArray)
anArray - the array of shape records.public FSShape(FSShape obj)
obj - an FSShape object.| Method Detail |
|---|
public void add(FSTransformObject anObject)
anObject - an instance of FSShapeStyle, FSLine or FSCurve.public java.util.ArrayList getObjects()
public void setObjects(java.util.ArrayList anArray)
anArray - the array of shape records.public java.lang.Object clone()
FSTransformObject
clone in class FSTransformObjectpublic boolean equals(java.lang.Object anObject)
equals in class FSTransformObject
public void appendDescription(java.lang.StringBuffer buffer,
int depth)
FSTransformObject
appendDescription in class FSTransformObjectbuffer - a StringBuffer to which the description of each object is appended.depth - the maximum level of nesting up to which objects will be displayed.public int length(FSCoder coder)
length in class FSTransformObjectpublic void encode(FSCoder coder)
encode in class FSTransformObjectpublic void decode(FSCoder coder)
decode in class FSTransformObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||