All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.hermetica.magician.fonts.GLBitmapFont
java.lang.Object
   |
   +----com.hermetica.magician.fonts.GLBitmapFont

  Summary

public class  GLBitmapFont
     extends java.lang.Object
{
          // Fields 1
     public static final String VERSION;

          // Constructors 1
     public GLBitmapFont();

          // Methods 17
     public final void drawCharacter(byte);
     public void drawCharacter(char);
     public final void drawCharacter(int);
     public final void drawString(byte[]);
     public final void drawString(char[]);
     public final void drawString(String);
     public final GLBitmapChar getCharData(char);
     public final int getCharacterHeight(char);
     public final int getCharacterWidth(char);
     public final int getFirstChar();
     public final GLBitmapChar[] getFontData();
     public final String getName();
     public final int getNumChars();
     public final void setFirstChar(int);
     public final void setFontData(GLBitmapChar[]);
     public final void setName(String);
     public final void setNumChars(int);
}

This class should be subclassed to provide class-based portable fonts that can be used in Magician.

Version:
$Revision: 1.5 $
Author:
Alligator Descartes <descarte@arcana.co.uk>


  Cross Reference

Extended By:
GL8x13BitmapFont, GL9x15BitmapFont, GLHelvetica10BitmapFont, GLHelvetica12BitmapFont, GLHelvetica18BitmapFont, GLTimesRoman10BitmapFont, GLTimesRoman24BitmapFont





  Fields

· VERSION

Summary  |  Top
   public static final String VERSION

Version information


  Constructors

· GLBitmapFont

Summary  |  Top

   public GLBitmapFont() 

Constructor



  Methods

· getName

Summary  |  Top
   public final String getName() 

Returns the name of the font



· setName

Summary  |  Top
   public final void setName(String name) 

Sets the name of the font



· getFontData

Summary  |  Top
   public final GLBitmapChar[] getFontData() 

Returns the font data for this font



· setFontData

Summary  |  Top
   public final void setFontData(GLBitmapChar[] fontData) 

Sets the font data at the given index



· getNumChars

Summary  |  Top
   public final int getNumChars() 

Returns the number of characters in the font



· setNumChars

Summary  |  Top
   public final void setNumChars(int numChars) 

Sets the number of characters in the font



· getFirstChar

Summary  |  Top
   public final int getFirstChar() 

Returns the first character index in the font



· setFirstChar

Summary  |  Top
   public final void setFirstChar(int firstChar) 

Sets the first character in the font



· getCharacterWidth

Summary  |  Top
   public final int getCharacterWidth(char character) 

Returns the width of the specified character



· getCharacterHeight

Summary  |  Top
   public final int getCharacterHeight(char character) 

Returns the height of the specified character



· drawCharacter

Summary  |  Top
   public final void drawCharacter(byte charToDraw) 

Draws a character in the current font

Parameter Description
charToDraw The character in the font to draw



· drawCharacter

Summary  |  Top
   public final void drawCharacter(int charToDraw) 

Draws a character in the current font

Parameter Description
charToDraw The character in the font to draw



· drawCharacter

Summary  |  Top
   public void drawCharacter(char charToDraw) 

Draws a character in the current font

Parameter Description
charToDraw The character in the font to draw



· drawString

Summary  |  Top
   public final void drawString(String stringToDraw) 

Draws the specified string in the current font

Parameter Description
stringToDraw The string to draw



· drawString

Summary  |  Top
   public final void drawString(char[] stringToDraw) 

Draws the specified string in the current font

Parameter Description
stringToDraw The string to draw



· drawString

Summary  |  Top
   public final void drawString(byte[] stringToDraw) 

Draws the specified string in the current font

Parameter Description
stringToDraw The string to draw



· getCharData

Summary  |  Top
   public final GLBitmapChar getCharData(char character) 

Returns the data for the given character in the font

Parameter Description
character The character to fetch the bitmap data for



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7