nodes.html
来自「永中OFFICE二次开发帮助文档」· HTML 代码 · 共 494 行 · 第 1/2 页
HTML
494 行
<A NAME="deletePoint(int)"><!-- --></A><H3>
deletePoint</H3>
<PRE>
public void <B>deletePoint</B>(int index)</PRE>
<DL>
<DD>删除顶点。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 线条的索引 <p> <b>例子:</b> <pre> ActiveShapeRange.getNodes().deletePoint(1); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数越界</DL>
</DD>
</DL>
<HR>
<A NAME="deleteSegment(int)"><!-- --></A><H3>
deleteSegment</H3>
<PRE>
public void <B>deleteSegment</B>(int index)</PRE>
<DL>
<DD>删除线段。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 线条索引 <p> <b>例子:</b> <pre> ActiveShapeRange.getNodes().deleteSegment(2) ; </pe>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数越界</DL>
</DD>
</DL>
<HR>
<A NAME="editPoints()"><!-- --></A><H3>
editPoints</H3>
<PRE>
public void <B>editPoints</B>()</PRE>
<DL>
<DD>进入编辑状态。<p><b>例子:</b><pre> ActiveShapeRange.getNodes().editPoints();</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="exitEditPoints()"><!-- --></A><H3>
exitEditPoints</H3>
<PRE>
public void <B>exitEditPoints</B>()</PRE>
<DL>
<DD>退出编辑状态。<p><b>例子:</b><pre> ActiveShapeRange.getNodes().exitEditPoints();</pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="insert(int, double, double)"><!-- --></A><H3>
insert</H3>
<PRE>
public void <B>insert</B>(int index,
double x,
double y)</PRE>
<DL>
<DD>插入顶点。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 线条的索引<DD><CODE>x</CODE> - 新插入点x坐标值<DD><CODE>y</CODE> - 新插入点y坐标值 <p> <b>例子:</b> <pre> ActiveShapeRange.getNodes().insert(0,330.75,392.25); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数index越界</DL>
</DD>
</DL>
<HR>
<A NAME="openCurve()"><!-- --></A><H3>
openCurve</H3>
<PRE>
public void <B>openCurve</B>()</PRE>
<DL>
<DD>开放路径。 <p> <b>例子:</b> <pre> ActiveShapeRange.getNodes().openCurve(); </pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setEditingType(int, int)"><!-- --></A><H3>
setEditingType</H3>
<PRE>
public void <B>setEditingType</B>(int index,
int type)</PRE>
<DL>
<DD>设置顶点的类型。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 线条索引<DD><CODE>type</CODE> - 顶点的类型 <pre> ShapeConstants.EDITING_AUTO = 自动顶点 ShapeConstants.EDITING_SYMMETRIC = 平滑顶点 ShapeConstants.EDITING_SMOOTH = 直线点 ShapeConstants.EDITING_CORNER = 角部顶点 </pre> <b>例子:</b> <pre> ActiveShapeRange.getNodes().setEditingType(1,ShapeConstants.EDITING_SMOOTH); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数index或type越界</DL>
</DD>
</DL>
<HR>
<A NAME="setPosition(int, int, double, double)"><!-- --></A><H3>
setPosition</H3>
<PRE>
public void <B>setPosition</B>(int index,
int controlType,
double x,
double y)</PRE>
<DL>
<DD>设置线条的位置。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 线条的索引<DD><CODE>controlType</CODE> - 控制点类型 -1 左控制点 0 顶点 1 右控制点<DD><CODE>x</CODE> - 移动点X坐标值<DD><CODE>y</CODE> - 移动点Y坐标值 <p> <b>例子:</b> <pre> ActiveShapeRange.getNodes().setPosition(0,1,360.73,68.50); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数index或controlType越界</DL>
</DD>
</DL>
<HR>
<A NAME="setSegmentType(int, int)"><!-- --></A><H3>
setSegmentType</H3>
<PRE>
public void <B>setSegmentType</B>(int index,
int type)</PRE>
<DL>
<DD>设置线段类型
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 线条索引<DD><CODE>type</CODE> - 0 抻直弓形 1 曲线段 <p> <b>例子:</b> <pre> ActiveShapeRange.getNodes().setSegmentType(3,0) ; </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数index或type越界</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/LineFormat.html" title="application.workbooks.workbook.shapes 中的类"><B>上一个类</B></A>
<A HREF="../../../../application/workbooks/workbook/shapes/PatternFormat.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/Nodes.html" target="_top"><B>框架</B></A>
<A HREF="Nodes.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 + =
减小字号Ctrl + -
显示快捷键?