Uses of Interface
org.newdawn.slick.Font

Packages that use Font
org.newdawn.slick   
org.newdawn.slick.gui Some extremely simple GUI elements which should be used where a game does not require a full GUI 
org.newdawn.slick.util Utilities to support the library. 
 

Uses of Font in org.newdawn.slick
 

Classes in org.newdawn.slick that implement Font
 class AngelCodeFont
          A font implementation that will parse BMFont format font files.
 class SpriteSheetFont
          A font implementation that will use the graphics inside a SpriteSheet for its data.
 class TrueTypeFont
          A TrueType font implementation for Slick
 class UnicodeFont
          A Slick bitmap font that can display unicode glyphs from a TrueTypeFont.
 

Fields in org.newdawn.slick declared as Font
protected static Font Graphics.DEFAULT_FONT
          The default font to use
 

Methods in org.newdawn.slick that return Font
 Font GameContainer.getDefaultFont()
          Get the default system font
 Font Graphics.getFont()
          Get the current font
 

Methods in org.newdawn.slick with parameters of type Font
 void GameContainer.setDefaultFont(Font font)
          Set the default font that will be intialised in the graphics held in this container
 void Graphics.setFont(Font font)
          Set the font to be used when rendering text
 

Uses of Font in org.newdawn.slick.gui
 

Methods in org.newdawn.slick.gui that return Font
 Font GUIContext.getDefaultFont()
          Get the default system font
 

Constructors in org.newdawn.slick.gui with parameters of type Font
TextField(GUIContext container, Font font, int x, int y, int width, int height)
          Create a new text field
TextField(GUIContext container, Font font, int x, int y, int width, int height, ComponentListener listener)
          Create a new text field
 

Uses of Font in org.newdawn.slick.util
 

Methods in org.newdawn.slick.util with parameters of type Font
static void FontUtils.drawCenter(Font font, java.lang.String s, int x, int y, int width)
          Draw text center justified
static void FontUtils.drawCenter(Font font, java.lang.String s, int x, int y, int width, Color color)
          Draw text center justified
static void FontUtils.drawLeft(Font font, java.lang.String s, int x, int y)
          Draw text left justified
static void FontUtils.drawRight(Font font, java.lang.String s, int x, int y, int width)
          Draw text right justified
static void FontUtils.drawRight(Font font, java.lang.String s, int x, int y, int width, Color color)
          Draw text right justified
static int FontUtils.drawString(Font font, java.lang.String s, int alignment, int x, int y, int width, Color color)
          Draw a string
 



Copyright © 2006 New Dawn Software. All Rights Reserved.