graphics.html
来自「API資料大全」· HTML 代码 · 共 1,220 行 · 第 1/5 页
HTML
1,220 行
<BR> Prints this component.</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>Component.</B><B><A HREF="../../../java/awt/Component.html#printAll(java.awt.Graphics)">printAll</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> 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> 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> g)</CODE><BR> Paints the container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#update(java.awt.Graphics)">update</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> Updates the container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#print(java.awt.Graphics)">print</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> Prints the container.</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>Container.</B><B><A HREF="../../../java/awt/Container.html#paintComponents(java.awt.Graphics)">paintComponents</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> 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> 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> g)</CODE><BR> 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> 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> g)</CODE><BR> 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> 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> g)</CODE><BR> 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> <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> str, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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> str, int beginIndex, int limit, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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[] chars, int beginIndex, int limit, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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> ci, int beginIndex, int limit, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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> str, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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> str, int beginIndex, int limit, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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[] chars, int beginIndex, int limit, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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> ci, int beginIndex, int limit, <A HREF="../../../java/awt/Graphics.html">Graphics</A> context)</CODE><BR> 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> <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> context)</CODE><BR> Returns the bounds for the character with the maximum bounds in the specified <code>Graphics</code> context.</TD></TR></TABLE> <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> <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> <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> This method returns a <A HREF="../../../java/awt/Graphics2D.html"><CODE>Graphics2D</CODE></A>, but is here for backwards compatibility.</TD></TR></TABLE> <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> <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> 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> graphics, <A HREF="../../../java/awt/print/PageFormat.html">PageFormat</A> pageFormat, int pageIndex)</CODE><BR> 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> <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> <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 + -
显示快捷键?