Class StaticFontSizeProducer
java.lang.Object
org.pentaho.reporting.libraries.fonts.text.font.StaticFontSizeProducer
- All Implemented Interfaces:
Cloneable
,ClassificationProducer
,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
ConstructorsConstructorDescriptionStaticFontSizeProducer
(int maxWidth, int maxHeight, int baseLine) StaticFontSizeProducer
(FontMetrics fontMetrics) -
Method Summary
Modifier and TypeMethodDescriptionclone()
getCharacterSize
(int codePoint, GlyphMetrics dimension)
-
Constructor Details
-
StaticFontSizeProducer
-
StaticFontSizeProducer
public StaticFontSizeProducer(int maxWidth, int maxHeight, int baseLine)
-
-
Method Details
-
getCharacterSize
- Specified by:
getCharacterSize
in interfaceFontSizeProducer
-
clone
- Specified by:
clone
in interfaceClassificationProducer
- Throws:
CloneNotSupportedException
-