📄 transparencyattributes.html
字号:
int dstBlendFunction)</PRE><DL><DD>Construct TransparencyAttributes object with specified values.<P><DL><DT><B>Parameters:</B><DD><CODE>tMode</CODE> - the transparency mode<DD><CODE>tVal</CODE> - the transparency value<DD><CODE>srcBlendFunction</CODE> - the blend function to be used for the source color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, <code>BLEND_ONE_MINUS_SRC_ALPHA</code>, <code>BLEND_DST_COLOR</code>, or <code>BLEND_ONE_MINUS_DST_COLOR</code>.<DD><CODE>dstBlendFunction</CODE> - the blend function to be used for the destination color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, <code>BLEND_ONE_MINUS_SRC_ALPHA</code>, <code>BLEND_SRC_COLOR</code>, or <code>BLEND_ONE_MINUS_SRC_COLOR</code>.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>tMode</code> is a value other than <code>NONE</code>, <code>FASTEST</code>, <code>NICEST</code>, <code>SCREEN_DOOR</code>, or <code>BLENDED</code><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>srcBlendFunction</code> or <code>dstBlendFunction</code> is a value other than one of the supported functions listed above.<DT><B>Since:</B></DT> <DD>Java 3D 1.2</DD></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setTransparencyMode(int)"><!-- --></A><H3>setTransparencyMode</H3><PRE>public void <B>setTransparencyMode</B>(int transparencyMode)</PRE><DL><DD>Sets the transparency mode for this appearance component object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>transparencyMode</CODE> - the transparency mode to be used, one of <code>NONE</code>, <code>FASTEST</code>, <code>NICEST</code>, <code>SCREEN_DOOR</code>, or <code>BLENDED</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>transparencyMode</code> is a value other than <code>NONE</code>, <code>FASTEST</code>, <code>NICEST</code>, <code>SCREEN_DOOR</code>, or <code>BLENDED</code></DL></DD></DL><HR><A NAME="getTransparencyMode()"><!-- --></A><H3>getTransparencyMode</H3><PRE>public int <B>getTransparencyMode</B>()</PRE><DL><DD>Gets the transparency mode for this appearance component object.<P><DD><DL><DT><B>Returns:</B><DD>transparencyMode the transparency mode<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setTransparency(float)"><!-- --></A><H3>setTransparency</H3><PRE>public void <B>setTransparency</B>(float transparency)</PRE><DL><DD>Sets this appearance's transparency.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>transparency</CODE> - the appearance's transparency in the range [0.0, 1.0] with 0.0 being fully opaque and 1.0 being fully transparent<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="getTransparency()"><!-- --></A><H3>getTransparency</H3><PRE>public float <B>getTransparency</B>()</PRE><DL><DD>Retrieves this appearance's transparency.<P><DD><DL><DT><B>Returns:</B><DD>the appearance's transparency<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="setSrcBlendFunction(int)"><!-- --></A><H3>setSrcBlendFunction</H3><PRE>public void <B>setSrcBlendFunction</B>(int blendFunction)</PRE><DL><DD>Sets the source blend function used in blended transparency and antialiasing operations. The source function specifies the factor that is multiplied by the source color; this value is added to the product of the destination factor and the destination color. The default source blend function is <code>BLEND_SRC_ALPHA</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>blendFunction</CODE> - the blend function to be used for the source color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, <code>BLEND_ONE_MINUS_SRC_ALPHA</code>, <code>BLEND_DST_COLOR</code>, or <code>BLEND_ONE_MINUS_DST_COLOR</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>blendFunction</code> is a value other than one of the supported functions listed above.<DT><B>Since:</B></DT> <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="getSrcBlendFunction()"><!-- --></A><H3>getSrcBlendFunction</H3><PRE>public int <B>getSrcBlendFunction</B>()</PRE><DL><DD>Gets the source blend function for this TransparencyAttributes object.<P><DD><DL><DT><B>Returns:</B><DD>the source blend function.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT> <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="setDstBlendFunction(int)"><!-- --></A><H3>setDstBlendFunction</H3><PRE>public void <B>setDstBlendFunction</B>(int blendFunction)</PRE><DL><DD>Sets the destination blend function used in blended transparency and antialiasing operations. The destination function specifies the factor that is multiplied by the destination color; this value is added to the product of the source factor and the source color. The default destination blend function is <code>BLEND_ONE_MINUS_SRC_ALPHA</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>blendFunction</CODE> - the blend function to be used for the destination color, one of <code>BLEND_ZERO</code>, <code>BLEND_ONE</code>, <code>BLEND_SRC_ALPHA</code>, <code>BLEND_ONE_MINUS_SRC_ALPHA</code>, <code>BLEND_SRC_COLOR</code>, or <code>BLEND_ONE_MINUS_SRC_COLOR</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>blendFunction</code> is a value other than one of the supported functions listed above.<DT><B>Since:</B></DT> <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="getDstBlendFunction()"><!-- --></A><H3>getDstBlendFunction</H3><PRE>public int <B>getDstBlendFunction</B>()</PRE><DL><DD>Gets the destination blend function for this TransparencyAttributes object.<P><DD><DL><DT><B>Returns:</B><DD>the destination blend function.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT> <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="cloneNodeComponent()"><!-- --></A><H3>cloneNodeComponent</H3><PRE>public <A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A> <B>cloneNodeComponent</B>()</PRE><DL><DD><B>Deprecated.</B> <I>replaced with cloneNodeComponent(boolean forceDuplicate)</I><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/NodeComponent.html#cloneNodeComponent()">cloneNodeComponent</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A></CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/j3d/TransformInterpolator.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/TransparencyInterpolator.html" title="class in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/media/j3d/TransparencyAttributes.html" target="_top"><B>FRAMES</B></A> <A HREF="TransparencyAttributes.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -