|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.fillstyle.MorphGradientFill
public final class MorphGradientFill
MorphGradientFill defines how a colour gradient changes across an area filled
in a shape as it is morphed. GradientFill has a description of colour
gradients.
MorphGradient,
GradientFill| Constructor Summary | |
|---|---|
MorphGradientFill(GradientType gradientType,
CoordTransform start,
CoordTransform end,
List<MorphGradient> grads)
Creates a MorphGradientFill object specifying the type of fill, starting and ending coordinate transforms and the list of gradient records. |
|
MorphGradientFill(int fillType,
SWFDecoder coder,
Context context)
Creates and initialises an MorphGradientFill fill style using values encoded in the Flash binary format. |
|
MorphGradientFill(MorphGradientFill object)
Creates and initialises a MorphGradientFill fill style using the values copied from another MorphGradientFill object. |
|
| Method Summary | |
|---|---|
MorphGradientFill |
add(MorphGradient aGradient)
Add a MorphGradient object to the list of gradient objects. |
MorphGradientFill |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
CoordTransform |
getEndTransform()
Get the coordinate transform mapping the gradient square onto physical coordinates at the end of the morphing process. |
List<MorphGradient> |
getGradients()
Get the list of MorphGradients defining the control points for the gradient. |
CoordTransform |
getStartTransform()
Get the coordinate transform mapping the gradient square onto physical coordinates at the start of the morphing process. |
GradientType |
getType()
Get the type indicating whether the gradient is linear or radial. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setEndTransform(CoordTransform matrix)
Sets the coordinate transform mapping the gradient square onto physical coordinates at the end of the morphing process. |
void |
setGradients(List<MorphGradient> list)
Sets the list of control points that define the gradient. |
void |
setStartTransform(CoordTransform matrix)
Sets the coordinate transform mapping the gradient square onto physical coordinates at the start of the morphing process. |
void |
setType(GradientType gradientType)
Set the type indicating whether the gradient is linear or radial. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MorphGradientFill(int fillType,
SWFDecoder coder,
Context context)
throws IOException
fillType - the value used to identify the fill style when it is
encoded.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 MorphGradientFill(GradientType gradientType,
CoordTransform start,
CoordTransform end,
List<MorphGradient> grads)
gradientType - identifies whether the gradient is rendered linearly or
radially.start - the coordinate transform mapping the gradient square onto
physical coordinates at the start of the morphing process.end - the coordinate transform mapping the gradient square onto
physical coordinates at the end of the morphing process.grads - a list of MorphGradient objects defining the control points
for the gradient.public MorphGradientFill(MorphGradientFill object)
object - a MorphGradientFill fill style from which the values will be
copied.| Method Detail |
|---|
public MorphGradientFill add(MorphGradient aGradient)
aGradient - an MorphGradient object. Must not be null.
public GradientType getType()
public void setType(GradientType gradientType)
gradientType - either LINEAR or RADIAL.public CoordTransform getStartTransform()
public CoordTransform getEndTransform()
public List<MorphGradient> getGradients()
public void setStartTransform(CoordTransform matrix)
matrix - the starting coordinate transform. Must not be null.public void setEndTransform(CoordTransform matrix)
matrix - the ending coordinate transform. Must not be null.public void setGradients(List<MorphGradient> list)
list - a list of MorphGradient objects. Must not be null.public MorphGradientFill 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 | |||||||||