|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.fillstyle.MorphSolidFill
public final class MorphSolidFill
MorphSolidFill defines the solid colours that are used to fill a shape at the start and end of the morphing process.
| Constructor Summary | |
|---|---|
MorphSolidFill(Color start,
Color end)
Creates a MorphSolidFill object specifying the starting and ending colours. |
|
MorphSolidFill(MorphSolidFill object)
Creates and initialises a MorphSolidFill fill style using the values copied from another MorphSolidFill object. |
|
MorphSolidFill(SWFDecoder coder,
Context context)
Creates and initialises a MorphSolidFill fill style using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
MorphSolidFill |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
Color |
getEndColor()
Get the colour at the end of the morphing process. |
Color |
getStartColor()
Get the colour at the start of the morphing process. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setEndColor(Color aColor)
Sets the colour at the end of the morphing process. |
void |
setStartColor(Color aColor)
Sets the colour at the start of the morphing process. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MorphSolidFill(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 MorphSolidFill(Color start,
Color end)
start - the colour at the start of the morphing process.end - the colour at the end of the morphing process.public MorphSolidFill(MorphSolidFill object)
object - a MorphSolidFill fill style from which the values will be
copied.| Method Detail |
|---|
public Color getStartColor()
public Color getEndColor()
public void setStartColor(Color aColor)
aColor - the start colour. Must not be null.public void setEndColor(Color aColor)
aColor - the end colour. Must not be null.public MorphSolidFill 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 | |||||||||