org.pentaho.reporting.libraries.fonts.text.font
Class StaticFontSizeProducer

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.text.font.StaticFontSizeProducer
All Implemented Interfaces:
java.lang.Cloneable, ClassificationProducer, FontSizeProducer

public class StaticFontSizeProducer
extends java.lang.Object
implements FontSizeProducer

Creates a monospaced font from any given font by always returning the maximum character width and height for that font. Grapheme clusters have no effect on that font size producer.

Author:
Thomas Morgner

Field Summary
 
Fields inherited from interface org.pentaho.reporting.libraries.fonts.text.ClassificationProducer
END_OF_TEXT, START_OF_TEXT
 
Constructor Summary
StaticFontSizeProducer(FontMetrics fontMetrics)
           
StaticFontSizeProducer(int maxWidth, int maxHeight, int baseLine)
           
 
Method Summary
 java.lang.Object clone()
           
 GlyphMetrics getCharacterSize(int codePoint, GlyphMetrics dimension)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticFontSizeProducer

public StaticFontSizeProducer(FontMetrics fontMetrics)

StaticFontSizeProducer

public StaticFontSizeProducer(int maxWidth,
                              int maxHeight,
                              int baseLine)
Method Detail

getCharacterSize

public GlyphMetrics getCharacterSize(int codePoint,
                                     GlyphMetrics dimension)
Specified by:
getCharacterSize in interface FontSizeProducer

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface ClassificationProducer
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException