gestalt.extension.font
Class TextParagraph

java.lang.Object
  extended by gestalt.extension.font.TextParagraph

public class TextParagraph
extends java.lang.Object


Constructor Summary
TextParagraph(FontMetrics theMetrics, java.awt.Font theFont)
           
TextParagraph(FontMetrics theMetrics, java.io.InputStream theInputStream)
           
 
Method Summary
 float[] getBounds()
           
 Vector2f[] getCharacterPositions()
           
 java.awt.Font getFont()
           
 float getFontSize()
           
 TextLine[] getLines()
           
 FontMetrics getMetrics()
           
 char[] getTextCharacters()
           
 java.lang.String getTextStringFormatted()
           
 float getTracking()
          Returns the current tracking value in 1/1000 em.
 void setFontSize(float theSize)
           
 void setLeading(float leading)
           
 void setMetrics(FontMetrics theMetrics)
           
 void setTabList(float[] theTabList)
           
 void setText(java.lang.String theText)
           
 void setTracking(float tracking)
          Set tracking in 1/1000 em, a unit of measure that is relative to the current type size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextParagraph

public TextParagraph(FontMetrics theMetrics,
                     java.io.InputStream theInputStream)

TextParagraph

public TextParagraph(FontMetrics theMetrics,
                     java.awt.Font theFont)
Method Detail

getFont

public java.awt.Font getFont()

setFontSize

public void setFontSize(float theSize)

getFontSize

public float getFontSize()

setTabList

public void setTabList(float[] theTabList)

setMetrics

public void setMetrics(FontMetrics theMetrics)

getMetrics

public FontMetrics getMetrics()

setTracking

public void setTracking(float tracking)
Set tracking in 1/1000 em, a unit of measure that is relative to the current type size. In a 6-point font, 1 em equals 6 points; tracking are strictly proportional to the current type size. Works exactly like in Adobe InDesign.

Parameters:
tracking - int

getTracking

public float getTracking()
Returns the current tracking value in 1/1000 em.

Returns:
int

setText

public void setText(java.lang.String theText)

getTextStringFormatted

public java.lang.String getTextStringFormatted()

getTextCharacters

public char[] getTextCharacters()

setLeading

public void setLeading(float leading)

getLines

public TextLine[] getLines()

getCharacterPositions

public Vector2f[] getCharacterPositions()

getBounds

public float[] getBounds()


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009