java.awt

Class SystemColor

  • All Implemented Interfaces:
    Paint, Transparency, Serializable

    public final class SystemColor
    extends Color
    implements Serializable
    A class to encapsulate symbolic colors representing the color of native GUI objects on a system. For systems which support the dynamic update of the system colors (when the user changes the colors) the actual RGB values of these symbolic colors will also change dynamically. In order to compare the "current" RGB value of a SystemColor object with a non-symbolic Color object, getRGB should be used rather than equals.

    Note that the way in which these system colors are applied to GUI objects may vary slightly from platform to platform since GUI objects may be rendered differently on each platform.

    System color values may also be available through the getDesktopProperty method on java.awt.Toolkit.

    See Also:
    Toolkit.getDesktopProperty(java.lang.String), Serialized Form
    • Field Detail

      • NUM_COLORS

        public static final int NUM_COLORS
        The number of system colors in the array.
        See Also:
        Constant Field Values
      • desktop

        public static final SystemColor desktop
        The color rendered for the background of the desktop.
      • activeCaption

        public static final SystemColor activeCaption
        The color rendered for the window-title background of the currently active window.
      • activeCaptionText

        public static final SystemColor activeCaptionText
        The color rendered for the window-title text of the currently active window.
      • activeCaptionBorder

        public static final SystemColor activeCaptionBorder
        The color rendered for the border around the currently active window.
      • inactiveCaption

        public static final SystemColor inactiveCaption
        The color rendered for the window-title background of inactive windows.
      • inactiveCaptionText

        public static final SystemColor inactiveCaptionText
        The color rendered for the window-title text of inactive windows.
      • inactiveCaptionBorder

        public static final SystemColor inactiveCaptionBorder
        The color rendered for the border around inactive windows.
      • window

        public static final SystemColor window
        The color rendered for the background of interior regions inside windows.
      • windowBorder

        public static final SystemColor windowBorder
        The color rendered for the border around interior regions inside windows.
      • windowText

        public static final SystemColor windowText
        The color rendered for text of interior regions inside windows.
      • public static final SystemColor menu
        The color rendered for the background of menus.
      • public static final SystemColor menuText
        The color rendered for the text of menus.
      • text

        public static final SystemColor text
        The color rendered for the background of text control objects, such as textfields and comboboxes.
      • textText

        public static final SystemColor textText
        The color rendered for the text of text control objects, such as textfields and comboboxes.
      • textHighlight

        public static final SystemColor textHighlight
        The color rendered for the background of selected items, such as in menus, comboboxes, and text.
      • textHighlightText

        public static final SystemColor textHighlightText
        The color rendered for the text of selected items, such as in menus, comboboxes, and text.
      • textInactiveText

        public static final SystemColor textInactiveText
        The color rendered for the text of inactive items, such as in menus.
      • control

        public static final SystemColor control
        The color rendered for the background of control panels and control objects, such as pushbuttons.
      • controlText

        public static final SystemColor controlText
        The color rendered for the text of control panels and control objects, such as pushbuttons.
      • controlHighlight

        public static final SystemColor controlHighlight
        The color rendered for light areas of 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.
      • controlLtHighlight

        public static final SystemColor controlLtHighlight
        The color rendered for highlight areas of 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.
      • controlShadow

        public static final SystemColor controlShadow
        The color rendered for shadow areas of 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.
      • controlDkShadow

        public static final SystemColor controlDkShadow
        The color rendered for dark shadow areas on 3D control objects, such as pushbuttons. This color is typically derived from the control background color to provide a 3D effect.
      • scrollbar

        public static final SystemColor scrollbar
        The color rendered for the background of scrollbars.
      • info

        public static final SystemColor info
        The color rendered for the background of tooltips or spot help.
      • infoText

        public static final SystemColor infoText
        The color rendered for the text of tooltips or spot help.
    • Method Detail

      • toString

        public String toString()
        Returns a string representation of this Color's values. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.
        Overrides:
        toString in class Color
        Returns:
        a string representation of this Color

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

21/11/2024 21:28:07 Cette version de la page est en cache (à la date du 21/11/2024 21:28:07) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.

Document créé le 28/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/awt/systemcolor.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, SystemColor

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut