IT. Expert System.

Java Standard Edition (SE)

BasicGraphicsUtils


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)


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 90 / 159132784. Delta: 0.04525 с