Class FieldBuilder
- java.lang.Object
-
- com.netgrif.application.engine.pdf.generator.service.fieldbuilder.FieldBuilder
-
- Direct Known Subclasses:
DataGroupFieldBuilder,I18nDividerFieldBuilder,SelectionFieldBuilder,TextFieldBuilder,TitleFieldBuilder
public abstract class FieldBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected intlastXprotected intlastYprotected PdfResourceresource
-
Constructor Summary
Constructors Constructor Description FieldBuilder(PdfResource resource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbreakLongWordToMultipleLine(java.lang.StringBuilder output, java.lang.String longWord, int lineLength, int maxLineLength)static intcountBottomPosY(PdfField field, PdfResource resource)intcountPosX(PdfField field)static intcountTopPosY(PdfField field, PdfResource resource)static java.util.List<java.lang.String>generateMultiLineText(java.util.List<java.lang.String> values, float maxLineLength)protected voidsetFieldParams(DataGroup dg, LocalisedField field, PdfField pdfField)protected voidsetFieldPositions(PdfField pdfField, int fontSize)
-
-
-
Field Detail
-
resource
protected PdfResource resource
-
lastX
protected int lastX
-
lastY
protected int lastY
-
-
Constructor Detail
-
FieldBuilder
public FieldBuilder(PdfResource resource)
-
-
Method Detail
-
countTopPosY
public static int countTopPosY(PdfField field, PdfResource resource)
-
countBottomPosY
public static int countBottomPosY(PdfField field, PdfResource resource)
-
generateMultiLineText
public static java.util.List<java.lang.String> generateMultiLineText(java.util.List<java.lang.String> values, float maxLineLength)
-
breakLongWordToMultipleLine
public static void breakLongWordToMultipleLine(java.lang.StringBuilder output, java.lang.String longWord, int lineLength, int maxLineLength)
-
setFieldParams
protected void setFieldParams(DataGroup dg, LocalisedField field, PdfField pdfField)
-
setFieldPositions
protected void setFieldPositions(PdfField pdfField, int fontSize)
-
countPosX
public int countPosX(PdfField field)
-
-