graphics.html
来自「API資料大全」· HTML 代码 · 共 1,336 行 · 第 1/5 页
HTML
1,336 行
</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="../../java/awt/Graphics.html#drawBytes(byte[], int, int, int, int)">drawBytes</A></B>(byte[] data, int offset, int length, int x, int y)</CODE><BR> Draws the text given by the specified byte array, using this graphics context's current font and color.</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="../../java/awt/Graphics.html#drawChars(char[], int, int, int, int)">drawChars</A></B>(char[] data, int offset, int length, int x, int y)</CODE><BR> Draws the text given by the specified character array, using this graphics context's current font and color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> img, int x, int y, <A HREF="../../java/awt/Color.html">Color</A> bgcolor, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified image as is currently available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> img, int x, int y, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified image as is currently available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> img, int x, int y, int width, int height, <A HREF="../../java/awt/Color.html">Color</A> bgcolor, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified image as has already been scaled to fit inside the specified rectangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> img, int x, int y, int width, int height, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified image as has already been scaled to fit inside the specified rectangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, <A HREF="../../java/awt/Color.html">Color</A> bgcolor, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../java/awt/Image.html">Image</A> img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, <A HREF="../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawLine(int, int, int, int)">drawLine</A></B>(int x1, int y1, int x2, int y2)</CODE><BR> Draws a line, using the current color, between the points <code>(x1, y1)</code> and <code>(x2, y2)</code> in this graphics context's coordinate system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawOval(int, int, int, int)">drawOval</A></B>(int x, int y, int width, int height)</CODE><BR> Draws the outline of an oval.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawPolygon(int[], int[], int)">drawPolygon</A></B>(int[] xPoints, int[] yPoints, int nPoints)</CODE><BR> Draws a closed polygon defined by arrays of <i>x</i> and <i>y</i> coordinates.</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="../../java/awt/Graphics.html#drawPolygon(java.awt.Polygon)">drawPolygon</A></B>(<A HREF="../../java/awt/Polygon.html">Polygon</A> p)</CODE><BR> Draws the outline of a polygon defined by the specified <code>Polygon</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawPolyline(int[], int[], int)">drawPolyline</A></B>(int[] xPoints, int[] yPoints, int nPoints)</CODE><BR> Draws a sequence of connected lines defined by arrays of <i>x</i> and <i>y</i> coordinates.</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="../../java/awt/Graphics.html#drawRect(int, int, int, int)">drawRect</A></B>(int x, int y, int width, int height)</CODE><BR> Draws the outline of the specified rectangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawRoundRect(int, int, int, int, int, int)">drawRoundRect</A></B>(int x, int y, int width, int height, int arcWidth, int arcHeight)</CODE><BR> Draws an outlined round-cornered rectangle using this graphics context's current color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawString(java.text.AttributedCharacterIterator, int, int)">drawString</A></B>(<A HREF="../../java/text/AttributedCharacterIterator.html">AttributedCharacterIterator</A> iterator, int x, int y)</CODE><BR> Draws the text given by the specified iterator, using this graphics context's current color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#drawString(java.lang.String, int, int)">drawString</A></B>(<A HREF="../../java/lang/String.html">String</A> str, int x, int y)</CODE><BR> Draws the text given by the specified string, using this graphics context's current font and color.</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="../../java/awt/Graphics.html#fill3DRect(int, int, int, int, boolean)">fill3DRect</A></B>(int x, int y, int width, int height, boolean raised)</CODE><BR> Paints a 3-D highlighted rectangle filled with the current color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#fillArc(int, int, int, int, int, int)">fillArc</A></B>(int x, int y, int width, int height, int startAngle, int arcAngle)</CODE><BR> Fills a circular or elliptical arc covering the specified rectangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#fillOval(int, int, int, int)">fillOval</A></B>(int x, int y, int width, int height)</CODE><BR> Fills an oval bounded by the specified rectangle with the current color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/awt/Graphics.html#fillPolygon(int[], int[], int)">fillPolygon</A></B>(int[] xPoints, int[] yPoints, int nPoints)</CODE><BR> Fills a closed polygon defined by arrays of <i>x</i> and <i>y</i> coordinates.</TD></TR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?