Package com.itextpdf.awt
Class PdfGraphics2D
- java.lang.Object
-
- java.awt.Graphics
-
- java.awt.Graphics2D
-
- com.itextpdf.awt.PdfGraphics2D
-
- Direct Known Subclasses:
PdfPrinterGraphics2D
public class PdfGraphics2D extends java.awt.Graphics2D
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PdfGraphics2D.FakeComponent
static class
PdfGraphics2D.HyperLinkKey
private static class
PdfGraphics2D.Kid
-
Field Summary
Fields Modifier and Type Field Description static int
AFM_DIVISOR
private float
alpha
protected java.awt.Color
background
protected BaseFont
baseFont
protected java.util.HashMap<java.lang.String,BaseFont>
baseFonts
Storage for BaseFont objects created.protected PdfContentByte
cb
protected java.awt.geom.Area
clip
private static int
CLIP
private java.awt.Composite
composite
private boolean
convertImagesToJPEG
protected int
currentFillGState
protected int
currentStrokeGState
private java.awt.Graphics2D
dg2
protected boolean
disposeCalled
private static int
FILL
protected PdfGState[]
fillGState
protected java.awt.Font
font
protected FontMapper
fontMapper
protected float
fontSize
protected float
height
private static java.awt.geom.AffineTransform
IDENTITY
private float
jpegQuality
private boolean
kid
private java.util.ArrayList<PdfGraphics2D.Kid>
kids
private java.awt.MediaTracker
mediaTracker
private java.awt.Stroke
oldStroke
private boolean
onlyShapes
protected java.awt.Stroke
originalStroke
protected java.awt.Paint
paint
private java.awt.Paint
paintFill
private java.awt.Paint
paintStroke
private java.awt.Paint
realPaint
protected java.awt.RenderingHints
rhints
protected boolean
strikethrough
protected java.awt.Stroke
stroke
private static int
STROKE
protected PdfGState[]
strokeGState
private java.awt.BasicStroke
strokeOne
protected java.awt.geom.AffineTransform
transform
protected boolean
underline
protected float
width
-
Constructor Summary
Constructors Modifier Constructor Description private
PdfGraphics2D()
PdfGraphics2D(PdfContentByte cb, float width, float height)
PdfGraphics2D(PdfContentByte cb, float width, float height, boolean onlyShapes)
PdfGraphics2D(PdfContentByte cb, float width, float height, FontMapper fontMapper)
PdfGraphics2D(PdfContentByte cb, float width, float height, FontMapper fontMapper, boolean onlyShapes, boolean convertImagesToJPEG, float quality)
Constructor for PDFGraphics2D.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRenderingHints(java.util.Map<?,?> hints)
static double
asPoints(double d, int i)
Calculates position and/or stroke thickness depending on the font sizeprivate boolean
checkNewPaint(java.awt.Paint oldPaint)
void
clearRect(int x, int y, int width, int height)
void
clip(java.awt.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)
java.awt.Graphics
create()
void
dispose()
protected void
doAttributes(java.text.AttributedCharacterIterator iter)
This routine goes through the attributes and sets the font before calling the actual string drawing routinevoid
draw(java.awt.Shape s)
void
drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
void
drawGlyphVector(java.awt.font.GlyphVector g, float x, float y)
void
drawImage(java.awt.image.BufferedImage img, java.awt.image.BufferedImageOp op, int x, int y)
boolean
drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
boolean
drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
boolean
drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
boolean
drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.image.ImageObserver observer)
boolean
drawImage(java.awt.Image img, int x, int y, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
boolean
drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
boolean
drawImage(java.awt.Image img, java.awt.geom.AffineTransform xform, java.awt.image.ImageObserver obs)
private boolean
drawImage(java.awt.Image img, java.awt.Image mask, java.awt.geom.AffineTransform xform, java.awt.Color bgColor, java.awt.image.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(java.awt.image.renderable.RenderableImage img, java.awt.geom.AffineTransform xform)
void
drawRenderedImage(java.awt.image.RenderedImage img, java.awt.geom.AffineTransform xform)
void
drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
void
drawString(java.lang.String s, float x, float y)
void
drawString(java.lang.String s, int x, int y)
void
drawString(java.text.AttributedCharacterIterator iter, float x, float y)
void
drawString(java.text.AttributedCharacterIterator iterator, int x, int y)
void
fill(java.awt.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)
private void
followPath(java.awt.Shape s, int drawType)
java.awt.Color
getBackground()
private BaseFont
getCachedBaseFont(java.awt.Font f)
java.awt.Shape
getClip()
java.awt.Rectangle
getClipBounds()
java.awt.Color
getColor()
java.awt.Composite
getComposite()
PdfContentByte
getContent()
java.awt.GraphicsConfiguration
getDeviceConfiguration()
private java.awt.Graphics2D
getDG2()
Method that creates a Graphics2D object.java.awt.Font
getFont()
java.awt.FontMetrics
getFontMetrics(java.awt.Font f)
java.awt.font.FontRenderContext
getFontRenderContext()
java.awt.Paint
getPaint()
Method contributed by Alexej Suchovjava.lang.Object
getRenderingHint(java.awt.RenderingHints.Key hintKey)
java.awt.RenderingHints
getRenderingHints()
java.awt.Stroke
getStroke()
java.awt.geom.AffineTransform
getTransform()
boolean
hit(java.awt.Rectangle rect, java.awt.Shape s, boolean onStroke)
private void
internalDispose(ByteBuffer buf)
protected java.awt.geom.AffineTransform
normalizeMatrix()
private float
normalizeY(float y)
private void
normalizeY(float[] coords)
static BaseColor
prepareColor(java.awt.Color color)
void
rotate(double theta)
void
rotate(double theta, double x, double y)
void
scale(double sx, double sy)
void
setBackground(java.awt.Color color)
void
setClip(int x, int y, int width, int height)
void
setClip(java.awt.Shape s)
void
setColor(java.awt.Color color)
void
setComposite(java.awt.Composite comp)
Method contributed by Alexej Suchovprivate void
setFillPaint()
void
setFont(java.awt.Font f)
Sets the current font.private void
setPaint(boolean invert, double xoffset, double yoffset, boolean fill)
void
setPaint(java.awt.Paint paint)
Method contributed by Alexej Suchovvoid
setPaintMode()
void
setRenderingHint(java.awt.RenderingHints.Key hintKey, java.lang.Object hintValue)
Sets a rendering hintvoid
setRenderingHints(java.util.Map<?,?> hints)
void
setStroke(java.awt.Stroke s)
private void
setStrokeDiff(java.awt.Stroke newStroke, java.awt.Stroke oldStroke)
private void
setStrokePaint()
void
setTransform(java.awt.geom.AffineTransform t)
void
setXORMode(java.awt.Color c1)
void
shear(double shx, double shy)
void
transform(java.awt.geom.AffineTransform tx)
private java.awt.Stroke
transformStroke(java.awt.Stroke stroke)
void
translate(double tx, double ty)
void
translate(int x, int y)
private void
waitForImage(java.awt.Image image)
-
-
-
Field Detail
-
FILL
private static final int FILL
- See Also:
- Constant Field Values
-
STROKE
private static final int STROKE
- See Also:
- Constant Field Values
-
CLIP
private static final int CLIP
- See Also:
- Constant Field Values
-
strokeOne
private java.awt.BasicStroke strokeOne
-
IDENTITY
private static final java.awt.geom.AffineTransform IDENTITY
-
font
protected java.awt.Font font
-
baseFont
protected BaseFont baseFont
-
fontSize
protected float fontSize
-
transform
protected java.awt.geom.AffineTransform transform
-
paint
protected java.awt.Paint paint
-
background
protected java.awt.Color background
-
width
protected float width
-
height
protected float height
-
clip
protected java.awt.geom.Area clip
-
rhints
protected java.awt.RenderingHints rhints
-
stroke
protected java.awt.Stroke stroke
-
originalStroke
protected java.awt.Stroke originalStroke
-
cb
protected PdfContentByte cb
-
baseFonts
protected java.util.HashMap<java.lang.String,BaseFont> baseFonts
Storage for BaseFont objects created.
-
disposeCalled
protected boolean disposeCalled
-
fontMapper
protected FontMapper fontMapper
-
kids
private java.util.ArrayList<PdfGraphics2D.Kid> kids
-
kid
private boolean kid
-
dg2
private java.awt.Graphics2D dg2
-
onlyShapes
private boolean onlyShapes
-
oldStroke
private java.awt.Stroke oldStroke
-
paintFill
private java.awt.Paint paintFill
-
paintStroke
private java.awt.Paint paintStroke
-
mediaTracker
private java.awt.MediaTracker mediaTracker
-
underline
protected boolean underline
-
strikethrough
protected boolean strikethrough
- Since:
- 5.0.3
-
fillGState
protected PdfGState[] fillGState
-
strokeGState
protected PdfGState[] strokeGState
-
currentFillGState
protected int currentFillGState
-
currentStrokeGState
protected int currentStrokeGState
-
AFM_DIVISOR
public static final int AFM_DIVISOR
- See Also:
- Constant Field Values
-
convertImagesToJPEG
private boolean convertImagesToJPEG
-
jpegQuality
private float jpegQuality
-
alpha
private float alpha
-
composite
private java.awt.Composite composite
-
realPaint
private java.awt.Paint realPaint
-
-
Constructor Detail
-
PdfGraphics2D
private PdfGraphics2D()
-
PdfGraphics2D
public PdfGraphics2D(PdfContentByte cb, float width, float height)
-
PdfGraphics2D
public PdfGraphics2D(PdfContentByte cb, float width, float height, FontMapper fontMapper)
-
PdfGraphics2D
public PdfGraphics2D(PdfContentByte cb, float width, float height, boolean onlyShapes)
-
PdfGraphics2D
public PdfGraphics2D(PdfContentByte cb, float width, float height, FontMapper fontMapper, boolean onlyShapes, boolean convertImagesToJPEG, float quality)
Constructor for PDFGraphics2D.
-
-
Method Detail
-
getDG2
private java.awt.Graphics2D getDG2()
Method that creates a Graphics2D object. Contributed by Peter Harvey: he moved code from the constructor to a separate method- Since:
- 5.0.2
-
draw
public void draw(java.awt.Shape s)
- Specified by:
draw
in classjava.awt.Graphics2D
- See Also:
Graphics2D.draw(Shape)
-
drawImage
public boolean drawImage(java.awt.Image img, java.awt.geom.AffineTransform xform, java.awt.image.ImageObserver obs)
- Specified by:
drawImage
in classjava.awt.Graphics2D
- See Also:
Graphics2D.drawImage(Image, AffineTransform, ImageObserver)
-
drawImage
public void drawImage(java.awt.image.BufferedImage img, java.awt.image.BufferedImageOp op, int x, int y)
- Specified by:
drawImage
in classjava.awt.Graphics2D
- See Also:
Graphics2D.drawImage(BufferedImage, BufferedImageOp, int, int)
-
drawRenderedImage
public void drawRenderedImage(java.awt.image.RenderedImage img, java.awt.geom.AffineTransform xform)
- Specified by:
drawRenderedImage
in classjava.awt.Graphics2D
- See Also:
Graphics2D.drawRenderedImage(RenderedImage, AffineTransform)
-
drawRenderableImage
public void drawRenderableImage(java.awt.image.renderable.RenderableImage img, java.awt.geom.AffineTransform xform)
- Specified by:
drawRenderableImage
in classjava.awt.Graphics2D
- See Also:
Graphics2D.drawRenderableImage(RenderableImage, AffineTransform)
-
drawString
public void drawString(java.lang.String s, int x, int y)
- Specified by:
drawString
in classjava.awt.Graphics2D
- See Also:
Graphics.drawString(String, int, int)
-
asPoints
public static double asPoints(double d, int i)
Calculates position and/or stroke thickness depending on the font size- Parameters:
d
- value to be convertedi
- font size- Returns:
- position and/or stroke thickness depending on the font size
-
doAttributes
protected void doAttributes(java.text.AttributedCharacterIterator iter)
This routine goes through the attributes and sets the font before calling the actual string drawing routine- Parameters:
iter
-
-
drawString
public void drawString(java.lang.String s, float x, float y)
- Specified by:
drawString
in classjava.awt.Graphics2D
- See Also:
Graphics2D.drawString(String, float, float)
-
drawString
public void drawString(java.text.AttributedCharacterIterator iterator, int x, int y)
- Specified by:
drawString
in classjava.awt.Graphics2D
- See Also:
Graphics.drawString(AttributedCharacterIterator, int, int)
-
drawString
public void drawString(java.text.AttributedCharacterIterator iter, float x, float y)
- Specified by:
drawString
in classjava.awt.Graphics2D
- See Also:
Graphics2D.drawString(AttributedCharacterIterator, float, float)
-
drawGlyphVector
public void drawGlyphVector(java.awt.font.GlyphVector g, float x, float y)
- Specified by:
drawGlyphVector
in classjava.awt.Graphics2D
- See Also:
Graphics2D.drawGlyphVector(GlyphVector, float, float)
-
fill
public void fill(java.awt.Shape s)
- Specified by:
fill
in classjava.awt.Graphics2D
- See Also:
Graphics2D.fill(Shape)
-
hit
public boolean hit(java.awt.Rectangle rect, java.awt.Shape s, boolean onStroke)
- Specified by:
hit
in classjava.awt.Graphics2D
- See Also:
Graphics2D.hit(Rectangle, Shape, boolean)
-
getDeviceConfiguration
public java.awt.GraphicsConfiguration getDeviceConfiguration()
- Specified by:
getDeviceConfiguration
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getDeviceConfiguration()
-
setComposite
public void setComposite(java.awt.Composite comp)
Method contributed by Alexej Suchov- Specified by:
setComposite
in classjava.awt.Graphics2D
- See Also:
Graphics2D.setComposite(Composite)
-
setPaint
public void setPaint(java.awt.Paint paint)
Method contributed by Alexej Suchov- Specified by:
setPaint
in classjava.awt.Graphics2D
- See Also:
Graphics2D.setPaint(Paint)
-
transformStroke
private java.awt.Stroke transformStroke(java.awt.Stroke stroke)
-
setStrokeDiff
private void setStrokeDiff(java.awt.Stroke newStroke, java.awt.Stroke oldStroke)
-
setStroke
public void setStroke(java.awt.Stroke s)
- Specified by:
setStroke
in classjava.awt.Graphics2D
- See Also:
Graphics2D.setStroke(Stroke)
-
setRenderingHint
public void setRenderingHint(java.awt.RenderingHints.Key hintKey, java.lang.Object hintValue)
Sets a rendering hint- Specified by:
setRenderingHint
in classjava.awt.Graphics2D
- Parameters:
hintKey
-hintValue
-
-
getRenderingHint
public java.lang.Object getRenderingHint(java.awt.RenderingHints.Key hintKey)
- Specified by:
getRenderingHint
in classjava.awt.Graphics2D
- Parameters:
hintKey
- a key- Returns:
- the rendering hint
-
setRenderingHints
public void setRenderingHints(java.util.Map<?,?> hints)
- Specified by:
setRenderingHints
in classjava.awt.Graphics2D
- See Also:
Graphics2D.setRenderingHints(Map)
-
addRenderingHints
public void addRenderingHints(java.util.Map<?,?> hints)
- Specified by:
addRenderingHints
in classjava.awt.Graphics2D
- See Also:
Graphics2D.addRenderingHints(Map)
-
getRenderingHints
public java.awt.RenderingHints getRenderingHints()
- Specified by:
getRenderingHints
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getRenderingHints()
-
translate
public void translate(int x, int y)
- Specified by:
translate
in classjava.awt.Graphics2D
- See Also:
Graphics.translate(int, int)
-
translate
public void translate(double tx, double ty)
- Specified by:
translate
in classjava.awt.Graphics2D
- See Also:
Graphics2D.translate(double, double)
-
rotate
public void rotate(double theta)
- Specified by:
rotate
in classjava.awt.Graphics2D
- See Also:
Graphics2D.rotate(double)
-
rotate
public void rotate(double theta, double x, double y)
- Specified by:
rotate
in classjava.awt.Graphics2D
- See Also:
Graphics2D.rotate(double, double, double)
-
scale
public void scale(double sx, double sy)
- Specified by:
scale
in classjava.awt.Graphics2D
- See Also:
Graphics2D.scale(double, double)
-
shear
public void shear(double shx, double shy)
- Specified by:
shear
in classjava.awt.Graphics2D
- See Also:
Graphics2D.shear(double, double)
-
transform
public void transform(java.awt.geom.AffineTransform tx)
- Specified by:
transform
in classjava.awt.Graphics2D
- See Also:
Graphics2D.transform(AffineTransform)
-
setTransform
public void setTransform(java.awt.geom.AffineTransform t)
- Specified by:
setTransform
in classjava.awt.Graphics2D
- See Also:
Graphics2D.setTransform(AffineTransform)
-
getTransform
public java.awt.geom.AffineTransform getTransform()
- Specified by:
getTransform
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getTransform()
-
getPaint
public java.awt.Paint getPaint()
Method contributed by Alexej Suchov- Specified by:
getPaint
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getPaint()
-
getComposite
public java.awt.Composite getComposite()
- Specified by:
getComposite
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getComposite()
-
setBackground
public void setBackground(java.awt.Color color)
- Specified by:
setBackground
in classjava.awt.Graphics2D
- See Also:
Graphics2D.setBackground(Color)
-
getBackground
public java.awt.Color getBackground()
- Specified by:
getBackground
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getBackground()
-
getStroke
public java.awt.Stroke getStroke()
- Specified by:
getStroke
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getStroke()
-
getFontRenderContext
public java.awt.font.FontRenderContext getFontRenderContext()
- Specified by:
getFontRenderContext
in classjava.awt.Graphics2D
- See Also:
Graphics2D.getFontRenderContext()
-
create
public java.awt.Graphics create()
- Specified by:
create
in classjava.awt.Graphics
- See Also:
Graphics.create()
-
getContent
public PdfContentByte getContent()
-
getColor
public java.awt.Color getColor()
- Specified by:
getColor
in classjava.awt.Graphics
- See Also:
Graphics.getColor()
-
setColor
public void setColor(java.awt.Color color)
- Specified by:
setColor
in classjava.awt.Graphics
- See Also:
Graphics.setColor(Color)
-
setPaintMode
public void setPaintMode()
- Specified by:
setPaintMode
in classjava.awt.Graphics
- See Also:
Graphics.setPaintMode()
-
setXORMode
public void setXORMode(java.awt.Color c1)
- Specified by:
setXORMode
in classjava.awt.Graphics
- See Also:
Graphics.setXORMode(Color)
-
getFont
public java.awt.Font getFont()
- Specified by:
getFont
in classjava.awt.Graphics
- See Also:
Graphics.getFont()
-
setFont
public void setFont(java.awt.Font f)
Sets the current font.- Specified by:
setFont
in classjava.awt.Graphics
-
getCachedBaseFont
private BaseFont getCachedBaseFont(java.awt.Font f)
-
getFontMetrics
public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
- Specified by:
getFontMetrics
in classjava.awt.Graphics
- See Also:
Graphics.getFontMetrics(Font)
-
getClipBounds
public java.awt.Rectangle getClipBounds()
- Specified by:
getClipBounds
in classjava.awt.Graphics
- See Also:
Graphics.getClipBounds()
-
clipRect
public void clipRect(int x, int y, int width, int height)
- Specified by:
clipRect
in classjava.awt.Graphics
- See Also:
Graphics.clipRect(int, int, int, int)
-
setClip
public void setClip(int x, int y, int width, int height)
- Specified by:
setClip
in classjava.awt.Graphics
- See Also:
Graphics.setClip(int, int, int, int)
-
clip
public void clip(java.awt.Shape s)
- Specified by:
clip
in classjava.awt.Graphics2D
- See Also:
Graphics2D.clip(Shape)
-
getClip
public java.awt.Shape getClip()
- Specified by:
getClip
in classjava.awt.Graphics
- See Also:
Graphics.getClip()
-
setClip
public void setClip(java.awt.Shape s)
- Specified by:
setClip
in classjava.awt.Graphics
- See Also:
Graphics.setClip(Shape)
-
copyArea
public void copyArea(int x, int y, int width, int height, int dx, int dy)
- Specified by:
copyArea
in classjava.awt.Graphics
- See Also:
Graphics.copyArea(int, int, int, int, int, int)
-
drawLine
public void drawLine(int x1, int y1, int x2, int y2)
- Specified by:
drawLine
in classjava.awt.Graphics
- See Also:
Graphics.drawLine(int, int, int, int)
-
drawRect
public void drawRect(int x, int y, int width, int height)
- Overrides:
drawRect
in classjava.awt.Graphics
- See Also:
Graphics.fillRect(int, int, int, int)
-
fillRect
public void fillRect(int x, int y, int width, int height)
- Specified by:
fillRect
in classjava.awt.Graphics
- See Also:
Graphics.fillRect(int, int, int, int)
-
clearRect
public void clearRect(int x, int y, int width, int height)
- Specified by:
clearRect
in classjava.awt.Graphics
- See Also:
Graphics.clearRect(int, int, int, int)
-
drawRoundRect
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
- Specified by:
drawRoundRect
in classjava.awt.Graphics
- See Also:
Graphics.drawRoundRect(int, int, int, int, int, int)
-
fillRoundRect
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
- Specified by:
fillRoundRect
in classjava.awt.Graphics
- See Also:
Graphics.fillRoundRect(int, int, int, int, int, int)
-
drawOval
public void drawOval(int x, int y, int width, int height)
- Specified by:
drawOval
in classjava.awt.Graphics
- See Also:
Graphics.drawOval(int, int, int, int)
-
fillOval
public void fillOval(int x, int y, int width, int height)
- Specified by:
fillOval
in classjava.awt.Graphics
- See Also:
Graphics.fillOval(int, int, int, int)
-
drawArc
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
- Specified by:
drawArc
in classjava.awt.Graphics
- See Also:
Graphics.drawArc(int, int, int, int, int, int)
-
fillArc
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
- Specified by:
fillArc
in classjava.awt.Graphics
- See Also:
Graphics.fillArc(int, int, int, int, int, int)
-
drawPolyline
public void drawPolyline(int[] x, int[] y, int nPoints)
- Specified by:
drawPolyline
in classjava.awt.Graphics
- See Also:
Graphics.drawPolyline(int[], int[], int)
-
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
- Specified by:
drawPolygon
in classjava.awt.Graphics
- See Also:
Graphics.drawPolygon(int[], int[], int)
-
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
- Specified by:
fillPolygon
in classjava.awt.Graphics
- See Also:
Graphics.fillPolygon(int[], int[], int)
-
drawImage
public boolean drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
- Specified by:
drawImage
in classjava.awt.Graphics
- See Also:
Graphics.drawImage(Image, int, int, ImageObserver)
-
drawImage
public boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.image.ImageObserver observer)
- Specified by:
drawImage
in classjava.awt.Graphics
- See Also:
Graphics.drawImage(Image, int, int, int, int, ImageObserver)
-
drawImage
public boolean drawImage(java.awt.Image img, int x, int y, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
- Specified by:
drawImage
in classjava.awt.Graphics
- See Also:
Graphics.drawImage(Image, int, int, Color, ImageObserver)
-
drawImage
public boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
- Specified by:
drawImage
in classjava.awt.Graphics
- See Also:
Graphics.drawImage(Image, int, int, int, int, Color, ImageObserver)
-
drawImage
public boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
- Specified by:
drawImage
in classjava.awt.Graphics
- See Also:
Graphics.drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver)
-
drawImage
public boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
- Specified by:
drawImage
in classjava.awt.Graphics
- See Also:
Graphics.drawImage(Image, int, int, int, int, int, int, int, int, Color, ImageObserver)
-
dispose
public void dispose()
- Specified by:
dispose
in classjava.awt.Graphics
- See Also:
Graphics.dispose()
-
internalDispose
private void internalDispose(ByteBuffer buf)
-
followPath
private void followPath(java.awt.Shape s, int drawType)
-
normalizeY
private float normalizeY(float y)
-
normalizeY
private void normalizeY(float[] coords)
-
normalizeMatrix
protected java.awt.geom.AffineTransform normalizeMatrix()
-
drawImage
private boolean drawImage(java.awt.Image img, java.awt.Image mask, java.awt.geom.AffineTransform xform, java.awt.Color bgColor, java.awt.image.ImageObserver obs)
-
checkNewPaint
private boolean checkNewPaint(java.awt.Paint oldPaint)
-
setFillPaint
private void setFillPaint()
-
setStrokePaint
private void setStrokePaint()
-
prepareColor
public static BaseColor prepareColor(java.awt.Color color)
-
setPaint
private void setPaint(boolean invert, double xoffset, double yoffset, boolean fill)
-
waitForImage
private void waitForImage(java.awt.Image image)
-
-