G4P (GUI for Processing)  4.3.8
A set of GUI controls for your Processing sketch.
 All Classes Functions Variables Pages
g4p_controls.StyledString.TextLayoutInfo Class Reference
Inheritance diagram for g4p_controls.StyledString.TextLayoutInfo:

Public Member Functions

int compareTo (TextLayoutInfo other)
 TextLayoutInfo (int lineNo, TextLayout layout, int startCharIndex, int nbrChars, float yPosInPara)
String toString ()

Public Attributes

final TextLayout layout
final int lineNo
final int nbrChars
final int startCharIndex
final float yPosInPara

Detailed Description

Class to hold information about a text layout. This class helps simplify the algorithms needed for multi-line text.

Peter Lager

Constructor & Destructor Documentation

g4p_controls.StyledString.TextLayoutInfo.TextLayoutInfo ( int  lineNo,
TextLayout  layout,
int  startCharIndex,
int  nbrChars,
float  yPosInPara 
lineNothe line number
layoutthe matching text layout
startCharIndexPosition of the first char in text
nbrCharsNumber of chars in this layout
yPosInParaTop-left corner of bounds