⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphicutils.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DT><B>Parameters:</B><DD><CODE>popup</CODE> - the popup menu<DD><CODE>x</CODE> - the x position in screen coordinate<DD><CODE>y</CODE> - the y position in screen coordinates<DT><B>Returns:</B><DD>the point where the popup menu should be shown in screen         coordinates</DL></DD></DL><HR><A NAME="centerWindowOnComponent(java.awt.Window, java.awt.Component)"><!-- --></A><H3>centerWindowOnComponent</H3><PRE>public static void <B>centerWindowOnComponent</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>&nbsp;window,                                           <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>&nbsp;over)</PRE><DL><DD>Centers the window over a component (usually another window). The window must already have been sized.<P><DD><DL></DL></DD></DL><HR><A NAME="isAncestorOfFocusedComponent(java.awt.Component)"><!-- --></A><H3>isAncestorOfFocusedComponent</H3><PRE>public static boolean <B>isAncestorOfFocusedComponent</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>&nbsp;c)</PRE><DL><DD><DL><DT><B>Returns:</B><DD>returns true if the component of one of its child has the focus</DL></DD></DL><HR><A NAME="getFocusableComponentOrChild(java.awt.Component)"><!-- --></A><H3>getFocusableComponentOrChild</H3><PRE>public 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> <B>getFocusableComponentOrChild</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>&nbsp;c)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>replaced by <A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getFocusableComponentOrChild(java.awt.Component, boolean)"><CODE>getFocusableComponentOrChild(Component, boolean)</CODE></A></I><P><DD>Returns the first component in the tree of <code>c</code> that can accept the focus.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the root of the component hierarchy to search<DT><B>See Also:</B><DD><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#focusComponentOrChild(java.awt.Component)"><CODE>focusComponentOrChild(java.awt.Component)</CODE></A></DL></DD></DL><HR><A NAME="getFocusableComponentOrChild(java.awt.Component, boolean)"><!-- --></A><H3>getFocusableComponentOrChild</H3><PRE>public 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> <B>getFocusableComponentOrChild</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>&nbsp;c,                                                     boolean&nbsp;deepest)</PRE><DL><DD>Returns the first component in the tree of <code>c</code> that can accept the focus.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the root of the component hierarchy to search<DD><CODE>deepest</CODE> - if <code>deepest</code> is true the method will return the first and deepest component that can accept the                focus.  For example, if both a child and its parent are focusable and <code>deepest</code> is true, the child is                returned.<DT><B>See Also:</B><DD><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#focusComponentOrChild(java.awt.Component)"><CODE>focusComponentOrChild(java.awt.Component)</CODE></A></DL></DD></DL><HR><A NAME="focusComponentOrChild(java.awt.Component)"><!-- --></A><H3>focusComponentOrChild</H3><PRE>public 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> <B>focusComponentOrChild</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>&nbsp;c)</PRE><DL><DD>Puts the focus on the first component in the tree of <code>c</code> that can accept the focus.<P><DD><DL><DT><B>See Also:</B><DD><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getFocusableComponentOrChild(java.awt.Component)"><CODE>getFocusableComponentOrChild(java.awt.Component)</CODE></A></DL></DD></DL><HR><A NAME="focusComponentOrChild(java.awt.Component, boolean)"><!-- --></A><H3>focusComponentOrChild</H3><PRE>public 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> <B>focusComponentOrChild</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>&nbsp;c,                                              boolean&nbsp;deepest)</PRE><DL><DD>Puts the focus on the first component in the tree of <code>c</code> that can accept the focus.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the root of the component hierarchy to search<DD><CODE>deepest</CODE> - if <code>deepest</code> is true the method will focus the first and deepest component that can                accept the focus.                For example, if both a child and its parent are focusable and <code>deepest</code> is true, the child is focused.<DT><B>See Also:</B><DD><A HREF="../../../../org/jivesoftware/openfire/launcher/GraphicUtils.html#getFocusableComponentOrChild(java.awt.Component)"><CODE>getFocusableComponentOrChild(java.awt.Component)</CODE></A></DL></DD></DL><HR><A NAME="loadFromResource(java.lang.String, java.lang.Class)"><!-- --></A><H3>loadFromResource</H3><PRE>public 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> <B>loadFromResource</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>&nbsp;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>&nbsp;cls)</PRE><DL><DD>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>.  If the <code>Image</code> can not be loaded, then <code>null</code> is returned.  Images loaded here will be added to an internal cache based upon the full <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html" title="class or interface in java.net"><CODE>URL</CODE></A> to their location. <p/> <em>This method replaces legacy code from JDeveloper 3.x and earlier.</em><P><DD><DL><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getResource(java.lang.String)" title="class or interface in java.lang"><CODE>Class.getResource(String)</CODE></A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Toolkit.html#createImage(java.net.URL)" title="class or interface in java.awt"><CODE>Toolkit.createImage(URL)</CODE></A></DL></DD></DL><HR><A NAME="getScreenBounds()"><!-- --></A><H3>getScreenBounds</H3><PRE>public 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>[] <B>getScreenBounds</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="makeSameSize(javax.swing.JComponent[])"><!-- --></A><H3>makeSameSize</H3><PRE>public static final void <B>makeSameSize</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>[]&nbsp;comps)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="toHTMLColor(java.awt.Color)"><!-- --></A><H3>toHTMLColor</H3><PRE>public static final <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> <B>toHTMLColor</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>&nbsp;c)</PRE><DL><DD>Return the hexidecimal color from a java.awt.Color<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - <DT><B>Returns:</B><DD>hexadecimal string</DL></DD></DL><HR><A NAME="createToolTip(java.lang.String, int)"><!-- --></A><H3>createToolTip</H3><PRE>public static final <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> <B>createToolTip</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>&nbsp;text,                                         int&nbsp;width)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="createToolTip(java.lang.String)"><!-- --></A><H3>createToolTip</H3><PRE>public static final <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> <B>createToolTip</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>&nbsp;text)</PRE><DL><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/jivesoftware/openfire/launcher/DroppableTextPane.html" title="class in org.jivesoftware.openfire.launcher"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/jivesoftware/openfire/launcher/Launcher.html" title="class in org.jivesoftware.openfire.launcher"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?org/jivesoftware/openfire/launcher/GraphicUtils.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="GraphicUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &copy; 2003-2008 Jive Software.</i></BODY></HTML>

⌨️ 快捷键说明

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