javax.swing.plaf.basic

Class BasicGraphicsUtils


  • public class BasicGraphicsUtils
    extends Object
    • Constructor Detail

      • BasicGraphicsUtils

        public BasicGraphicsUtils()
    • Method Detail

      • drawEtchedRect

        public static void drawEtchedRect(Graphics g,
                          int x,
                          int y,
                          int w,
                          int h,
                          Color shadow,
                          Color darkShadow,
                          Color highlight,
                          Color lightHighlight)
      • getEtchedInsets

        public static Insets getEtchedInsets()
        Returns the amount of space taken up by a border drawn by drawEtchedRect()
        Returns:
        the inset of an etched rect
      • drawGroove

        public static void drawGroove(Graphics g,
                      int x,
                      int y,
                      int w,
                      int h,
                      Color shadow,
                      Color highlight)
      • getGrooveInsets

        public static Insets getGrooveInsets()
        Returns the amount of space taken up by a border drawn by drawGroove()
        Returns:
        the inset of a groove border
      • drawBezel

        public static void drawBezel(Graphics g,
                     int x,
                     int y,
                     int w,
                     int h,
                     boolean isPressed,
                     boolean isDefault,
                     Color shadow,
                     Color darkShadow,
                     Color highlight,
                     Color lightHighlight)
      • drawLoweredBezel

        public static void drawLoweredBezel(Graphics g,
                            int x,
                            int y,
                            int w,
                            int h,
                            Color shadow,
                            Color darkShadow,
                            Color highlight,
                            Color lightHighlight)
      • drawString

        public static void drawString(Graphics g,
                      String text,
                      int underlinedChar,
                      int x,
                      int y)
        Draw a string with the graphics g at location (x,y) just like g.drawString would. The first occurrence of underlineChar in text will be underlined. The matching algorithm is not case sensitive.
      • drawStringUnderlineCharAt

        public static void drawStringUnderlineCharAt(Graphics g,
                                     String text,
                                     int underlinedIndex,
                                     int x,
                                     int y)
        Draw a string with the graphics g at location (x, y) just like g.drawString would. The character at index underlinedIndex in text will be underlined. If index is beyond the bounds of text (including < 0), nothing will be underlined.
        Parameters:
        g - Graphics to draw with
        text - String to draw
        underlinedIndex - Index of character in text to underline
        x - x coordinate to draw at
        y - y coordinate to draw at
        Since:
        1.4
      • drawDashedRect

        public static void drawDashedRect(Graphics g,
                          int x,
                          int y,
                          int width,
                          int height)

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 06/12/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/swing/plaf/basic/basicgraphicsutils.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, BasicGraphicsUtils

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