📄 threedformat.html
字号:
Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"当前对象的三维颜色为"+thdformat.getSideColor()) ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getType()"><!-- --></A><H3>
getType</H3>
<PRE>
public int <B>getType</B>()</PRE>
<DL>
<DD>获取3D类型。
<P>
<DD><DL>
<DT><B>返回:</B><DD>3D类型,为整型数值,返回 0-19之间的数值 如果没有三维样式会返回 -1<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"当前对象为第"+thdformat.getType()+"种3D样式") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="rotateDown()"><!-- --></A><H3>
rotateDown</H3>
<PRE>
public void <B>rotateDown</B>()</PRE>
<DL>
<DD>设置三维效果向下旋转。<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.rotateDown() ;</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="rotateLeft()"><!-- --></A><H3>
rotateLeft</H3>
<PRE>
public void <B>rotateLeft</B>()</PRE>
<DL>
<DD>设置三维效果向左旋转。<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.rotateLeft() ;</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="rotateRight()"><!-- --></A><H3>
rotateRight</H3>
<PRE>
public void <B>rotateRight</B>()</PRE>
<DL>
<DD>设置三维效果向右旋转。<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.rotateRight() ;</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="rotateUp()"><!-- --></A><H3>
rotateUp</H3>
<PRE>
public void <B>rotateUp</B>()</PRE>
<DL>
<DD>设置三维效果向上旋转。<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.rotateUp() ;</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="set3DIsPerspective(boolean)"><!-- --></A><H3>
set3DIsPerspective</H3>
<PRE>
public void <B>set3DIsPerspective</B>(boolean isPerspective)</PRE>
<DL>
<DD>设置是否有透视效果
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>isPerspective</CODE> - boolean型 如为true 有透视效果 如为false 没有透视效果<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.set3DIsPerspective(true) ; </pre></DL>
</DD>
</DL>
<HR>
<A NAME="set3DLightness(int)"><!-- --></A><H3>
set3DLightness</H3>
<PRE>
public void <B>set3DLightness</B>(int type)</PRE>
<DL>
<DD>设置照明角度三种类型
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>type</CODE> - int型 如为0 明亮 如为1 普通 如为2 阴暗 <p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.set3DLightness(1) ; </pre></DL>
</DD>
</DL>
<HR>
<A NAME="set3DOff()"><!-- --></A><H3>
set3DOff</H3>
<PRE>
public void <B>set3DOff</B>()</PRE>
<DL>
<DD>无三维效果。<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.set3DOff() ;</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="set3DStuffType(int)"><!-- --></A><H3>
set3DStuffType</H3>
<PRE>
public void <B>set3DStuffType</B>(int type)</PRE>
<DL>
<DD>设置表面效果四种类型
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>int型</CODE> - 如为0 透明框架 如为1 亚光效果 如为2 塑料效果 如为3 金属效果,否则不重新设置任何效果,函数直接退出。 <p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.set3DStuffType(2) ; </pre></DL>
</DD>
</DL>
<HR>
<A NAME="setDepth(float)"><!-- --></A><H3>
setDepth</H3>
<PRE>
public void <B>setDepth</B>(float depth)</PRE>
<DL>
<DD>设置3D的深度。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>depth</CODE> - 3D的深度,为float型,范围在-600~9600磅之间<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.setDepth(80.80f) ;</pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数越界</DL>
</DD>
</DL>
<HR>
<A NAME="setDepthType(int)"><!-- --></A><H3>
setDepthType</H3>
<PRE>
public void <B>setDepthType</B>(int type)</PRE>
<DL>
<DD>设置3D的深度类型。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>type</CODE> - 3D的深度类型, 只能取以下5个值之一:<pre> 0表示设深度为0磅; 1表示设深度为36磅; 2表示设深度为72磅; 3表示设深度为144磅; 4表示设深度为288磅; 5表示设深度为无限;</pre><p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.setDepthType(3) ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="setDirectionType(int)"><!-- --></A><H3>
setDirectionType</H3>
<PRE>
public void <B>setDirectionType</B>(int type)</PRE>
<DL>
<DD>设置3D的方向。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>type</CODE> - 3D的方向类型,为整型数值,取值范围为0-8<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.setDirectionType(3) ;</pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 参数越界</DL>
</DD>
</DL>
<HR>
<A NAME="setLightType(int)"><!-- --></A><H3>
setLightType</H3>
<PRE>
public void <B>setLightType</B>(int threedLightType)</PRE>
<DL>
<DD>设置3D光照类型。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>threedLightType</CODE> - 3D光照类型,为整型数值,取值范围为0-8<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.setLightType(4) ;</pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 参数越界</DL>
</DD>
</DL>
<HR>
<A NAME="setSideColor(java.awt.Color, int)"><!-- --></A><H3>
setSideColor</H3>
<PRE>
public void <B>setSideColor</B>(java.awt.Color sideColor,
int schemeIndex)</PRE>
<DL>
<DD>设置三维颜色。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>sideColor</CODE> - 三维颜色<DD><CODE>schemeIndex</CODE> - 颜色配置索引值<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.setSideColor(java.awt.Color.red,-1) ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="setType(int)"><!-- --></A><H3>
setType</H3>
<PRE>
public void <B>setType</B>(int threedType)</PRE>
<DL>
<DD>设置3D类型。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>threedType</CODE> - 3D类型,为整型数值,取值范围为0-19 0为三维样式 1 19为三维样式 20<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.setType(10) ;</pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 参数越界</DL>
</DD>
</DL>
<HR>
<A NAME="toggle()"><!-- --></A><H3>
toggle</H3>
<PRE>
public void <B>toggle</B>()</PRE>
<DL>
<DD>切换当前的三维效果显示状态。<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.toggle() ;</pre>
<P>
<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="跳过导航链接"></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>概述</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>类</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</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="../../../../application/workbooks/workbook/shapes/TextFrame.html" title="application.workbooks.workbook.shapes 中的类"><B>上一个类</B></A>
下一个类</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?application/workbooks/workbook/shapes/ThreeDFormat.html" target="_top"><B>框架</B></A>
<A HREF="ThreeDFormat.html" target="_top"><B>无框架</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
摘要: 嵌套 | 字段 | 构造方法 | <A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息: 字段 | 构造方法 | <A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
版权所有 2001-2006 无锡永中科技有限公司
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -