controlP5
Class BitFontRenderer

java.lang.Object
  extended by controlP5.BitFontRenderer

public class BitFontRenderer
extends java.lang.Object

The bitfontRenderer is used to draw any text labels used by controlP5 by default. The bitfontRenderer is based on a per pixel technique and is not using processing's PFont renderer. To use PFonts within controlP5, take a look at ControlFont

See Also:
ControlFont

Field Summary
static int grixel
           
static boolean isInit
           
static int standard56
           
static int standard58
           
static int synt24
           
 
Constructor Summary
BitFontRenderer()
           
 
Method Summary
 int addBitFont(processing.core.PImage theImage)
          TODO implement addBitFont
 int getWidth(Label theLabel)
           
 int getWidth(java.lang.String theText, Label theLabel)
          get the width of a text line based on used bit font.
 int write(Label theLabel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standard58

public static final int standard58
See Also:
Constant Field Values

standard56

public static final int standard56
See Also:
Constant Field Values

synt24

public static final int synt24
See Also:
Constant Field Values

grixel

public static final int grixel
See Also:
Constant Field Values

isInit

public static boolean isInit
Constructor Detail

BitFontRenderer

public BitFontRenderer()
Method Detail

addBitFont

public int addBitFont(processing.core.PImage theImage)
TODO implement addBitFont

Parameters:
theImage -
Returns:

getWidth

public int getWidth(Label theLabel)

getWidth

public int getWidth(java.lang.String theText,
                    Label theLabel)
get the width of a text line based on used bit font.

Parameters:
theText -
theFontIndex -
Returns:

write

public int write(Label theLabel)


processing library controlP5 by Andreas Schlegel. (c) 2010