All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.gauge.TileBackground
java.lang.Object
|
+----COM.ibm.beans.gauge.BorderBackground
|
+----COM.ibm.beans.gauge.TileBackground
- public class TileBackground
- extends BorderBackground
This class implements a range of standard border types with
variable widths.
TileBackground()
- Create a TileBackground with no tile image and zero
offsets.
TileBackground(Image,
int, int)
- Create a TileBackground with the given image and offsets.
TileBackground(Image[],
int, int, int)
- Create a TileBackground with the given image, offsets and
flow method.
copyright()
-
dispose()
- Release all resources held by this background.
render(Graphics,
int, int, int, int)
- Render the background onto a graphics, within the
rectangle specified.
setTile(Image,
int, int)
- Set the tile image and offsets.
setTile(Image[],
int, int, int)
- Set the tile images, offsets, and flow method.
TileBackground
public TileBackground()
- Create a TileBackground with no tile image and zero
offsets.
TileBackground
public TileBackground(Image image,
int xOffset,
int yOffset)
- Create a TileBackground with the given image and offsets.
- Parameters:
- image - the image to tile.
- xOffset - x offset of the tile origin.
- yOffset - y offset of the tile origin.
TileBackground
public TileBackground(Image imagearray[],
int xOffset,
int yOffset,
int flowmethod)
- Create a TileBackground with the given image, offsets and
flow method.
- Parameters:
- imagearray - the array of images to tile.
- xOffset - x offset of the tile origin.
- yOffset - y offset of the tile origin.
- flowmethod - the flow method constant, defined on
the Fill class.
- See Also:
- Fill
copyright
public static String copyright()
setTile
public void setTile(Image image,
int xOffset,
int yOffset)
- Set the tile image and offsets.
- Parameters:
- image - the image to tile.
- xOffset - x offset of the tile origin.
- yOffset - y offset of the tile origin.
setTile
public void setTile(Image imagearray[],
int xOffset,
int yOffset,
int flowmethod)
- Set the tile images, offsets, and flow method.
- Parameters:
- imagearray - the array of images to tile.
- xOffset - x offset of the tile origin.
- yOffset - y offset of the tile origin.
- flowmethod - the flow method constant, defined on
the Fill class.
- See Also:
- Fill
render
public void render(Graphics g,
int x,
int y,
int width,
int height)
- Render the background onto a graphics, within the
rectangle specified. Plain margins are drawn in the
current graphics foreground color.
- Overrides:
- render
in class BorderBackground
dispose
public void dispose()
- Release all resources held by this background.
- Overrides:
- dispose
in class BorderBackground
All Packages Class Hierarchy This Package Previous Next Index
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.