graphics.html

来自「API資料大全」· HTML 代码 · 共 1,220 行 · 第 1/5 页

HTML
1,220
字号
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Component.</B><B><A HREF="../../../java/awt/Component.html#printAll(java.awt.Graphics)">printAll</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints this component and all of its subcomponents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Container.</B><B><A HREF="../../../java/awt/Container.html#paint(java.awt.Graphics)">paint</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints the container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Container.</B><B><A HREF="../../../java/awt/Container.html#update(java.awt.Graphics)">update</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Container.</B><B><A HREF="../../../java/awt/Container.html#print(java.awt.Graphics)">print</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints the container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Container.</B><B><A HREF="../../../java/awt/Container.html#paintComponents(java.awt.Graphics)">paintComponents</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints each of the components in this container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Container.</B><B><A HREF="../../../java/awt/Container.html#printComponents(java.awt.Graphics)">printComponents</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints each of the components in this container.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>ScrollPane.</B><B><A HREF="../../../java/awt/ScrollPane.html#printComponents(java.awt.Graphics)">printComponents</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints the component in this scroll pane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Canvas.</B><B><A HREF="../../../java/awt/Canvas.html#paint(java.awt.Graphics)">paint</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is called to repaint this canvas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/font/LineMetrics.html">LineMetrics</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getLineMetrics(java.lang.String, java.awt.Graphics)">getLineMetrics</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;str,               <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../java/awt/font/LineMetrics.html"><CODE>LineMetrics</CODE></A> object for the specified <code>String</code> in the specified <A HREF="../../../java/awt/Graphics.html"><CODE>Graphics</CODE></A> context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/font/LineMetrics.html">LineMetrics</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getLineMetrics(java.lang.String, int, int, java.awt.Graphics)">getLineMetrics</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;str,               int&nbsp;beginIndex,               int&nbsp;limit,               <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../java/awt/font/LineMetrics.html"><CODE>LineMetrics</CODE></A> object for the specified <code>String</code> in the specified <A HREF="../../../java/awt/Graphics.html"><CODE>Graphics</CODE></A> context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/font/LineMetrics.html">LineMetrics</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getLineMetrics(char[], int, int, java.awt.Graphics)">getLineMetrics</A></B>(char[]&nbsp;chars,               int&nbsp;beginIndex,               int&nbsp;limit,               <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../java/awt/font/LineMetrics.html"><CODE>LineMetrics</CODE></A> object for the specified character array in the specified <A HREF="../../../java/awt/Graphics.html"><CODE>Graphics</CODE></A> context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/font/LineMetrics.html">LineMetrics</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getLineMetrics(java.text.CharacterIterator, int, int, java.awt.Graphics)">getLineMetrics</A></B>(<A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A>&nbsp;ci,               int&nbsp;beginIndex,               int&nbsp;limit,               <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../java/awt/font/LineMetrics.html"><CODE>LineMetrics</CODE></A> object for the specified <A HREF="../../../java/text/CharacterIterator.html"><CODE>CharacterIterator</CODE></A> in the specified <A HREF="../../../java/awt/Graphics.html"><CODE>Graphics</CODE></A>  context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getStringBounds(java.lang.String, java.awt.Graphics)">getStringBounds</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;str,                <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds of the specified <code>String</code> in the specified <code>Graphics</code> context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getStringBounds(java.lang.String, int, int, java.awt.Graphics)">getStringBounds</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;str,                int&nbsp;beginIndex,                int&nbsp;limit,                <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds of the specified <code>String</code> in the specified <code>Graphics</code> context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getStringBounds(char[], int, int, java.awt.Graphics)">getStringBounds</A></B>(char[]&nbsp;chars,                int&nbsp;beginIndex,                int&nbsp;limit,                <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds of the specified array of characters in the specified <code>Graphics</code> context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getStringBounds(java.text.CharacterIterator, int, int, java.awt.Graphics)">getStringBounds</A></B>(<A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A>&nbsp;ci,                int&nbsp;beginIndex,                int&nbsp;limit,                <A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds of the characters indexed in the specified <code>CharacterIterator</code> in the specified <code>Graphics</code> context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>FontMetrics.</B><B><A HREF="../../../java/awt/FontMetrics.html#getMaxCharBounds(java.awt.Graphics)">getMaxCharBounds</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds for the character with the maximum bounds in the specified <code>Graphics</code> context.</TD></TR></TABLE>&nbsp;<P><A NAME="java.awt.image"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Graphics.html">Graphics</A> in <A HREF="../../../java/awt/image/package-summary.html">java.awt.image</A></FONT></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/image/package-summary.html">java.awt.image</A> that return <A HREF="../../../java/awt/Graphics.html">Graphics</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Graphics.html">Graphics</A></CODE></FONT></TD><TD><CODE><B>BufferedImage.</B><B><A HREF="../../../java/awt/image/BufferedImage.html#getGraphics()">getGraphics</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a <A HREF="../../../java/awt/Graphics2D.html"><CODE>Graphics2D</CODE></A>, but is here for backwards compatibility.</TD></TR></TABLE>&nbsp;<P><A NAME="java.awt.print"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Graphics.html">Graphics</A> in <A HREF="../../../java/awt/print/package-summary.html">java.awt.print</A></FONT></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/print/package-summary.html">java.awt.print</A> with parameters of type <A HREF="../../../java/awt/Graphics.html">Graphics</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B>Printable.</B><B><A HREF="../../../java/awt/print/Printable.html#print(java.awt.Graphics, java.awt.print.PageFormat, int)">print</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A>&nbsp;graphics,      <A HREF="../../../java/awt/print/PageFormat.html">PageFormat</A>&nbsp;pageFormat,      int&nbsp;pageIndex)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints the page at the specified index into the specified  <A HREF="../../../java/awt/Graphics.html"><CODE>Graphics</CODE></A> context in the specified format.</TD></TR></TABLE>&nbsp;<P><A NAME="java.beans"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Graphics.html">Graphics</A> in <A HREF="../../../java/beans/package-summary.html">java.beans</A></FONT></TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/beans/package-summary.html">java.beans</A> with parameters of type <A HREF="../../../java/awt/Graphics.html">Graphics</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?