Package de.rototor.pdfbox.graphics2d
Schnittstelle IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
- Umschließende Schnittstelle:
IPdfBoxGraphics2DFontTextDrawer
public static interface IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
Enviroment for font based drawing of text
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidapplyPaint(Paint paint, Shape shapeToDraw) Apply the given paint on the current content streamvoidapplyStroke(Stroke stroke) Apply this stroke on the current content streamorg.apache.pdfbox.pdmodel.PDPageContentStreamorg.apache.pdfbox.pdmodel.PDDocumentgetFont()org.apache.pdfbox.pdmodel.common.PDRectanglegetPaint()org.apache.pdfbox.pdmodel.PDResources
-
Methodendetails
-
getDocument
org.apache.pdfbox.pdmodel.PDDocument getDocument()- Gibt zurück:
- the document we are writing to
-
getContentStream
org.apache.pdfbox.pdmodel.PDPageContentStream getContentStream()- Gibt zurück:
- the content stream
-
getFont
Font getFont()- Gibt zurück:
- the current font set on the graphics. This is the "default" font to
use when no other font is set on the
AttributedCharacterIterator.
-
getPaint
Paint getPaint()- Gibt zurück:
- the current paint set on the graphics. This is the "default" paint
when no other paint is set on on the
AttributedCharacterIterator.
-
applyPaint
Apply the given paint on the current content stream- Parameter:
paint- Paint to applyshapeToDraw- the shape to draw of the text, if known. This is needed to calculate correct gradients.- Löst aus:
IOException- if an IO error occurs when writing the paint to the content stream.
-
getFontRenderContext
FontRenderContext getFontRenderContext()- Gibt zurück:
- the
Graphics2DFontRenderContext
-
getGraphicsBBox
org.apache.pdfbox.pdmodel.common.PDRectangle getGraphicsBBox()- Gibt zurück:
- the bbox of the
PdfBoxGraphics2D
-
getResources
org.apache.pdfbox.pdmodel.PDResources getResources()- Gibt zurück:
- the resource of the content stream
-
getCalculationGraphics
Graphics2D getCalculationGraphics()- Gibt zurück:
- the default calcuation BufferedImage based graphics.
-
applyStroke
Apply this stroke on the current content stream- Parameter:
stroke- the stroke to apply- Löst aus:
IOException
-
getCurrentEffectiveTransform
AffineTransform getCurrentEffectiveTransform()- Gibt zurück:
- the current transform active to draw on this stream
-