metallookandfeel.java

来自「linux下建立JAVA虚拟机的源码KAFFE」· Java 代码 · 共 1,359 行 · 第 1/4 页

JAVA
1,359
字号
  /**   * Returns the color used to draw text on inactive controls, from the   * installed theme.   *    * @return The color used to draw text on inactive controls.   */  public static ColorUIResource getInactiveControlTextColor()  {    if (theme != null)      return theme.getInactiveControlTextColor();    return null;  }  /**   * Returns the color used to draw inactive system text, from the installed   * theme.   *    * @return The color used to draw inactive system text.   */  public static ColorUIResource getInactiveSystemTextColor()  {    if (theme != null)      return theme.getInactiveSystemTextColor();    return null;  }  /**   * Returns the background color for menu items, from the installed theme.   *    * @return The background color for menu items.   *    * @see #getMenuSelectedBackground()   */  public static ColorUIResource getMenuBackground()  {    if (theme != null)      return theme.getMenuBackground();    return null;  }  /**   * Returns the foreground color for disabled menu items, from the installed   * theme.   *    * @return The foreground color for disabled menu items.   *    * @see #getMenuForeground()   */  public static ColorUIResource getMenuDisabledForeground()  {    if (theme != null)      return theme.getMenuDisabledForeground();    return null;  }  /**   * Returns the foreground color for menu items, from the installed theme.   *    * @return The foreground color for menu items.   *    * @see #getMenuDisabledForeground()   * @see #getMenuSelectedForeground()   */  public static ColorUIResource getMenuForeground()  {    if (theme != null)      return theme.getMenuForeground();    return null;  }  /**   * Returns the background color for selected menu items, from the installed   * theme.   *    * @return The background color for selected menu items.   *    * @see #getMenuBackground()   */  public static ColorUIResource getMenuSelectedBackground()  {    if (theme != null)      return theme.getMenuSelectedBackground();    return null;  }  /**   * Returns the foreground color for selected menu items, from the installed   * theme.   *    * @return The foreground color for selected menu items.   *    * @see #getMenuForeground()   */  public static ColorUIResource getMenuSelectedForeground()  {    if (theme != null)      return theme.getMenuSelectedForeground();    return null;  }  /**   * Returns the font used for text in menus, from the installed theme.   *    * @return The font used for text in menus.   */  public static FontUIResource getMenuTextFont()  {    if (theme != null)      return theme.getMenuTextFont();    return null;  }  /**   * Returns the primary color for controls, from the installed theme.   *    * @return The primary color for controls.   */  public static ColorUIResource getPrimaryControl()  {    if (theme != null)      return theme.getPrimaryControl();    return null;  }  /**   * Returns the primary color for the dark shadow on controls, from the    * installed theme.   *    * @return The primary color for the dark shadow on controls.   */  public static ColorUIResource getPrimaryControlDarkShadow()  {    if (theme != null)      return theme.getPrimaryControlDarkShadow();    return null;  }  /**   * Returns the primary color for the highlight on controls, from the    * installed theme.   *    * @return The primary color for the highlight on controls.   */  public static ColorUIResource getPrimaryControlHighlight()  {    if (theme != null)      return theme.getPrimaryControlHighlight();    return null;  }  /**   * Returns the primary color for the information on controls, from the    * installed theme.   *    * @return The primary color for the information on controls.   */  public static ColorUIResource getPrimaryControlInfo()  {    if (theme != null)      return theme.getPrimaryControlInfo();    return null;  }  /**   * Returns the primary color for the shadow on controls, from the installed   * theme.   *    * @return The primary color for the shadow on controls.   */  public static ColorUIResource getPrimaryControlShadow()  {    if (theme != null)      return theme.getPrimaryControlShadow();    return null;  }  /**   * Returns the background color for separators, from the installed theme.   *    * @return The background color for separators.   */  public static ColorUIResource getSeparatorBackground()  {    if (theme != null)      return theme.getSeparatorBackground();    return null;  }  /**   * Returns the foreground color for separators, from the installed theme.   *    * @return The foreground color for separators.   */  public static ColorUIResource getSeparatorForeground()  {    if (theme != null)      return theme.getSeparatorForeground();    return null;  }  /**   * Returns the font used for sub text, from the installed theme.   *    * @return The font used for sub text.   */  public static FontUIResource getSubTextFont()  {    if (theme != null)      return theme.getSubTextFont();    return null;  }  /**   * Returns the color used for system text, from the installed theme.   *    * @return The color used for system text.   */  public static ColorUIResource getSystemTextColor()  {    if (theme != null)      return theme.getSystemTextColor();    return null;  }  /**   * Returns the font used for system text, from the installed theme.   *    * @return The font used for system text.   */  public static FontUIResource getSystemTextFont()  {    if (theme != null)      return theme.getSystemTextFont();    return null;  }  /**   * Returns the color used to highlight text, from the installed theme.   *    * @return The color used to highlight text.   */  public static ColorUIResource getTextHighlightColor()  {    if (theme != null)      return theme.getTextHighlightColor();    return null;  }  /**   * Returns the color used to display user text, from the installed theme.   *    * @return The color used to display user text.   */  public static ColorUIResource getUserTextColor()  {    if (theme != null)      return theme.getUserTextColor();    return null;  }  /**   * Returns the font used for user text, obtained from the current theme.   *    * @return The font used for user text.   */  public static FontUIResource getUserTextFont()  {    if (theme != null)      return theme.getUserTextFont();    return null;  }  /**   * Returns the color used for white, from the installed theme.   *    * @return The color used for white.   */  public static ColorUIResource getWhite()  {    if (theme != null)      return theme.getWhite();    return null;  }  /**   * Returns the window background color, from the installed theme.   *    * @return The window background color.   */  public static ColorUIResource getWindowBackground()  {    if (theme != null)      return theme.getWindowBackground();    return null;  }  /**   * Returns the window title background color, from the installed theme.   *    * @return The window title background color.   */  public static ColorUIResource getWindowTitleBackground()  {    if (theme != null)      return theme.getWindowTitleBackground();    return null;  }  /**   * Returns the window title font from the current theme.   *    * @return The window title font.   *    * @see MetalTheme   */  public static FontUIResource getWindowTitleFont()  {    if (theme != null)      return theme.getWindowTitleFont();    return null;  }  /**   * Returns the window title foreground color, from the installed theme.   *    * @return The window title foreground color.   */  public static ColorUIResource getWindowTitleForeground()  {    if (theme != null)      return theme.getWindowTitleForeground();    return null;  }  /**   * Returns the background color for an inactive window title, from the    * installed theme.   *    * @return The background color for an inactive window title.   */

⌨️ 快捷键说明

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