javazoom.jlgui.player.amp.skin

Class Taftb


public class Taftb
extends JComponent

Taftb is used to build gif image from graphical fonts.

Field Summary

protected int[]
pixels
protected Image
theBanner
Image
theFonts

Constructor Summary

Taftb(String alphaIndex, Image fontFile, int fontW, int fontH, int Yspc, String theTxt)
Text banner building according to the alphabet index, font size and Y spacing.

Method Summary

Image
getBanner()
Returns final banner as an image.
Image
getBanner(int x, int y, int sx, int sy)
Returns final banner as cropped image.
int[]
getPixels()
Returns final banner as a pixels array.
int
getPixelsH()
Returns banner's height.
int
getPixelsW()
Returns banner's length.

Field Details

pixels

protected int[] pixels

theBanner

protected Image theBanner

theFonts

public Image theFonts

Constructor Details

Taftb

public Taftb(String alphaIndex,
             Image fontFile,
             int fontW,
             int fontH,
             int Yspc,
             String theTxt)
Text banner building according to the alphabet index, font size and Y spacing.

Method Details

getBanner

public Image getBanner()
Returns final banner as an image.

getBanner

public Image getBanner(int x,
                       int y,
                       int sx,
                       int sy)
Returns final banner as cropped image.

getPixels

public int[] getPixels()
Returns final banner as a pixels array.

getPixelsH

public int getPixelsH()
Returns banner's height.

getPixelsW

public int getPixelsW()
Returns banner's length.

JavaZOOM 1999-2006