📄 graphicutils.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getFocusableComponentOrChild(java.awt.Component, boolean)">getFocusableComponentOrChild</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> c, boolean deepest)</CODE><BR> Returns the first component in the tree of <code>c</code> that can accept the focus.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Insets.html" title="class or interface in java.awt">Insets</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getHighlightBorderInsets()">getHighlightBorderInsets</A></B>()</CODE><BR> Return the amount of space taken up by a highlight border drawn by <code>drawHighlightBorder()</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html" title="class or interface in java.awt">Point</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getPopupMenuShowPoint(javax.swing.JPopupMenu, int, int)">getPopupMenuShowPoint</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPopupMenu.html" title="class or interface in javax.swing">JPopupMenu</A> popup, int x, int y)</CODE><BR> Returns a point where the given popup menu should be shown.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html" title="class or interface in java.awt">Point</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getPopupMenuShowPoint(javax.swing.JPopupMenu, java.awt.event.MouseEvent)">getPopupMenuShowPoint</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPopupMenu.html" title="class or interface in javax.swing">JPopupMenu</A> popup, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseEvent.html" title="class or interface in java.awt.event">MouseEvent</A> event)</CODE><BR> Returns a point where the given popup menu should be shown.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Rectangle.html" title="class or interface in java.awt">Rectangle</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getScreenBounds()">getScreenBounds</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#isAncestorOfFocusedComponent(java.awt.Component)">isAncestorOfFocusedComponent</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> c)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Image.html" title="class or interface in java.awt">Image</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#loadFromResource(java.lang.String, java.lang.Class)">loadFromResource</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> imageName, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> cls)</CODE><BR> Loads an <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Image.html" title="class or interface in java.awt"><CODE>Image</CODE></A> named <code>imageName</code> as a resource relative to the Class <code>cls</code>.</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="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#makeSameSize(javax.swing.JComponent[])">makeSameSize</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComponent.html" title="class or interface in javax.swing">JComponent</A>[] comps)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#toHTMLColor(java.awt.Color)">toHTMLColor</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> c)</CODE><BR> Return the hexidecimal color from a java.awt.Color</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="SELECTION_COLOR"><!-- --></A><H3>SELECTION_COLOR</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> <B>SELECTION_COLOR</B></PRE><DL><DL></DL></DL><HR><A NAME="TOOLTIP_COLOR"><!-- --></A><H3>TOOLTIP_COLOR</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> <B>TOOLTIP_COLOR</B></PRE><DL><DL></DL></DL><HR><A NAME="component"><!-- --></A><H3>component</H3><PRE>protected static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> <B>component</B></PRE><DL><DL></DL></DL><HR><A NAME="tracker"><!-- --></A><H3>tracker</H3><PRE>protected static final <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/MediaTracker.html" title="class or interface in java.awt">MediaTracker</A> <B>tracker</B></PRE><DL><DL></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="centerWindowOnScreen(java.awt.Window)"><!-- --></A><H3>centerWindowOnScreen</H3><PRE>public static void <B>centerWindowOnScreen</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Window.html" title="class or interface in java.awt">Window</A> window)</PRE><DL><DD>Sets the location of the specified window so that it is centered on screen.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>window</CODE> - The window to be centered.</DL></DD></DL><HR><A NAME="drawHighlightBorder(java.awt.Graphics, int, int, int, int, boolean, java.awt.Color, java.awt.Color)"><!-- --></A><H3>drawHighlightBorder</H3><PRE>public static void <B>drawHighlightBorder</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics.html" title="class or interface in java.awt">Graphics</A> g, int x, int y, int width, int height, boolean raised, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> shadow, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A> highlight)</PRE><DL><DD>Draws a single-line highlight border rectangle.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - The graphics context to use for drawing.<DD><CODE>x</CODE> - The left edge of the border.<DD><CODE>y</CODE> - The top edge of the border.<DD><CODE>width</CODE> - The width of the border.<DD><CODE>height</CODE> - The height of the border.<DD><CODE>raised</CODE> - <code>true</code> if the border is to be drawn raised, <code>false</code> if lowered.<DD><CODE>shadow</CODE> - The shadow color for the border.<DD><CODE>highlight</CODE> - The highlight color for the border.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/border/EtchedBorder.html" title="class or interface in javax.swing.border"><CODE>EtchedBorder</CODE></A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/basic/BasicGraphicsUtils.html#drawEtchedRect" title="class or interface in javax.swing.plaf.basic"><CODE>BasicGraphicsUtils</CODE></A></DL></DD></DL><HR><A NAME="getHighlightBorderInsets()"><!-- --></A><H3>getHighlightBorderInsets</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Insets.html" title="class or interface in java.awt">Insets</A> <B>getHighlightBorderInsets</B>()</PRE><DL><DD>Return the amount of space taken up by a highlight border drawn by <code>drawHighlightBorder()</code>.<P><DD><DL><DT><B>Returns:</B><DD>The <code>Insets</code> needed for the highlight border.<DT><B>See Also:</B><DD><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#drawHighlightBorder(java.awt.Graphics, int, int, int, int, boolean, java.awt.Color, java.awt.Color)"><CODE>drawHighlightBorder(java.awt.Graphics, int, int, int, int, boolean, java.awt.Color, java.awt.Color)</CODE></A></DL></DD></DL><HR><A NAME="createImageIcon(java.awt.Image)"><!-- --></A><H3>createImageIcon</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/ImageIcon.html" title="class or interface in javax.swing">ImageIcon</A> <B>createImageIcon</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Image.html" title="class or interface in java.awt">Image</A> image)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getPopupMenuShowPoint(javax.swing.JPopupMenu, java.awt.event.MouseEvent)"><!-- --></A><H3>getPopupMenuShowPoint</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html" title="class or interface in java.awt">Point</A> <B>getPopupMenuShowPoint</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPopupMenu.html" title="class or interface in javax.swing">JPopupMenu</A> popup, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseEvent.html" title="class or interface in java.awt.event">MouseEvent</A> event)</PRE><DL><DD>Returns a point where the given popup menu should be shown. The point is calculated by adjusting the X and Y coordinates from the given mouse event so that the popup menu will not be clipped by the screen boundaries.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>popup</CODE> - the popup menu<DD><CODE>event</CODE> - the mouse event<DT><B>Returns:</B><DD>the point where the popup menu should be shown</DL></DD></DL><HR><A NAME="getPopupMenuShowPoint(javax.swing.JPopupMenu, int, int)"><!-- --></A><H3>getPopupMenuShowPoint</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html" title="class or interface in java.awt">Point</A> <B>getPopupMenuShowPoint</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JPopupMenu.html" title="class or interface in javax.swing">JPopupMenu</A> popup, int x, int y)</PRE><DL><DD>Returns a point where the given popup menu should be shown. The point is calculated by adjusting the X and Y coordinates so that the popup menu will not be clipped by the screen boundaries.<P><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -