Top Description Fields Constructors Methods
de.rototor.pdfbox.graphics2d

public Class PdfBoxGraphics2DDrawControlDefault

extends Object
implements IPdfBoxGraphics2DDrawControl
Class Inheritance
All Implemented Interfaces
de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl
Imports
java.awt.*

Default implementation which does nothing. You can derive from it to only override the needed methods

Field Summary

Modifier and TypeField and Description
public static final PdfBoxGraphics2DDrawControlDefault

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
afterShapeDraw(Shape
the shape that was drawn. This is the original shape, not the one transformed by transformShapeBeforeDraw(java.awt.Shape, IDrawControlEnv).
shape
,
IPdfBoxGraphics2DDrawControl.IDrawControlEnv
Environment
env
)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.afterShapeDraw.

Called after shape was drawn.

public void
afterShapeFill(Shape
the shape that was filled. This is the original shape, not the one transformed by transformShapeBeforeFill(java.awt.Shape, IDrawControlEnv).
shape
,
IPdfBoxGraphics2DDrawControl.IDrawControlEnv
Environment
env
)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.afterShapeFill.

Called after shape was filled.

public Shape
transformShapeBeforeDraw(Shape
the shape that will be drawn
shape
,
IPdfBoxGraphics2DDrawControl.IDrawControlEnv
Environment
env
)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.transformShapeBeforeDraw.

You may optional change the shape that is going to be drawn.

public Shape
transformShapeBeforeFill(Shape
the shape that will be drawn
shape
,
IPdfBoxGraphics2DDrawControl.IDrawControlEnv
Environment
env
)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.transformShapeBeforeFill.

You may optional change the shape that is going to be filled.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final PdfBoxGraphics2DDrawControlDefault INSTANCE

Constructor Detail

PdfBoxGraphics2DDrawControlDefaultback to summary
protected PdfBoxGraphics2DDrawControlDefault()

Method Detail

afterShapeDrawback to summary
public void afterShapeDraw(Shape shape, IPdfBoxGraphics2DDrawControl.IDrawControlEnv env)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.afterShapeDraw.

Doc from de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.afterShapeDraw.

Called after shape was drawn. This method is always called, even if transformShapeBeforeDraw(java.awt.Shape, IDrawControlEnv) returns null.

Parameters
shape:Shape

the shape that was drawn. This is the original shape, not the one transformed by transformShapeBeforeDraw(java.awt.Shape, IDrawControlEnv).

env:IPdfBoxGraphics2DDrawControl.IDrawControlEnv

Environment

Annotations
@Override
afterShapeFillback to summary
public void afterShapeFill(Shape shape, IPdfBoxGraphics2DDrawControl.IDrawControlEnv env)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.afterShapeFill.

Doc from de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.afterShapeFill.

Called after shape was filled. This method is always called, even if transformShapeBeforeFill(java.awt.Shape, IDrawControlEnv) returns null.

Parameters
shape:Shape

the shape that was filled. This is the original shape, not the one transformed by transformShapeBeforeFill(java.awt.Shape, IDrawControlEnv).

env:IPdfBoxGraphics2DDrawControl.IDrawControlEnv

Environment

Annotations
@Override
transformShapeBeforeDrawback to summary
public Shape transformShapeBeforeDraw(Shape shape, IPdfBoxGraphics2DDrawControl.IDrawControlEnv env)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.transformShapeBeforeDraw.

Doc from de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.transformShapeBeforeDraw.

You may optional change the shape that is going to be drawn. You can also do other stuff here like drawing an overfill before the real shape.

Parameters
shape:Shape

the shape that will be drawn

env:IPdfBoxGraphics2DDrawControl.IDrawControlEnv

Environment

Returns:Shape

the shape to be filled. If you return null, nothing will be drawn

Annotations
@Override
transformShapeBeforeFillback to summary
public Shape transformShapeBeforeFill(Shape shape, IPdfBoxGraphics2DDrawControl.IDrawControlEnv env)

Implements de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.transformShapeBeforeFill.

Doc from de.rototor.pdfbox.graphics2d.IPdfBoxGraphics2DDrawControl.transformShapeBeforeFill.

You may optional change the shape that is going to be filled. You can also do other stuff here like drawing an overfill before the real shape.

Parameters
shape:Shape

the shape that will be drawn

env:IPdfBoxGraphics2DDrawControl.IDrawControlEnv

Environment

Returns:Shape

the shape to be filled. If you return null, nothing will be filled

Annotations
@Override