Top Description Inners Methods
de.rototor.pdfbox.graphics2d

public Interface IPdfBoxGraphics2DDrawControl

Known Direct Implementers
de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DDrawControlDefault
Imports
java.awt.*

Allows you to influence the fill and draw operations. You can alter the shape to draw/fill, you can even filter out the complete draw/fill operation. And you can draw additional stuff after the draw/fill operation, e.g. to implement overfill.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
IPdfBoxGraphics2DDrawControl.IDrawControlEnv

The environment of the draw operation

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
)

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
)

Called after shape was filled.

public Shape

Returns:

the shape to be filled. If you return null, nothing will be drawn
transformShapeBeforeDraw
(Shape
the shape that will be drawn
shape
,
IPdfBoxGraphics2DDrawControl.IDrawControlEnv
Environment
env
)

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

public Shape

Returns:

the shape to be filled. If you return null, nothing will be filled
transformShapeBeforeFill
(Shape
the shape that will be drawn
shape
,
IPdfBoxGraphics2DDrawControl.IDrawControlEnv
Environment
env
)

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

Method Detail

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

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

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

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

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

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

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

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

de.rototor.pdfbox.graphics2d back to summary

public Interface IPdfBoxGraphics2DDrawControl.IDrawControlEnv


The environment of the draw operation

Method Summary

Modifier and TypeMethod and Description
public PdfBoxGraphics2D

Returns:

the graphics currently drawn on
getGraphics
()

public Paint

Returns:

the current paint set on the graphics.
getPaint
()

Method Detail

getGraphicsback to summary
public PdfBoxGraphics2D getGraphics()
Returns:PdfBoxGraphics2D

the graphics currently drawn on

getPaintback to summary
public Paint getPaint()
Returns:Paint

the current paint set on the graphics.