|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.fillstyle.SolidFill
public final class SolidFill
SolidFill defines a solid colour that is used to fill an enclosed area in a shape. Shapes can be filled with transparent colours but only if the fill style is used in a DefineShape3 object.
| Constructor Summary | |
|---|---|
SolidFill(Color aColor)
Creates a SolidFill object with the specified colour. |
|
SolidFill(SolidFill object)
Creates and initialises a SolidFill fill style using the values copied from another SolidFill object. |
|
SolidFill(SWFDecoder coder,
Context context)
Creates and initialises a SolidFill fill style using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
SolidFill |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
Color |
getColor()
Get the colour of the fill style. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setColor(Color aColor)
Sets the colour of the fill style. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SolidFill(SWFDecoder coder,
Context context)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.context - a Context object used to manage the decoders for different
type of object and to pass information on how objects are
decoded.
IOException - if an error occurs while decoding the data.public SolidFill(Color aColor)
aColor - an Color object that defines the colour that the area will be
filled with. Must not be null.public SolidFill(SolidFill object)
object - a SolidFill fill style from which the values will be
copied.| Method Detail |
|---|
public Color getColor()
public void setColor(Color aColor)
aColor - an Color object that defines the colour that the area will be
filled with. Must not be null.public SolidFill copy()
copy in interface Copyable<FillStyle>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||