Package net.codecrete.qrbill.canvas
Class AbstractCanvas
- java.lang.Object
-
- net.codecrete.qrbill.canvas.AbstractCanvas
-
-
Field Summary
Fields Modifier and Type Field Description protected static doubleMM_TO_PT
-
Constructor Summary
Constructors Constructor Description AbstractCanvas()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidputTextLines(java.lang.String[] lines, double x, double y, int fontSize, double leading)Adds several lines of text to the graphics.-
Methods inherited from interface net.codecrete.qrbill.canvas.Canvas
addRectangle, fillPath, getResult, lineTo, moveTo, putText, setTransformation, setupPage, startPath, strokePath
-
-
-
-
Field Detail
-
MM_TO_PT
protected static final double MM_TO_PT
- See Also:
- Constant Field Values
-
-
Method Detail
-
putTextLines
public void putTextLines(java.lang.String[] lines, double x, double y, int fontSize, double leading) throws java.io.IOExceptionDescription copied from interface:CanvasAdds several lines of text to the graphics.The text position refers to the left most point on the baseline of the first text line. Additional lines then follow below.
- Specified by:
putTextLinesin interfaceCanvas- Parameters:
lines- the text linesx- x position of the text's start (in mm)y- y position of the text's top (in mm)fontSize- the font size (in pt)leading- additional vertical space between text lines (in mm)- Throws:
java.io.IOException- thrown if the graphics cannot be generated
-
-