Class Renderer
- java.lang.Object
-
- com.netgrif.application.engine.pdf.generator.service.renderer.Renderer
-
- Direct Known Subclasses:
FieldRenderer,PageNumberRenderer,TitleRenderer
public abstract class Renderer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IPdfDrawerpdfDrawerprotected PdfResourceresource
-
Constructor Summary
Constructors Constructor Description Renderer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intgetMaxLabelLineSize(int fieldWidth, int fontSize)protected static intgetTextWidth(java.util.List<java.lang.String> values, org.apache.pdfbox.pdmodel.font.PDType0Font font, int fontSize, PdfResource resource)static booleanisCharEncodable(char character, org.apache.pdfbox.pdmodel.font.PDType0Font font)static java.lang.StringremoveUnsupportedChars(java.lang.String input, PdfResource resource)abstract intrenderLabel(PdfField field)voidsetupRenderer(IPdfDrawer pdfDrawer, PdfResource resource)
-
-
-
Field Detail
-
pdfDrawer
protected IPdfDrawer pdfDrawer
-
resource
protected PdfResource resource
-
-
Method Detail
-
getTextWidth
protected static int getTextWidth(java.util.List<java.lang.String> values, org.apache.pdfbox.pdmodel.font.PDType0Font font, int fontSize, PdfResource resource) throws java.io.IOException- Throws:
java.io.IOException
-
removeUnsupportedChars
public static java.lang.String removeUnsupportedChars(java.lang.String input, PdfResource resource)
-
isCharEncodable
public static boolean isCharEncodable(char character, org.apache.pdfbox.pdmodel.font.PDType0Font font)
-
renderLabel
public abstract int renderLabel(PdfField field) throws java.io.IOException
- Throws:
java.io.IOException
-
setupRenderer
public void setupRenderer(IPdfDrawer pdfDrawer, PdfResource resource)
-
getMaxLabelLineSize
protected int getMaxLabelLineSize(int fieldWidth, int fontSize)
-
-