org.riotfamily.website.txt2img
Class HyphenatedLineBreakMeasurerer

java.lang.Object
  extended by org.riotfamily.website.txt2img.HyphenatedLineBreakMeasurerer

public class HyphenatedLineBreakMeasurerer
extends Object

Class similar to Java's LineBreakMeasurer but with support for soft hyphens.


Constructor Summary
HyphenatedLineBreakMeasurerer(String text, Font font, Color color, FontRenderContext fc)
           
 
Method Summary
 boolean hasNext()
           
 TextLayout nextLayout(float wrappingWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyphenatedLineBreakMeasurerer

public HyphenatedLineBreakMeasurerer(String text,
                                     Font font,
                                     Color color,
                                     FontRenderContext fc)
Method Detail

hasNext

public boolean hasNext()

nextLayout

public TextLayout nextLayout(float wrappingWidth)