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
-
drawBorder(Graphics, int, int, int, int, boolean)
- Paint a PC-style 3D Border.
-
drawFieldBorder(Graphics, int, int, int, int)
- Paint a PC-style 3D Border.
-
drawOptionBorder(Graphics, int, int, int, int)
- Fill a 3DOval.
-
drawOval(Graphics, int, int, int, int, boolean, int)
- Paint a 3DOval.
-
drawRect(Graphics, int, int, int, int, boolean, int)
- Paint a 3DRect.
-
drawWindowBorder(Graphics, int, int, int, int)
- Paint a PC-style 3D Border.
-
fillBorder(Graphics, int, int, int, int, boolean)
- Fill a PC-style 3D Border.
-
fillFieldBorder(Graphics, int, int, int, int, Color)
- Fill a PC-style 3D Border.
-
fillOptionBorder(Graphics, int, int, int, int, Color)
- Fill a 3DOval.
-
fillOval(Graphics, int, int, int, int, boolean, int)
- Fill a 3DOval.
-
fillOval(Graphics, int, int, int, int, boolean, int, Color)
- Fill a 3DOval.
-
fillRect(Graphics, int, int, int, int, boolean, int)
- Fill a 3DRect.
-
fillRect(Graphics, int, int, int, int, boolean, int, Color)
- Fill a 3DRect.
-
fillWindowBorder(Graphics, int, int, int, int, Color)
- Fill a PC-style 3D Border.
-
getBrighter(Color, boolean)
- Get the bright color.
-
getDarker(Color, boolean)
- Get the darker color.
getBrighter
public static synchronized Color getBrighter(Color col,
boolean raised)
- Get the bright color.
getDarker
public static synchronized Color getDarker(Color col,
boolean raised)
- Get the darker color.
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.
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.
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.
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.
fillOval
public static void fillOval(Graphics g,
int x,
int y,
int width,
int height,
boolean raised,
int linewidth)
- Fill a 3DOval.
fillOval
public static void fillOval(Graphics g,
int x,
int y,
int width,
int height,
boolean raised,
int linewidth,
Color fill)
- Fill a 3DOval.
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.
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.
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.
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.
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.
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.
drawOptionBorder
public static synchronized void drawOptionBorder(Graphics g,
int x,
int y,
int width,
int height)
- Fill a 3DOval.
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