|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.linestyle.MorphLineStyle
public final class MorphLineStyle
MorphLineStyle defines the width and colour of a line drawn for a shape is it is morphed.
MorphLineStyle specifies the width and colour of the line at the start and end of the morphing process. The transparency value for the colour should also be specified. The Flash Player performs the interpolation as the shape is morphed.
| Constructor Summary | |
|---|---|
MorphLineStyle(int initialWidth,
int finalWidth,
Color initialColor,
Color finalColor)
Creates a MorphLineStyle object specifying the starting and ending widths and colours. |
|
MorphLineStyle(MorphLineStyle object)
Creates and initialises a MorphLineStyle object using the values copied from another MorphLineStyle object. |
|
MorphLineStyle(SWFDecoder coder,
Context context)
Creates and initialises a MorphLineStyle object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
MorphLineStyle |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
Color |
getEndColor()
Returns the colour of the line at the end of the morphing process. |
int |
getEndWidth()
Get the width of the line at the end of the morphing process. |
Color |
getStartColor()
Get the colour of the line at the start of the morphing process. |
int |
getStartWidth()
Get the width of the line 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 of the line at the end of the morphing process. |
void |
setEndWidth(int aNumber)
Sets the width of the line at the end of the morphing process. |
void |
setStartColor(Color aColor)
Returns the colour of the line at the start of the morphing process. |
void |
setStartWidth(int aNumber)
Sets the width of the line 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 MorphLineStyle(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 MorphLineStyle(int initialWidth,
int finalWidth,
Color initialColor,
Color finalColor)
initialWidth - the width of the line at the start of the morphing process.finalWidth - the width of the line at the end of the morphing process.initialColor - the colour of the line at the start of the morphing process.finalColor - the colour of the line at the end of the morphing process.public MorphLineStyle(MorphLineStyle object)
object - a MorphLineStyle object from which the values will be
copied.| Method Detail |
|---|
public int getStartWidth()
public int getEndWidth()
public Color getStartColor()
public Color getEndColor()
public void setStartWidth(int aNumber)
aNumber - the starting width of the line. Must be in the range 0..65535.public void setEndWidth(int aNumber)
aNumber - the ending width of the line. Must be in the range 0..65535.public void setStartColor(Color aColor)
aColor - the starting colour of the line. Must not be null.public void setEndColor(Color aColor)
aColor - the ending colour of the line. Must not be null.public MorphLineStyle copy()
copy in interface Copyable<LineStyle>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 | |||||||||