com.lowagie.text.pdf
public class PdfGraphics2D extends Graphics2D
Nested Class Summary | |
---|---|
static class | PdfGraphics2D.FakeComponent |
static class | PdfGraphics2D.HyperLinkKey |
Field Summary | |
---|---|
static int | AFM_DIVISOR |
float | alpha |
Color | background |
BaseFont | baseFont |
HashMap | baseFonts Storage for BaseFont objects created. |
PdfContentByte | cb |
Area | clip |
Composite | composite |
boolean | convertImagesToJPEG |
protected int | currentFillGState |
protected int | currentStrokeGState |
static int | CLIP |
Graphics2D | dg2 |
boolean | disposeCalled |
protected PdfGState[] | fillGState |
Font | font |
FontMapper | fontMapper |
float | fontSize |
static int | FILL |
float | height |
static AffineTransform | IDENTITY |
float | jpegQuality |
boolean | kid |
ArrayList | kids |
MediaTracker | mediaTracker |
Stroke | oldStroke |
boolean | onlyShapes |
Stroke | originalStroke |
Paint | paint |
Paint | paintFill |
Paint | paintStroke |
Paint | realPaint |
RenderingHints | rhints |
Stroke | stroke |
protected PdfGState[] | strokeGState |
BasicStroke | strokeOne |
static int | STROKE |
AffineTransform | transform |
protected boolean | underline |
float | width |
Constructor Summary | |
---|---|
PdfGraphics2D() | |
PdfGraphics2D(PdfContentByte cb, float width, float height, FontMapper fontMapper, boolean onlyShapes, boolean convertImagesToJPEG, float quality)
Constructor for PDFGraphics2D.
|
Method Summary | |
---|---|
void | addRenderingHints(Map hints) |
static double | asPoints(double d, int i)
Calculates position and/or stroke thickness depending on the font size |
boolean | checkNewPaint(Paint oldPaint) |
void | clearRect(int x, int y, int width, int height) |
void | clip(Shape s) |
void | clipRect(int x, int y, int width, int height) |
void | copyArea(int x, int y, int width, int height, int dx, int dy) |
Graphics | create() |
void | dispose() |
protected void | doAttributes(AttributedCharacterIterator iter)
This routine goes through the attributes and sets the font
before calling the actual string drawing routine |
void | draw(Shape s) |
void | drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) |
void | drawGlyphVector(GlyphVector g, float x, float y) |
boolean | drawImage(Image img, AffineTransform xform, ImageObserver obs) |
void | drawImage(BufferedImage img, BufferedImageOp op, int x, int y) |
boolean | drawImage(Image img, int x, int y, ImageObserver observer) |
boolean | drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) |
boolean | drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) |
boolean | drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) |
boolean | drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) |
boolean | drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) |
boolean | drawImage(Image img, Image mask, AffineTransform xform, Color bgColor, ImageObserver obs) |
void | drawLine(int x1, int y1, int x2, int y2) |
void | drawOval(int x, int y, int width, int height) |
void | drawPolygon(int[] xPoints, int[] yPoints, int nPoints) |
void | drawPolyline(int[] x, int[] y, int nPoints) |
void | drawRect(int x, int y, int width, int height) |
void | drawRenderableImage(RenderableImage img, AffineTransform xform) |
void | drawRenderedImage(RenderedImage img, AffineTransform xform) |
void | drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) |
void | drawString(String s, int x, int y) |
void | drawString(String s, float x, float y) |
void | drawString(AttributedCharacterIterator iterator, int x, int y) |
void | drawString(AttributedCharacterIterator iter, float x, float y) |
void | fill(Shape s) |
void | fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) |
void | fillOval(int x, int y, int width, int height) |
void | fillPolygon(int[] xPoints, int[] yPoints, int nPoints) |
void | fillRect(int x, int y, int width, int height) |
void | fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) |
void | followPath(Shape s, int drawType) |
Color | getBackground() |
BaseFont | getCachedBaseFont(Font f) |
Shape | getClip() |
Rectangle | getClipBounds() |
Color | getColor() |
Composite | getComposite() |
PdfContentByte | getContent() |
GraphicsConfiguration | getDeviceConfiguration() |
Font | getFont() |
FontMetrics | getFontMetrics(Font f) |
FontRenderContext | getFontRenderContext() |
Paint | getPaint()
Method contributed by Alexej Suchov |
Object | getRenderingHint(Key arg0) |
RenderingHints | getRenderingHints() |
Stroke | getStroke() |
AffineTransform | getTransform() |
boolean | hit(Rectangle rect, Shape s, boolean onStroke) |
void | internalDispose(ByteBuffer buf) |
AffineTransform | normalizeMatrix() |
float | normalizeY(float y) |
void | normalizeY(float[] coords) |
void | rotate(double theta) |
void | rotate(double theta, double x, double y) |
void | scale(double sx, double sy) |
void | setBackground(Color color) |
void | setClip(int x, int y, int width, int height) |
void | setClip(Shape s) |
void | setColor(Color color) |
void | setComposite(Composite comp)
Method contributed by Alexej Suchov |
void | setFillPaint() |
void | setFont(Font f)
Sets the current font. |
void | setPaint(Paint paint)
Method contributed by Alexej Suchov |
void | setPaint(boolean invert, double xoffset, double yoffset, boolean fill) |
void | setPaintMode() |
void | setRenderingHint(Key arg0, Object arg1)
Sets a rendering hint |
void | setRenderingHints(Map hints) |
void | setStroke(Stroke s) |
void | setStrokeDiff(Stroke newStroke, Stroke oldStroke) |
void | setStrokePaint() |
void | setTransform(AffineTransform t) |
void | setXORMode(Color c1) |
void | shear(double shx, double shy) |
void | transform(AffineTransform tx) |
Stroke | transformStroke(Stroke stroke) |
void | translate(int x, int y) |
void | translate(double tx, double ty) |
void | waitForImage(Image image) |
See Also: Graphics2D#addRenderingHints(Map)
Parameters: d value to be converted i font size
Returns: position and/or stroke thickness depending on the font size
See Also: Graphics#clearRect(int, int, int, int)
See Also: Graphics2D#clip(Shape)
See Also: Graphics#clipRect(int, int, int, int)
See Also: Graphics#copyArea(int, int, int, int, int, int)
See Also: Graphics#create()
See Also: Graphics#dispose()
Parameters: iter
See Also: Graphics2D#draw(Shape)
See Also: Graphics#drawArc(int, int, int, int, int, int)
See Also: Graphics2D#drawGlyphVector(GlyphVector, float, float)
See Also: Graphics2D#drawImage(Image, AffineTransform, ImageObserver)
See Also: Graphics2D#drawImage(BufferedImage, BufferedImageOp, int, int)
See Also: Graphics#drawImage(Image, int, int, ImageObserver)
See Also: Graphics#drawImage(Image, int, int, int, int, ImageObserver)
See Also: Graphics#drawImage(Image, int, int, Color, ImageObserver)
See Also: Graphics#drawImage(Image, int, int, int, int, Color, ImageObserver)
See Also: Graphics#drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver)
See Also: Graphics#drawImage(Image, int, int, int, int, int, int, int, int, Color, ImageObserver)
See Also: Graphics#drawLine(int, int, int, int)
See Also: Graphics#drawOval(int, int, int, int)
See Also: Graphics#drawPolygon(int[], int[], int)
See Also: Graphics#drawPolyline(int[], int[], int)
See Also: Graphics#fillRect(int, int, int, int)
See Also: Graphics2D#drawRenderableImage(RenderableImage, AffineTransform)
See Also: Graphics2D#drawRenderedImage(RenderedImage, AffineTransform)
See Also: Graphics#drawRoundRect(int, int, int, int, int, int)
See Also: Graphics#drawString(String, int, int)
See Also: Graphics2D#drawString(String, float, float)
See Also: Graphics#drawString(AttributedCharacterIterator, int, int)
See Also: Graphics2D#drawString(AttributedCharacterIterator, float, float)
See Also: Graphics2D#fill(Shape)
See Also: Graphics#fillArc(int, int, int, int, int, int)
See Also: Graphics#fillOval(int, int, int, int)
See Also: Graphics#fillPolygon(int[], int[], int)
See Also: Graphics#fillRect(int, int, int, int)
See Also: Graphics#fillRoundRect(int, int, int, int, int, int)
See Also: Graphics2D#getBackground()
See Also: Graphics#getClip()
See Also: Graphics#getClipBounds()
See Also: Graphics#getColor()
See Also: Graphics2D#getComposite()
See Also: Graphics2D#getDeviceConfiguration()
See Also: Graphics#getFont()
See Also: Graphics#getFontMetrics(Font)
See Also: Graphics2D#getFontRenderContext()
See Also: Graphics2D#getPaint()
Parameters: arg0 a key
Returns: the rendering hint
See Also: Graphics2D#getRenderingHints()
See Also: Graphics2D#getStroke()
See Also: Graphics2D#getTransform()
See Also: Graphics2D#hit(Rectangle, Shape, boolean)
See Also: Graphics2D#rotate(double)
See Also: Graphics2D#rotate(double, double, double)
See Also: Graphics2D#scale(double, double)
See Also: Graphics2D#setBackground(Color)
See Also: Graphics#setClip(int, int, int, int)
See Also: Graphics#setClip(Shape)
See Also: Graphics#setColor(Color)
See Also: Graphics2D#setComposite(Composite)
See Also: Graphics2D#setPaint(Paint)
See Also: Graphics#setPaintMode()
Parameters: arg0 arg1
See Also: Graphics2D#setRenderingHints(Map)
See Also: Graphics2D#setStroke(Stroke)
See Also: Graphics2D#setTransform(AffineTransform)
See Also: Graphics#setXORMode(Color)
See Also: Graphics2D#shear(double, double)
See Also: Graphics2D#transform(AffineTransform)
See Also: Graphics#translate(int, int)
See Also: Graphics2D#translate(double, double)