public interface IGraphicsHelper
IGraphicsHelper provides access methods used for graphic
functionallity. The IGraphicsHelper can be referenced
directly within a document template by its name
graphicsHelper.
| Modifier and Type | Method and Description |
|---|---|
ITextStyle |
createTextStyle(java.lang.String fontName,
boolean isBold,
boolean isItalic)
Creates a text style.
|
int |
getNumberOfTextLines(java.lang.String text,
ITextStyle textStyle,
double textHeight,
double width)
Gets the needed number of text lines.
|
double |
getTextLength(java.lang.String text,
ITextStyle textStyle,
double textHeight)
Gets the length of the given text.
|
ITextStyle createTextStyle(java.lang.String fontName, boolean isBold, boolean isItalic)
fontName - font nameisBold - true for boldisItalic - true for italicint getNumberOfTextLines(java.lang.String text,
ITextStyle textStyle,
double textHeight,
double width)
text - The texttextStyle - the text styletextHeight - text line height in mm (distance between two base
lines)width - available width in mmdouble getTextLength(java.lang.String text,
ITextStyle textStyle,
double textHeight)
text - The texttextStyle - the text styletextHeight - text line height in mm (distance between two base
lines)