Class StaticFontSizeProducer
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.text.font.StaticFontSizeProducer
-
- All Implemented Interfaces:
Cloneable
,ClassificationProducer
,FontSizeProducer
public class StaticFontSizeProducer extends 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
Constructors Constructor Description StaticFontSizeProducer(int maxWidth, int maxHeight, int baseLine)
StaticFontSizeProducer(FontMetrics fontMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
GlyphMetrics
getCharacterSize(int codePoint, GlyphMetrics dimension)
-
-
-
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 interfaceFontSizeProducer
-
clone
public Object clone() throws CloneNotSupportedException
- Specified by:
clone
in interfaceClassificationProducer
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-