Package com.pdfjet
Class TextParameters
java.lang.Object
com.pdfjet.TextParameters
The font, font size, location and text for Stamp.drawText.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates text parameters with a font size of 12, located at (0, 0). -
Method Summary
Modifier and TypeMethodDescriptionSets the font.setFontSize(float fontSize) Sets the font size.setLocation(float x, float y) Sets the location of the text.Sets the text.
-
Constructor Details
-
TextParameters
public TextParameters()Creates text parameters with a font size of 12, located at (0, 0).
-
-
Method Details
-
setFont
Sets the font.- Parameters:
font- the font.- Returns:
- this TextParameters object.
-
setFontSize
Sets the font size.- Parameters:
fontSize- the font size.- Returns:
- this TextParameters object.
-
setLocation
Sets the location of the text.- Parameters:
x- the x coordinate.y- the y coordinate.- Returns:
- this TextParameters object.
-
setText
Sets the text.- Parameters:
text- the text.- Returns:
- this TextParameters object.
-