📄 debuggraphics.html
字号:
<BR> Returns the time delay of drawing operation flashing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#getClip()">getClip</A></B>()</CODE><BR> Overrides <code>Graphics.getClip</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#getClipBounds()">getClipBounds</A></B>()</CODE><BR> Overrides <code>Graphics.getClipBounds</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#getColor()">getColor</A></B>()</CODE><BR> Returns the Color used for text drawing operations.</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><A HREF="../../javax/swing/DebugGraphics.html#getDebugOptions()">getDebugOptions</A></B>()</CODE><BR> Returns the current debugging options for this DebugGraphics.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/Font.html">Font</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#getFont()">getFont</A></B>()</CODE><BR> Returns the Font used for text drawing operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#getFontMetrics()">getFontMetrics</A></B>()</CODE><BR> Overrides <code>Graphics.getFontMetrics</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/awt/FontMetrics.html">FontMetrics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#getFontMetrics(java.awt.Font)">getFontMetrics</A></B>(<A HREF="../../java/awt/Font.html">Font</A> f)</CODE><BR> Overrides <code>Graphics.getFontMetrics</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#isDrawingBuffer()">isDrawingBuffer</A></B>()</CODE><BR> Returns the drawingBuffer value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/io/PrintStream.html">PrintStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#logStream()">logStream</A></B>()</CODE><BR> Returns the stream to which the DebugGraphics logs drawing operations.</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="../../javax/swing/DebugGraphics.html#setClip(int, int, int, int)">setClip</A></B>(int x, int y, int width, int height)</CODE><BR> Overrides <code>Graphics.setClip</code>.</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="../../javax/swing/DebugGraphics.html#setClip(java.awt.Shape)">setClip</A></B>(<A HREF="../../java/awt/Shape.html">Shape</A> clip)</CODE><BR> Overrides <code>Graphics.setClip</code>.</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="../../javax/swing/DebugGraphics.html#setColor(java.awt.Color)">setColor</A></B>(<A HREF="../../java/awt/Color.html">Color</A> aColor)</CODE><BR> Sets the color to be used for drawing and filling lines and shapes.</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="../../javax/swing/DebugGraphics.html#setDebugOptions(int)">setDebugOptions</A></B>(int options)</CODE><BR> Enables/disables diagnostic information about every graphics operation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#setFlashColor(java.awt.Color)">setFlashColor</A></B>(<A HREF="../../java/awt/Color.html">Color</A> flashColor)</CODE><BR> Sets the Color used to flash drawing operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#setFlashCount(int)">setFlashCount</A></B>(int flashCount)</CODE><BR> Sets the number of times that drawing operations will flash.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#setFlashTime(int)">setFlashTime</A></B>(int flashTime)</CODE><BR> Sets the time delay of drawing operation flashing.</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="../../javax/swing/DebugGraphics.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../java/awt/Font.html">Font</A> aFont)</CODE><BR> Sets the Font used for text drawing operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/DebugGraphics.html#setLogStream(java.io.PrintStream)">setLogStream</A></B>(<A HREF="../../java/io/PrintStream.html">PrintStream</A> stream)</CODE><BR> Sets the stream to which the DebugGraphics logs drawing operations.</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="../../javax/swing/DebugGraphics.html#setPaintMode()">setPaintMode</A></B>()</CODE><BR> Overrides <code>Graphics.setPaintMode</code>.</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="../../javax/swing/DebugGraphics.html#setXORMode(java.awt.Color)">setXORMode</A></B>(<A HREF="../../java/awt/Color.html">Color</A> aColor)</CODE><BR> Overrides <code>Graphics.setXORMode</code>.</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="../../javax/swing/DebugGraphics.html#translate(int, int)">translate</A></B>(int x, int y)</CODE><BR> Overrides <code>Graphics.translate</code>.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.Graphics"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.awt.<A HREF="../../java/awt/Graphics.html">Graphics</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/awt/Graphics.html#drawPolygon(java.awt.Polygon)">drawPolygon</A>, <A HREF="../../java/awt/Graphics.html#fillPolygon(java.awt.Polygon)">fillPolygon</A>, <A HREF="../../java/awt/Graphics.html#finalize()">finalize</A>, <A HREF="../../java/awt/Graphics.html#getClipBounds(java.awt.Rectangle)">getClipBounds</A>, <A HREF="../../java/awt/Graphics.html#getClipRect()">getClipRect</A>, <A HREF="../../java/awt/Graphics.html#hitClip(int, int, int, int)">hitClip</A>, <A HREF="../../java/awt/Graphics.html#toString()">toString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="LOG_OPTION"><!-- --></A><H3>LOG_OPTION</H3><PRE>public static final int <B>LOG_OPTION</B></PRE><DL><DD>Log graphics operations.</DL><HR><A NAME="FLASH_OPTION"><!-- --></A><H3>FLASH_OPTION</H3><PRE>public static final int <B>FLASH_OPTION</B></PRE><DL><DD>Flash graphics operations.</DL><HR><A NAME="BUFFERED_OPTION"><!-- --></A><H3>BUFFERED_OPTION</H3><PRE>public static final int <B>BUFFERED_OPTION</B></PRE><DL><DD>Show buffered operations in a seperate Frame.</DL><HR><A NAME="NONE_OPTION"><!-- --></A><H3>NONE_OPTION</H3><PRE>public static final int <B>NONE_OPTION</B></PRE><DL><DD>Don't debug graphics operations.</DL><!-- ========= 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="DebugGraphics()"><!-- --></A><H3>DebugGraphics</H3><PRE>public <B>DebugGraphics</B>()</PRE><DL><DD>Constructs a new debug graphics context that supports slowed down drawing.</DL><HR><A NAME="DebugGraphics(java.awt.Graphics, javax.swing.JComponent)"><!-- --></A><H3>DebugGraphics</H3><PRE>public <B>DebugGraphics</B>(<A HREF="../../java/awt/Graphics.html">Graphics</A> graphics, <A HREF="../../javax/swing/JComponent.html">JComponent</A> component)</PRE><DL><DD>Constructs a debug graphics context from an existing graphics context that slows down drawing for the specified component.<DD><DL><DT><B>Parameters:</B><DD><CODE>graphics</CODE> - the Graphics context to slow down<DD><CODE>component</CODE> - the JComponent to draw slowly</DL></DD></DL><HR><A NAME="DebugGraphics(java.awt.Graphics)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -