|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.button.ButtonColorTransform
public final class ButtonColorTransform
ButtonColorTransform defines the colour transform that is applied to each shape that is used to draw a button.
This class is only used in conjunction with DefineButton
. The
DefineButton2
class allows colour transforms to be specified in the
ButtonRecord object that identifies each shape that is displayed for a given
button state.
DefineButton
,
DefineButton2
Constructor Summary | |
---|---|
ButtonColorTransform(ButtonColorTransform object)
Creates and initialises a ButtonColorTransform object using the values copied from another ButtonColorTransform object. |
|
ButtonColorTransform(int uid,
ColorTransform cxform)
Creates a ButtonColorTransform object with a colour transform for the specified button. |
|
ButtonColorTransform(SWFDecoder coder,
Context context)
Creates and initialises a ButtonColorTransform object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
ButtonColorTransform |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
ColorTransform |
getColorTransform()
Get the colour transform that will be applied to the button. |
int |
getIdentifier()
Get the unique identifier of the button that this object applies to. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setColorTransform(ColorTransform cxform)
Sets the colour transform that will be applied to the button. |
void |
setIdentifier(int uid)
Sets the identifier of the button that the transform applies to. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ButtonColorTransform(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 ButtonColorTransform(int uid, ColorTransform cxform)
uid
- the unique identifier of a button that this object applies to.
Must be in the range 1..65535.cxform
- an ColorTransform object that will be applied to the button.public ButtonColorTransform(ButtonColorTransform object)
object
- a ButtonColorTransform object from which the values will be
copied.Method Detail |
---|
public int getIdentifier()
public ColorTransform getColorTransform()
public void setIdentifier(int uid)
uid
- the unique identifier of the button that the colour transform
will be applied to. Must be in the range 1..65535.public void setColorTransform(ColorTransform cxform)
cxform
- the colour transform object. Must not be null.public ButtonColorTransform copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- 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 SWFEncodeable
coder
- 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 |