javax.swing.plaf.metal
Class MetalUtils

java.lang.Object
  extended byjavax.swing.plaf.metal.MetalUtils

class MetalUtils
extends Object

This is a dumping ground for random stuff we want to use in several places.

Author:
Steve Wilson

Constructor Summary
(package private) MetalUtils()
           
 
Method Summary
(package private) static void drawActiveButtonBorder(Graphics g, int x, int y, int w, int h)
           
(package private) static void drawButtonBorder(Graphics g, int x, int y, int w, int h, boolean active)
           
(package private) static void drawDark3DBorder(Graphics g, int x, int y, int w, int h)
          This draws a variant "Flush 3D Border" It is used for things like active toggle buttons.
(package private) static void drawDark3DBorder(Graphics g, Rectangle r)
          This draws a variant "Flush 3D Border" It is used for things like active toggle buttons.
(package private) static void drawDefaultButtonBorder(Graphics g, int x, int y, int w, int h, boolean active)
           
(package private) static void drawDefaultButtonPressedBorder(Graphics g, int x, int y, int w, int h)
           
(package private) static void drawDisabledBorder(Graphics g, int x, int y, int w, int h)
           
(package private) static void drawFlush3DBorder(Graphics g, int x, int y, int w, int h)
          This draws the "Flush 3D Border" which is used throughout the Metal L&F
(package private) static void drawFlush3DBorder(Graphics g, Rectangle r)
           
(package private) static void drawPressed3DBorder(Graphics g, int x, int y, int w, int h)
          This draws a variant "Flush 3D Border" It is used for things like pressed buttons.
(package private) static void drawPressed3DBorder(Graphics g, Rectangle r)
          This draws a variant "Flush 3D Border" It is used for things like pressed buttons.
(package private) static int getInt(Object key, int defaultValue)
           
(package private) static boolean isLeftToRight(Component c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalUtils

MetalUtils()
Method Detail

drawFlush3DBorder

static void drawFlush3DBorder(Graphics g,
                              Rectangle r)

drawFlush3DBorder

static void drawFlush3DBorder(Graphics g,
                              int x,
                              int y,
                              int w,
                              int h)
This draws the "Flush 3D Border" which is used throughout the Metal L&F


drawPressed3DBorder

static void drawPressed3DBorder(Graphics g,
                                Rectangle r)
This draws a variant "Flush 3D Border" It is used for things like pressed buttons.


drawDisabledBorder

static void drawDisabledBorder(Graphics g,
                               int x,
                               int y,
                               int w,
                               int h)

drawPressed3DBorder

static void drawPressed3DBorder(Graphics g,
                                int x,
                                int y,
                                int w,
                                int h)
This draws a variant "Flush 3D Border" It is used for things like pressed buttons.


drawDark3DBorder

static void drawDark3DBorder(Graphics g,
                             Rectangle r)
This draws a variant "Flush 3D Border" It is used for things like active toggle buttons. This is used rarely.


drawDark3DBorder

static void drawDark3DBorder(Graphics g,
                             int x,
                             int y,
                             int w,
                             int h)
This draws a variant "Flush 3D Border" It is used for things like active toggle buttons. This is used rarely.


drawButtonBorder

static void drawButtonBorder(Graphics g,
                             int x,
                             int y,
                             int w,
                             int h,
                             boolean active)

drawActiveButtonBorder

static void drawActiveButtonBorder(Graphics g,
                                   int x,
                                   int y,
                                   int w,
                                   int h)

drawDefaultButtonBorder

static void drawDefaultButtonBorder(Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h,
                                    boolean active)

drawDefaultButtonPressedBorder

static void drawDefaultButtonPressedBorder(Graphics g,
                                           int x,
                                           int y,
                                           int w,
                                           int h)

isLeftToRight

static boolean isLeftToRight(Component c)

getInt

static int getInt(Object key,
                  int defaultValue)