All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.bwt.Shadow

java.lang.Object
   |
   +----jclass.bwt.Shadow

public class Shadow
extends Object
Static methods to draw shadows


Constructor Index

 o Shadow()

Method Index

 o draw(Graphics, int, int, int, int, int, int, Color, Color)
Draws a shadow
 o draw(Graphics, int, int, int, int, int, int, Color, Color, Color)
Draws a shadow

Constructors

 o Shadow
  public Shadow()

Methods

 o draw
  public static void draw(Graphics gc,
                          int type,
                          int size,
                          int x,
                          int y,
                          int width,
                          int height,
                          Color bg,
                          Color plain)
Draws a shadow

Parameters:
type - one of the following BWTEnum members:
SHADOW_ETCHED_IN	double line; border appears inset
SHADOW_ETCHED_OUT	double line; border appears raised
SHADOW_FRAME_IN		1-pixel shadow-in at edge; border appears framed
SHADOW_FRAME_OUT	1-pixel shadow-out at edge; border appears framed
SHADOW_IN			border appears inset
SHADOW_OUT			border appears raised
SHADOW_PLAIN		shadow drawn in foreground color
SHADOW_NONE			no shadow
size - the shadow thickness
bg - the background color
plain - the color used to draw the sides of PLAIN shadows
 o draw
  public static void draw(Graphics gc,
                          int type,
                          int size,
                          int x,
                          int y,
                          int width,
                          int height,
                          Color bright,
                          Color dark,
                          Color plain)
Draws a shadow

Parameters:
type - one of the following BWTEnum members:
SHADOW_ETCHED_IN	double line; border appears inset
SHADOW_ETCHED_OUT	double line; border appears raised
SHADOW_FRAME_IN		1-pixel shadow-in at edge; border appears framed
SHADOW_FRAME_OUT	1-pixel shadow-out at edge; border appears framed
SHADOW_IN			border appears inset
SHADOW_OUT			border appears raised
SHADOW_PLAIN		shadow drawn in foreground color
SHADOW_NONE			no shadow
size - the shadow thickness
bright - bright shadow color
dark - dark shadow color
plain - the color used to draw the sides of PLAIN shadows

All Packages  Class Hierarchy  This Package  Previous  Next  Index