java.awt

Class GraphicsConfigTemplate

    • Field Detail

      • REQUIRED

        public static final int REQUIRED
        Value used for "Enum" (Integer) type. States that this feature is required for the GraphicsConfiguration object. If this feature is not available, do not select the GraphicsConfiguration object.
        See Also:
        Constant Field Values
      • PREFERRED

        public static final int PREFERRED
        Value used for "Enum" (Integer) type. States that this feature is desired for the GraphicsConfiguration object. A selection with this feature is preferred over a selection that does not include this feature, although both selections can be considered valid matches.
        See Also:
        Constant Field Values
      • UNNECESSARY

        public static final int UNNECESSARY
        Value used for "Enum" (Integer) type. States that this feature is not necessary for the selection of the GraphicsConfiguration object. A selection without this feature is preferred over a selection that includes this feature since it is not used.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GraphicsConfigTemplate

        public GraphicsConfigTemplate()
        This class is an abstract class so only subclasses can be instantiated.
    • Method Detail

      • getBestConfiguration

        public abstract GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] gc)
        Returns the "best" configuration possible that passes the criteria defined in the GraphicsConfigTemplate.
        Parameters:
        gc - the array of GraphicsConfiguration objects to choose from.
        Returns:
        a GraphicsConfiguration object that is the best configuration possible.
        See Also:
        GraphicsConfiguration
      • isGraphicsConfigSupported

        public abstract boolean isGraphicsConfigSupported(GraphicsConfiguration gc)
        Returns a boolean indicating whether or not the specified GraphicsConfiguration can be used to create a drawing surface that supports the indicated features.
        Parameters:
        gc - the GraphicsConfiguration object to test
        Returns:
        true if this GraphicsConfiguration object can be used to create surfaces that support the indicated features; false if the GraphicsConfiguration can not be used to create a drawing surface usable by this Java(tm) API.

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.

Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/awt/graphicsconfigtemplate.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, GraphicsConfigTemplate

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