📄 polygon.html
字号:
<TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Polygon(quicktime.qd.QDGraphics)"><!-- --></A><H3>Polygon</H3><PRE>public <B>Polygon</B>(<A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> g) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Allocates a new empty Polygon. <BR><BR><b>QuickDraw::OpenPoly</b><BR><DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - the port which the open polygon will record operations from</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>() throws <A HREF="../../quicktime/qd/QDException.html">QDException</A></PRE><DL><DD>Completes the collection of lines that define the polygon. <BR><BR><b>QuickDraw::ClosePoly</b><BR><DD><DL></DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public int <B>getSize</B>()</PRE><DL><DD>Returns size of the Polygon.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../quicktime/util/QTHandleRef.html#getSize()">getSize</A></CODE> in class <CODE><A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A></CODE></DL></DD><DD>Following copied from class: <CODE>quicktime.util.QTHandleRef</CODE></DD><DD><DL><DT><B>Returns:</B><DD>the size of the handle</DL></DD></DL><HR><A NAME="getPolyBBox()"><!-- --></A><H3>getPolyBBox</H3><PRE>public <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> <B>getPolyBBox</B>()</PRE><DL><DD>Returns a copy of the bounding rectangle of the Polygon.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a rect</DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> <B>getBounds</B>()</PRE><DL><DD>Returns a copy of the bounding rectangle of the Polygon.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a rect</DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public <A HREF="../../quicktime/qd/Polygon.html">Polygon</A> <B>copy</B>() throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Copies the mathematical structure of the implicit Polygon into a newly created Polygon.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A new Polygon copy.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Copies the mathematical structure of the implicit Polygon into a newly created Polygon.</DL></DD><DD><DL><DT><B>Returns:</B><DD>A new Polygon copy.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Print information about this object.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../quicktime/util/QTHandleRef.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representing this Polygon object</DL></DD></DL><HR><A NAME="offset(int, int)"><!-- --></A><H3>offset</H3><PRE>public void <B>offset</B>(int dh, int dv) throws <A HREF="../../quicktime/qd/QDException.html">QDException</A></PRE><DL><DD>offset moves the Polygon by adding the value you specify in the dh parameter to the horizontal coordinates of its points, and by adding the value you specify in the dv parameter to the vertical coordinates of all points of its boundary. If the values of dh and dv are positive, the movement is to the right and down; if either is negative, the corresponding movement is in the opposite direction. The Polygon retains its size and shape. This doesn誸 affect the screen unless you subsequently redraw the polygon. <BR><BR><b>QuickDraw::OffsetPoly()</b><BR><BR><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>poly</CODE> - Polygon to offset.<DD><CODE>dh</CODE> - The horizontal distance to move the polygon.<DD><CODE>dv</CODE> - The vertical distance to move the polygon.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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="class-use/Polygon.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../quicktime/qd/PixMap.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/qd/QDColor.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Polygon.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -