class TransparencyAttributesRetained extends NodeComponentRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
DST_BLEND_FUNCTION_CHANGED |
(package private) int |
dstBlendFunction |
(package private) int |
isDirty |
(package private) static int |
MODE_CHANGED |
(package private) static int |
SRC_BLEND_FUNCTION_CHANGED |
(package private) int |
srcBlendFunction |
(package private) float |
transparency |
(package private) int |
transparencyMode |
(package private) static int |
VALUE_CHANGED |
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, usersDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
TransparencyAttributesRetained() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
createMirrorObject()
Creates and initializes a mirror object, point the mirror object
to the retained object if the object is not editable
|
(package private) boolean |
equivalent(TransparencyAttributesRetained tr) |
(package private) int |
getDstBlendFunction()
Retrieves this appearance's destination blend function.
|
(package private) int |
getSrcBlendFunction()
Retrieves this appearance's source blend function.
|
(package private) float |
getTransparency()
Retrieves this appearance's transparency.
|
(package private) int |
getTransparencyMode()
Gets the transparency mode for this
appearance component object.
|
(package private) void |
handleFrequencyChange(int bit) |
(package private) void |
initDstBlendFunction(int blendFunction)
Sets the destination blend function used in blended transparency
and antialiasing operations.
|
(package private) void |
initMirrorObject()
Initializes a mirror object, point the mirror object to the retained
object if the object is not editable
|
(package private) void |
initSrcBlendFunction(int blendFunction)
Sets the source blend function used in blended transparency
and antialiasing operations.
|
(package private) void |
initTransparency(float transparency)
Sets this appearance's transparency.
|
(package private) void |
initTransparencyMode(int transparencyMode)
Sets the transparency mode for this
appearance component object.
|
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr) |
protected void |
set(TransparencyAttributesRetained transp) |
(package private) void |
setDstBlendFunction(int blendFunction)
Sets the destination blend function used in blended transparency
and antialiasing operations and sends a message notifying the
interested structures of the change.
|
(package private) void |
setSrcBlendFunction(int blendFunction)
Sets the source blend function used in blended transparency
and antialiasing operations and sends a message notifying the
interested structures of the change.
|
(package private) void |
setTransparency(float transparency)
Sets this appearance's transparency and sends a message notifying
the interested structures of the change.
|
(package private) void |
setTransparencyMode(int transparencyMode)
Sets the transparency mode for this
appearance component object and sends a message notifying
the interested structures of the change.
|
(package private) void |
updateMirrorObject(int component,
java.lang.Object value)
Update the "component" field of the mirror object with the
given "value"
|
(package private) void |
updateNative(Context ctx,
float alpha,
int geometryType,
int polygonMode,
boolean lineAA,
boolean pointAA) |
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLiveclearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traversegetIdxUsed, incIdxUsedstatic final int MODE_CHANGED
static final int VALUE_CHANGED
static final int SRC_BLEND_FUNCTION_CHANGED
static final int DST_BLEND_FUNCTION_CHANGED
int isDirty
int transparencyMode
float transparency
int srcBlendFunction
int dstBlendFunction
final void initTransparencyMode(int transparencyMode)
transparencyMode - the transparency mode to be used, one of
NONE, FASTEST, NICEST,
SCREEN_DOOR, or BLENDEDfinal void setTransparencyMode(int transparencyMode)
transparencyMode - the transparency mode to be used, one of
FASTEST, NICEST,
SCREEN_DOOR, or BLENDEDfinal int getTransparencyMode()
final void initTransparency(float transparency)
transparency - the appearance's transparency
in the range [0.0, 1.0] with 0.0 being
fully opaque and 1.0 being fully transparentfinal void setTransparency(float transparency)
transparency - the appearance's transparency
in the range [0.0, 1.0] with 0.0 being
fully opaque and 1.0 being fully transparentfinal float getTransparency()
final void initSrcBlendFunction(int blendFunction)
BLEND_SRC_ALPHA.blendFunction - the blend function to be used for the source
color, one of BLEND_ZERO, BLEND_ONE,
BLEND_SRC_ALPHA, or BLEND_ONE_MINUS_SRC_ALPHA.final void setSrcBlendFunction(int blendFunction)
BLEND_SRC_ALPHA.blendFunction - the blend function to be used for the source
color, one of BLEND_ZERO, BLEND_ONE,
BLEND_SRC_ALPHA, or BLEND_ONE_MINUS_SRC_ALPHA.final int getSrcBlendFunction()
final void initDstBlendFunction(int blendFunction)
BLEND_ONE_MINUS_SRC_ALPHA.blendFunction - the blend function to be used for the destination
color, one of BLEND_ZERO, BLEND_ONE,
BLEND_SRC_ALPHA, or BLEND_ONE_MINUS_SRC_ALPHA.final void setDstBlendFunction(int blendFunction)
BLEND_ONE_MINUS_SRC_ALPHA.blendFunction - the blend function to be used for the destination
color, one of BLEND_ZERO, BLEND_ONE,
BLEND_SRC_ALPHA, or BLEND_ONE_MINUS_SRC_ALPHA.final int getDstBlendFunction()
void createMirrorObject()
createMirrorObject in class NodeComponentRetainedvoid updateNative(Context ctx, float alpha, int geometryType, int polygonMode, boolean lineAA, boolean pointAA)
void initMirrorObject()
initMirrorObject in class NodeComponentRetainedvoid updateMirrorObject(int component,
java.lang.Object value)
updateMirrorObject in class NodeComponentRetainedboolean equivalent(TransparencyAttributesRetained tr)
protected void set(TransparencyAttributesRetained transp)
final void sendMessage(int attrMask,
java.lang.Object attr)
void handleFrequencyChange(int bit)
handleFrequencyChange in class SceneGraphObjectRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.