Package de.rototor.pdfbox.graphics2d
Klasse PdfBoxGraphics2DPaintApplier
java.lang.Object
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DPaintApplier
- Alle implementierten Schnittstellen:
IPdfBoxGraphics2DPaintApplier
Default paint mapper.
NOTE: Objects of this class are stateful and *not* thread safe!
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classInternal State of the PaintApplyer.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DPaintApplier
IPdfBoxGraphics2DPaintApplier.IPaintEnv -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidprotected org.apache.pdfbox.pdmodel.graphics.shading.PDShadingapplyPaint(Paint paint, PdfBoxGraphics2DPaintApplier.PaintApplierState state) Apply paint and graphic stateorg.apache.pdfbox.pdmodel.graphics.shading.PDShadingapplyPaint(Paint paint, org.apache.pdfbox.pdmodel.PDPageContentStream contentStream, AffineTransform tf, IPdfBoxGraphics2DPaintApplier.IPaintEnv env) Apply the paint on the ContentStreamprotected static <T> TgetPropertyValue(Object obj, String propertyGetter) Get a property value from an object using reflection
-
Konstruktordetails
-
PdfBoxGraphics2DPaintApplier
public PdfBoxGraphics2DPaintApplier()
-
-
Methodendetails
-
applyPaint
public org.apache.pdfbox.pdmodel.graphics.shading.PDShading applyPaint(Paint paint, org.apache.pdfbox.pdmodel.PDPageContentStream contentStream, AffineTransform tf, IPdfBoxGraphics2DPaintApplier.IPaintEnv env) throws IOException Beschreibung aus Schnittstelle kopiert:IPdfBoxGraphics2DPaintApplierApply the paint on the ContentStream- Angegeben von:
applyPaintin SchnittstelleIPdfBoxGraphics2DPaintApplier- Parameter:
paint- the paint which should be appliedcontentStream- the content stream to apply the paint ontf- the current transform of the Graphics2D relative to the contentStream default coordinate space. This is always a copy of the current transform, so we can modify it.env- Environment for mapping the paint.- Gibt zurück:
- null or a PDShading which should be used to fill a shape.
- Löst aus:
IOException- if its not possible to write the paint into the contentStream
-
applyAsStrokingColor
protected void applyAsStrokingColor(Color color, PdfBoxGraphics2DPaintApplier.PaintApplierState state) throws IOException - Löst aus:
IOException
-
applyPaint
protected org.apache.pdfbox.pdmodel.graphics.shading.PDShading applyPaint(Paint paint, PdfBoxGraphics2DPaintApplier.PaintApplierState state) throws IOException Apply paint and graphic state- Löst aus:
IOException
-
getPropertyValue
Get a property value from an object using reflection- Typparameter:
T- the type of the property you want to get.- Parameter:
obj- The object to get a property from.propertyGetter- method name of the getter, i.e. "getXY".- Gibt zurück:
- the value read from the object
-