📄 threedformat.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0) on Fri Feb 29 09:23:17 CST 2008 -->
<META http-equiv="Content-Type" content="text/html; charset=GB2312">
<TITLE>
ThreeDFormat (永中集成Office二次开发API文档)
</TITLE>
<META NAME="date" CONTENT="2008-02-29">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ThreeDFormat (永中集成Office二次开发API文档)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_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_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
application.workbooks.workbook.shapes</FONT>
<BR>
类 ThreeDFormat</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="继承者 "><B>application.workbooks.workbook.shapes.ThreeDFormat</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>ThreeDFormat</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
该类定义了对三维格式对象进行操作的一些方法,如设置三维格式的深度,方向,照明角度等。 <p>
<P>
<P>
<HR>
<P>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>方法摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#get3DIsPerspective()">get3DIsPerspective</A></B>()</CODE>
<BR>
返回是否有透视效果</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#getDepth()">getDepth</A></B>()</CODE>
<BR>
获取3D的深度。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#getDirectionType()">getDirectionType</A></B>()</CODE>
<BR>
获取3D的方向。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#getLightType()">getLightType</A></B>()</CODE>
<BR>
获取3D光照类型。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.Color</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#getSideColor()">getSideColor</A></B>()</CODE>
<BR>
获取三维颜色。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#getType()">getType</A></B>()</CODE>
<BR>
获取3D类型。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#rotateDown()">rotateDown</A></B>()</CODE>
<BR>
设置三维效果向下旋转。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#rotateLeft()">rotateLeft</A></B>()</CODE>
<BR>
设置三维效果向左旋转。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#rotateRight()">rotateRight</A></B>()</CODE>
<BR>
设置三维效果向右旋转。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#rotateUp()">rotateUp</A></B>()</CODE>
<BR>
设置三维效果向上旋转。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#set3DIsPerspective(boolean)">set3DIsPerspective</A></B>(boolean isPerspective)</CODE>
<BR>
设置是否有透视效果</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#set3DLightness(int)">set3DLightness</A></B>(int type)</CODE>
<BR>
设置照明角度三种类型</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#set3DOff()">set3DOff</A></B>()</CODE>
<BR>
无三维效果。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#set3DStuffType(int)">set3DStuffType</A></B>(int type)</CODE>
<BR>
设置表面效果四种类型</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#setDepth(float)">setDepth</A></B>(float depth)</CODE>
<BR>
设置3D的深度。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#setDepthType(int)">setDepthType</A></B>(int type)</CODE>
<BR>
设置3D的深度类型。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#setDirectionType(int)">setDirectionType</A></B>(int type)</CODE>
<BR>
设置3D的方向。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#setLightType(int)">setLightType</A></B>(int threedLightType)</CODE>
<BR>
设置3D光照类型。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#setSideColor(java.awt.Color, int)">setSideColor</A></B>(java.awt.Color sideColor,
int schemeIndex)</CODE>
<BR>
设置三维颜色。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#setType(int)">setType</A></B>(int threedType)</CODE>
<BR>
设置3D类型。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/shapes/ThreeDFormat.html#toggle()">toggle</A></B>()</CODE>
<BR>
切换当前的三维效果显示状态。</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>从类 java.lang.Object 继承的方法</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ 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>方法详细信息</B></FONT></TH>
</TR>
</TABLE>
<A NAME="get3DIsPerspective()"><!-- --></A><H3>
get3DIsPerspective</H3>
<PRE>
public boolean <B>get3DIsPerspective</B>()</PRE>
<DL>
<DD>返回是否有透视效果
<P>
<DD><DL>
<DT><B>返回:</B><DD>boolean型 如为true 有透视效果 如为false 没有透视效果 <p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; thdformat.get3DIsPerspective() ; </pre></DL>
</DD>
</DL>
<HR>
<A NAME="getDepth()"><!-- --></A><H3>
getDepth</H3>
<PRE>
public float <B>getDepth</B>()</PRE>
<DL>
<DD>获取3D的深度。
<P>
<DD><DL>
<DT><B>返回:</B><DD>3D的深度,为float型<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"当前对象的3D深度为"+" "+thdformat.getDepth()+"磅") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getDirectionType()"><!-- --></A><H3>
getDirectionType</H3>
<PRE>
public int <B>getDirectionType</B>()</PRE>
<DL>
<DD>获取3D的方向。
<P>
<DD><DL>
<DT><B>返回:</B><DD>3D方向类型 如为-1 表示无3D方向<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"当前对象的3D方向为第"+thdformat.getDirectionType()+"种类型") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getLightType()"><!-- --></A><H3>
getLightType</H3>
<PRE>
public int <B>getLightType</B>()</PRE>
<DL>
<DD>获取3D光照类型。
<P>
<DD><DL>
<DT><B>返回:</B><DD>3D光照类型,为整型数值,如有三维效果 返回0-8之间的值 如没有三维效果 返回-1<p><b>例子:</b><pre> Shape shape = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getShape("矩形 1") ; ThreeDFormat thdformat = shape.getThreeDFormat() ; javax.swing.JOptionPane.showMessageDialog(null,"当前对象的3D灯光效果为第"+thdformat.getLightType()+"类型") ;</pre></DL>
</DD>
</DL>
<HR>
<A NAME="getSideColor()"><!-- --></A><H3>
getSideColor</H3>
<PRE>
public java.awt.Color <B>getSideColor</B>()</PRE>
<DL>
<DD>获取三维颜色。
<P>
<DD><DL>
<DT><B>返回:</B><DD>三维颜色<p><b>例子:</b><pre>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -