Class marimba.gui.Bevel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.Bevel

java.lang.Object
   |
   +----marimba.gui.Bevel

public final class Bevel
extends Object
A simple class for drawing bevelled edges. This class caches the darker/lighter colors to avoid consuming heap space.
Version:
1.19, 09/06/96
Author:
Arthur van Hoff

Method Index

 o drawBorder(Graphics, int, int, int, int, boolean)
Paint a PC-style 3D Border.
 o drawFieldBorder(Graphics, int, int, int, int)
Paint a PC-style 3D Border.
 o drawOptionBorder(Graphics, int, int, int, int)
Fill a 3DOval.
 o drawOval(Graphics, int, int, int, int, boolean, int)
Paint a 3DOval.
 o drawRect(Graphics, int, int, int, int, boolean, int)
Paint a 3DRect.
 o drawWindowBorder(Graphics, int, int, int, int)
Paint a PC-style 3D Border.
 o fillBorder(Graphics, int, int, int, int, boolean)
Fill a PC-style 3D Border.
 o fillFieldBorder(Graphics, int, int, int, int, Color)
Fill a PC-style 3D Border.
 o fillOptionBorder(Graphics, int, int, int, int, Color)
Fill a 3DOval.
 o fillOval(Graphics, int, int, int, int, boolean, int)
Fill a 3DOval.
 o fillOval(Graphics, int, int, int, int, boolean, int, Color)
Fill a 3DOval.
 o fillRect(Graphics, int, int, int, int, boolean, int)
Fill a 3DRect.
 o fillRect(Graphics, int, int, int, int, boolean, int, Color)
Fill a 3DRect.
 o fillWindowBorder(Graphics, int, int, int, int, Color)
Fill a PC-style 3D Border.
 o getBrighter(Color, boolean)
Get the bright color.
 o getDarker(Color, boolean)
Get the darker color.

Methods

 o getBrighter
  public static synchronized Color getBrighter(Color col,
                                               boolean raised)
Get the bright color.
 o getDarker
  public static synchronized Color getDarker(Color col,
                                             boolean raised)
Get the darker color.
 o drawRect
  public static synchronized void drawRect(Graphics g,
                                           int x1,
                                           int y1,
                                           int width,
                                           int height,
                                           boolean raised,
                                           int linewidth)
Paint a 3DRect. The rectangle is drawn inside the specified rectangle. You can specify the line width. It avoids allocating the same hilite colors by keeping a handle on them.
 o fillRect
  public static void fillRect(Graphics g,
                              int x1,
                              int y1,
                              int width,
                              int height,
                              boolean raised,
                              int linewidth)
Fill a 3DRect. The rectangle is drawn inside the specified rectangle. You can specify the line width. It avoids allocating the same hilite colors by keeping a handle on them.
 o fillRect
  public static void fillRect(Graphics g,
                              int x1,
                              int y1,
                              int width,
                              int height,
                              boolean raised,
                              int linewidth,
                              Color fill)
Fill a 3DRect. The rectangle is drawn inside the specified rectangle. You can specify the line width. It avoids allocating the same hilite colors by keeping a handle on them.
 o drawOval
  public static synchronized void drawOval(Graphics g,
                                           int x,
                                           int y,
                                           int width,
                                           int height,
                                           boolean raised,
                                           int linewidth)
Paint a 3DOval. The oval is drawn inside the specified rectangle. You can specify the line width. It avoids allocating the same hilite colors by keeping a handle on them.
 o fillOval
  public static void fillOval(Graphics g,
                              int x,
                              int y,
                              int width,
                              int height,
                              boolean raised,
                              int linewidth)
Fill a 3DOval.
 o fillOval
  public static void fillOval(Graphics g,
                              int x,
                              int y,
                              int width,
                              int height,
                              boolean raised,
                              int linewidth,
                              Color fill)
Fill a 3DOval.
 o drawBorder
  public static synchronized void drawBorder(Graphics g,
                                             int x1,
                                             int y1,
                                             int width,
                                             int height,
                                             boolean raised)
Paint a PC-style 3D Border. The rectangle is drawn inside the specified rectangle.
 o fillBorder
  public static void fillBorder(Graphics g,
                                int x1,
                                int y1,
                                int width,
                                int height,
                                boolean raised)
Fill a PC-style 3D Border. The rectangle is drawn inside the specified rectangle.
 o drawFieldBorder
  public static synchronized void drawFieldBorder(Graphics g,
                                                  int x1,
                                                  int y1,
                                                  int width,
                                                  int height)
Paint a PC-style 3D Border. The rectangle is drawn inside the specified rectangle.
 o fillFieldBorder
  public static void fillFieldBorder(Graphics g,
                                     int x1,
                                     int y1,
                                     int width,
                                     int height,
                                     Color fill)
Fill a PC-style 3D Border. The rectangle is drawn inside the specified rectangle.
 o drawWindowBorder
  public static synchronized void drawWindowBorder(Graphics g,
                                                   int x1,
                                                   int y1,
                                                   int width,
                                                   int height)
Paint a PC-style 3D Border. The rectangle is drawn inside the specified rectangle.
 o fillWindowBorder
  public static void fillWindowBorder(Graphics g,
                                      int x1,
                                      int y1,
                                      int width,
                                      int height,
                                      Color fill)
Fill a PC-style 3D Border. The rectangle is drawn inside the specified rectangle.
 o drawOptionBorder
  public static synchronized void drawOptionBorder(Graphics g,
                                                   int x,
                                                   int y,
                                                   int width,
                                                   int height)
Fill a 3DOval.
 o fillOptionBorder
  public static void fillOptionBorder(Graphics g,
                                      int x,
                                      int y,
                                      int width,
                                      int height,
                                      Color fill)
Fill a 3DOval.

All Packages  Class Hierarchy  This Package  Previous  Next  Index