All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eou.toolkit.graphics.TileBackground

java.lang.Object
   |
   +----com.ibm.eou.toolkit.graphics.BorderBackground
           |
           +----com.ibm.eou.toolkit.graphics.TileBackground

public class TileBackground
extends BorderBackground
This class implements a range of standard border types with variable widths.


Constructor Index

 o TileBackground()
Create a TileBackground with no tile image and zero offsets.
 o TileBackground(Image, int, int)
Create a TileBackground with the given image and offsets.
 o TileBackground(Image[], int, int, int)
Create a TileBackground with the given image, offsets and flow method.

Method Index

 o copyright()
 o dispose()
Release all resources held by this background.
 o getImage()
Return the background image
 o render(Graphics, int, int, int, int)
Render the background onto a graphics, within the rectangle specified.
 o setTile(Image, int, int)
Set the tile image and offsets.
 o setTile(Image[], int, int, int)
Set the tile images, offsets, and flow method.

Constructors

 o TileBackground
 public TileBackground()
Create a TileBackground with no tile image and zero offsets.

 o 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.
 o 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

Methods

 o copyright
 public static String copyright()
 o 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.
 o 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
 o 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
 o dispose
 public void dispose()
Release all resources held by this background.

Overrides:
dispose in class BorderBackground
 o getImage
 public Image getImage()
Return the background image


All Packages  Class Hierarchy  This Package  Previous  Next  Index