Textlabel

description
a textlabel is a one-line-text for labeling things or leaving notes.
+Example
import controlP5.*;

ControlP5 controlP5;

Textlabel myTextlabel;

void setup() {
  size(400,400);
  frameRate(30);
  controlP5 = new ControlP5(this);

  Textlabel t = controlP5.addTextlabel("label","A SINGLE TESTLABEL.",20,134);
  t.setColorValue(0xffffff00);
  
  myTextlabel = new Textlabel(this,"a single textlabel.",20,100,400,200,0xffff0000,ControlP5.synt24);
  myTextlabel.setLetterSpacing(2);
}


void draw() {
  background(0);
  myTextlabel.draw(this); 
}
constructors
Textlabel(theComponent, theValue, theX, theY, theW, theH, theColor, theFont);
Textlabel(theComponent, theValue, theX, theY);
parameters
theComponentPApplet 
theValueString 
theXint 
theYint 
theWint 
theHint 
theColorint 
theFontint 
Methods
draw ( )
draw the textlabel.
setFont ( )
set the Pixel-Fontstyle of the Textlabel. see BitFontRenderer for available pixelfonts.
setLetterSpacing ( )
set the letter spacing of the font.
setPosition ( )
set the position of the textlabel.
setValue ( )
set the text of the textlabel.
usage
Web & Application