Index
All Classes and Interfaces|All Packages
A
- addImage(Image, boolean) - Method in class org.jfree.pdf.Page
-
Adds an image to the page.This creates the required PDF object, as well as adding a reference in the
xObjects
resources. - addRenderingHints(Map<?, ?>) - Method in class org.jfree.pdf.PDFGraphics2D
-
Adds all the supplied rendering hints.
C
- clearRect(int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Clears the specified rectangle by filling it with the current background color.
- clip(Shape) - Method in class org.jfree.pdf.PDFGraphics2D
-
Clips to the intersection of the current clipping region and the specified shape.
- clipRect(int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Clips to the intersection of the current clipping region and the specified rectangle.
- copyArea(int, int, int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
This method does nothing.
- create() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns a new
PDFGraphics2D
instance that is a copy of this instance. - createCompatibleVolatileImage(int, int, ImageCapabilities, int) - Method in class org.jfree.pdf.PDFGraphicsConfiguration
- createPage(Rectangle2D) - Method in class org.jfree.pdf.PDFDocument
-
Creates a new
Page
, adds it to the document, and returns a reference to thePage
.
D
- DefaultFontMapper - Class in org.jfree.pdf
-
A class that can be used to map AWT/Java2D fonts to PDF built-in font names.
- DefaultFontMapper() - Constructor for class org.jfree.pdf.DefaultFontMapper
-
Creates a new instance with default mappings.
- dispose() - Method in class org.jfree.pdf.PDFGraphics2D
-
Performs any actions required when the graphics instance is finished with.
- draw(Shape) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the specified shape with the current
paint
andstroke
. - drawArc(int, int, int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws an arc contained within the rectangle
(x, y, width, height)
, starting atstartAngle
and continuing througharcAngle
degrees using the currentpaint
andstroke
. - drawGlyphVector(GlyphVector, float, float) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the specified glyph vector at the location
(x, y)
. - drawImage(BufferedImage, BufferedImageOp, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the image resulting from applying the
BufferedImageOp
to the specified image at the location(x, y)
. - drawImage(Image, int, int, int, int, int, int, int, int, Color, ImageObserver) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws part of an image (defined by the source rectangle
(sx1, sy1, sx2, sy2)
) into the destination rectangle(dx1, dy1, dx2, dy2)
. - drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws part of an image (defined by the source rectangle
(sx1, sy1, sx2, sy2)
) into the destination rectangle(dx1, dy1, dx2, dy2)
. - drawImage(Image, int, int, int, int, Color, ImageObserver) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws an image to the rectangle
(x, y, w, h)
(scaling it if required), first filling the background with the specified color. - drawImage(Image, int, int, int, int, ImageObserver) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the image into the rectangle defined by
(x, y, w, h)
. - drawImage(Image, int, int, Color, ImageObserver) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws an image at the location
(x, y)
. - drawImage(Image, int, int, ImageObserver) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws an image at the location
(x, y)
. - drawImage(Image, AffineTransform, ImageObserver) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws an image with the specified transform.
- drawLine(int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws a line from
(x1, y1)
to(x2, y2)
using the currentpaint
andstroke
. - drawOval(int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws an oval framed by the rectangle
(x, y, width, height)
using the currentpaint
andstroke
. - drawPolygon(int[], int[], int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the specified polygon using the current
paint
andstroke
. - drawPolyline(int[], int[], int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the specified multi-segment line using the current
paint
andstroke
. - drawRenderableImage(RenderableImage, AffineTransform) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the renderable image.
- drawRenderedImage(RenderedImage, AffineTransform) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws the rendered image.
- drawRoundRect(int, int, int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws a rectangle with rounded corners using the current
paint
andstroke
. - drawString(String, float, float) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws a string at
(x, y)
. - drawString(String, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws a string at
(x, y)
. - drawString(AttributedCharacterIterator, float, float) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws a string of attributed characters at
(x, y)
. - drawString(AttributedCharacterIterator, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Draws a string of attributed characters at
(x, y)
.
F
- fill(Shape) - Method in class org.jfree.pdf.PDFGraphics2D
-
Fills the specified shape with the current
paint
. - fillArc(int, int, int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Fills an arc contained within the rectangle
(x, y, width, height)
, starting atstartAngle
and continuing througharcAngle
degrees, using the currentpaint
- fillOval(int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Fills an oval framed by the rectangle
(x, y, width, height)
. - fillPolygon(int[], int[], int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Fills the specified polygon using the current
paint
. - fillRect(int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Fills the specified rectangle with the current
paint
. - fillRoundRect(int, int, int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Fills a rectangle with rounded corners.
- findOrCreateFontReference(Font) - Method in class org.jfree.pdf.Page
-
Finds the font reference corresponding to the given Java2D font, creating a new one if there isn't one already.
- findOrCreateGSDictionary(int) - Method in class org.jfree.pdf.Page
-
Returns the name of the Graphics State Dictionary that can be used for the specified alpha value - if there is no existing dictionary then a new one is created.
- findOrCreatePattern(GradientPaint) - Method in class org.jfree.pdf.Page
-
Returns the name of the pattern for the specified
GradientPaint
, reusing an existing pattern if possible, otherwise creating a new pattern if necessary. - findOrCreatePattern(RadialGradientPaint) - Method in class org.jfree.pdf.Page
-
Returns the name of the pattern for the specified
RadialGradientPaint
, reusing an existing pattern if possible, otherwise creating a new pattern if necessary. - FontMapper - Interface in org.jfree.pdf
-
Maps an AWT font to a PDF built-in font.
G
- getAuthor() - Method in class org.jfree.pdf.PDFDocument
-
Returns the author for the document.
- getBackground() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the background color.
- getBounds() - Method in class org.jfree.pdf.Page
-
Returns a new rectangle containing the bounds for this page (as supplied to the constructor).
- getBounds() - Method in class org.jfree.pdf.PDFGraphicsConfiguration
-
Returns the bounds for this configuration.
- getClip() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the user clipping region.
- getClipBounds() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the bounds of the user clipping region.
- getColor() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the foreground color.
- getColorModel() - Method in class org.jfree.pdf.PDFGraphicsConfiguration
-
Returns the color model for this configuration.
- getColorModel(int) - Method in class org.jfree.pdf.PDFGraphicsConfiguration
-
Returns the color model for the specified transparency type, or
null
. - getComposite() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the current composite.
- getConfigurations() - Method in class org.jfree.pdf.PDFGraphicsDevice
-
Returns all configurations for this device.
- getContents() - Method in class org.jfree.pdf.Page
-
Returns the
PDFObject
that represents the page content. - getDefaultConfiguration() - Method in class org.jfree.pdf.PDFGraphicsDevice
-
Returns the default configuration for this device.
- getDefaultTransform() - Method in class org.jfree.pdf.PDFGraphicsConfiguration
-
Returns the default transform.
- getDevice() - Method in class org.jfree.pdf.PDFGraphicsConfiguration
-
Returns the graphics device that this configuration is associated with.
- getDeviceConfiguration() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the device configuration associated with this
Graphics2D
. - getFont() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the current font used for drawing text.
- getFontMetrics(Font) - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the font metrics for the specified font.
- getFontRenderContext() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the font render context.
- getGraphics2D() - Method in class org.jfree.pdf.Page
-
Returns the
PDFGraphics2D
instance for drawing to the page. - getIDstring() - Method in class org.jfree.pdf.PDFGraphicsDevice
-
Returns the id string.
- getNextNumber() - Method in class org.jfree.pdf.PDFDocument
-
Returns a new PDF object number and increments the internal counter for the next PDF object number.
- getNormalizingTransform() - Method in class org.jfree.pdf.PDFGraphicsConfiguration
-
Returns the normalizing transform.
- getObjectBytes() - Method in class org.jfree.pdf.Page
- getPaint() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the paint used to draw or fill shapes (or text).
- getPDFBytes() - Method in class org.jfree.pdf.PDFDocument
-
Returns a byte array containing the encoding of this PDF document.
- getRenderingHint(RenderingHints.Key) - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the current value for the specified hint.
- getRenderingHints() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns a copy of the rendering hints.
- getStroke() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns the current stroke (used when drawing shapes).
- getTitle() - Method in class org.jfree.pdf.PDFDocument
-
Returns the title for the document.
- getTransform() - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns a copy of the current transform.
- getType() - Method in class org.jfree.pdf.PDFGraphicsDevice
-
Returns the device type.
H
- hit(Rectangle, Shape, boolean) - Method in class org.jfree.pdf.PDFGraphics2D
-
Returns
true
if the rectangle (in device space) intersects with the shape (the interior, ifonStroke
is false, otherwise the stroked outline of the shape).
I
- isCompatibleValue(Object) - Method in class org.jfree.pdf.PDFHints.Key
-
Returns
true
ifval
is a value that is compatible with this key, andfalse
otherwise. - isDebugMode() - Method in class org.jfree.pdf.PDFDocument
-
Returns the debug mode flag that controls whether or not the output stream is filtered.
K
- Key(int) - Constructor for class org.jfree.pdf.PDFHints.Key
-
Creates a new instance with the specified key.
- KEY_DRAW_STRING_TYPE - Static variable in class org.jfree.pdf.PDFHints
-
The key for the hint that controls whether strings are rendered as characters (standard PDF output) or vector graphics (implemented using
TextLayout
).
M
- mapToBaseFont(Font) - Method in class org.jfree.pdf.DefaultFontMapper
- mapToBaseFont(Font) - Method in interface org.jfree.pdf.FontMapper
-
Returns the name of the PDF built-in font that should be used in place of the specified AWT/Java2D font.
O
- org.jfree.pdf - module org.jfree.pdf
-
JFreePDF provides an implementation of the
Graphics2D
API that produces output in Adobe's Portable Document Format (PDF). - org.jfree.pdf - package org.jfree.pdf
-
Contains
PDFGraphics2D
and supporting classes to allow Java2D rendering to Adobe's Portable Document Format (PDF).
P
- Page - Class in org.jfree.pdf
-
Represents a page in a
PDFDocument
. - PDFDocument - Class in org.jfree.pdf
-
Represents a PDF document.
- PDFDocument() - Constructor for class org.jfree.pdf.PDFDocument
-
Creates a new
PDFDocument
, initially with no content. - PDFGraphics2D - Class in org.jfree.pdf
-
A
Graphics2D
implementation that writes to PDF format. - PDFGraphicsConfiguration - Class in org.jfree.pdf
-
A graphics configuration for the
PDFGraphics2D
class. - PDFGraphicsConfiguration(int, int) - Constructor for class org.jfree.pdf.PDFGraphicsConfiguration
-
Creates a new instance.
- PDFGraphicsDevice - Class in org.jfree.pdf
-
A graphics device for use in the
PDFGraphicsConfiguration
class. - PDFGraphicsDevice(String, GraphicsConfiguration) - Constructor for class org.jfree.pdf.PDFGraphicsDevice
-
Creates a new instance.
- PDFHints - Class in org.jfree.pdf
-
Defines the rendering hints that can be used with the
PDFGraphics2D
class. - PDFHints.Key - Class in org.jfree.pdf
-
A key for hints used by the
PDFGraphics2D
class.
R
- rotate(double) - Method in class org.jfree.pdf.PDFGraphics2D
-
Applies a rotation (anti-clockwise) about
(0, 0)
. - rotate(double, double, double) - Method in class org.jfree.pdf.PDFGraphics2D
-
Applies a rotation (anti-clockwise) about
(x, y)
.
S
- scale(double, double) - Method in class org.jfree.pdf.PDFGraphics2D
-
Applies a scale transformation.
- setAuthor(String) - Method in class org.jfree.pdf.PDFDocument
-
Sets the author for the document.
- setBackground(Color) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the background color.
- setClip(int, int, int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the user clipping region to the specified rectangle.
- setClip(Shape) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the user clipping region.
- setColor(Color) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the foreground color.
- setComposite(Composite) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the composite (only
AlphaComposite
is handled). - setDebugMode(boolean) - Method in class org.jfree.pdf.PDFDocument
-
Sets the debug MODE flag (this needs to be set before any call to
PDFDocument.createPage(java.awt.geom.Rectangle2D)
). - setFont(Font) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the font to be used for drawing text.
- setPaint(Paint) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the paint used to draw or fill shapes (or text).
- setPaintMode() - Method in class org.jfree.pdf.PDFGraphics2D
-
Does nothing in this
PDFGraphics2D
implementation. - setRenderingHint(RenderingHints.Key, Object) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the value for a hint.
- setRenderingHints(Map<?, ?>) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the rendering hints to the specified collection.
- setStroke(Stroke) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the stroke that will be used to draw shapes.
- setTitle(String) - Method in class org.jfree.pdf.PDFDocument
-
Sets the title for the document.
- setTransform(AffineTransform) - Method in class org.jfree.pdf.PDFGraphics2D
-
Sets the transform.
- setXORMode(Color) - Method in class org.jfree.pdf.PDFGraphics2D
-
Does nothing in this
PDFGraphics2D
implementation. - shear(double, double) - Method in class org.jfree.pdf.PDFGraphics2D
-
Applies a shear transformation.
T
- transform(AffineTransform) - Method in class org.jfree.pdf.PDFGraphics2D
-
Applies this transform to the existing transform by concatenating it.
- translate(double, double) - Method in class org.jfree.pdf.PDFGraphics2D
-
Applies the translation
(tx, ty)
. - translate(int, int) - Method in class org.jfree.pdf.PDFGraphics2D
-
Applies the translation
(tx, ty)
.
V
- VALUE_DRAW_STRING_TYPE_STANDARD - Static variable in class org.jfree.pdf.PDFHints
-
Hint value for
KEY_DRAW_STRING_TYPE
to specify that strings should be written to the output using standard PDF text primitives. - VALUE_DRAW_STRING_TYPE_VECTOR - Static variable in class org.jfree.pdf.PDFHints
-
Hint value for
KEY_DRAW_STRING_TYPE
to say that strings should be written to the output using vector graphics primitives.
W
- writeToFile(File) - Method in class org.jfree.pdf.PDFDocument
-
Writes the PDF document to a file.
All Classes and Interfaces|All Packages