All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.gauge.BorderBackground
java.lang.Object
|
+----COM.ibm.beans.gauge.BorderBackground
- public class BorderBackground
- extends Object
- implements Background
This class implements a range of standard border types with
variable widths.
CRAFTED_RAISED
- A 3D crafted raised border style.
CRAFTED_RECESSED
- A 3D crafted recessed border style.
MARGIN
- A plain margin border style.
NONE
- No border style.
BorderBackground(int)
- Create a BorderBackground with the given border style.
BorderBackground(int,
int, int, int)
- Create a BorderBackground with the given border style and
widths.
BorderBackground(int,
int, int, int, Color, Color)
- Create a BorderBackground with the given border style,
widths, and colors.
copyright()
-
dispose()
-
insets()
- Return the insets occupied by the border.
render(Graphics,
int, int, int, int)
- Render the border onto a graphics, within the rectangle
specified.
setBackground(Color)
- Set the background color for the border.
setBorder(int)
- Set the border style.
setBorder(int,
int, int, int)
- Set the border style and widths.
setBorder(int,
int, int, int, Color, Color)
- Set the border style and widths and colors.
setForeground(Color)
- Set the foreground color for the border.
NONE
public static final int NONE
- No border style.
MARGIN
public static final int MARGIN
- A plain margin border style.
CRAFTED_RAISED
public static final int CRAFTED_RAISED
- A 3D crafted raised border style.
CRAFTED_RECESSED
public static final int CRAFTED_RECESSED
- A 3D crafted recessed border style.
BorderBackground
public BorderBackground(int borderstyle)
- Create a BorderBackground with the given border style.
The border width is one.
- Parameters:
- borderstyle - the border style flag.
BorderBackground
public BorderBackground(int borderstyle,
int outergap,
int borderwidth,
int innergap)
- Create a BorderBackground with the given border style and
widths.
- Parameters:
- borderstyle - the border style flag.
- outergap - the pixel width to leave outside the
border.
- borderwidth - the pixel width of the border
itself.
- innergap - the pixel width to leave inside the
border.
BorderBackground
public BorderBackground(int borderstyle,
int outergap,
int borderwidth,
int innergap,
Color background,
Color foreground)
- Create a BorderBackground with the given border style,
widths, and colors.
- Parameters:
- borderstyle - the border style flag.
- outergap - the pixel width to leave outside the
border.
- borderwidth - the pixel width of the border
itself.
- innergap - the pixel width to leave inside the
border.
- background - the color for background areas of
the border.
- foreground - the color for foreground areas of
the border.
copyright
public static String copyright()
setBorder
public void setBorder(int borderstyle)
- Set the border style.
- Parameters:
- borderstyle - the border style flag.
setBorder
public void setBorder(int borderstyle,
int outergap,
int borderwidth,
int innergap)
- Set the border style and widths.
- Parameters:
- borderstyle - the border style flag.
- outergap - the pixel width to leave outside the
border.
- borderwidth - the pixel width of the border
itself.
- innergap - the pixel width to leave inside the
border.
setBorder
public void setBorder(int borderstyle,
int outergap,
int borderwidth,
int innergap,
Color background,
Color foreground)
- Set the border style and widths and colors.
- Parameters:
- borderstyle - the border style flag.
- outergap - the pixel width to leave outside the
border.
- borderwidth - the pixel width of the border
itself.
- innergap - the pixel width to leave inside the
border.
- background - the color for background areas of
the border.
- foreground - the color for foreground areas of
the border.
setBackground
public void setBackground(Color background)
- Set the background color for the border. This color is
used for outer and inner margins. If null is specified,
the current graphics color is used when the border is
rendered.
setForeground
public void setForeground(Color foreground)
- Set the foreground color for the border. This color is
used for the border itself. If null is specified, the
current graphics color is used when the border is
rendered.
render
public void render(Graphics g,
int x,
int y,
int width,
int height)
- Render the border onto a graphics, within the rectangle
specified. Plain margins are drawn in the current
graphics foreground color.
insets
public Insets insets()
- Return the insets occupied by the border. These insets
are determined by the border style and widths.
dispose
public void dispose()
All Packages Class Hierarchy This Package Previous Next Index
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.