public class PCLGraphics2D
extends org.apache.xmlgraphics.java2d.AbstractGraphics2D
Modifier and Type | Field and Description |
---|---|
protected PCLGenerator |
gen
The PCL generator
|
Constructor and Description |
---|
PCLGraphics2D(PCLGenerator gen)
Create a new PCLGraphics2D.
|
PCLGraphics2D(PCLGraphics2D g)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyPaint(java.awt.Paint paint)
Applies a new Paint object.
|
protected void |
applyStroke(java.awt.Stroke stroke)
Applies a new Stroke object.
|
protected java.awt.image.BufferedImage |
buildBufferedImage(java.awt.Dimension size)
Creates a buffered image.
|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy) |
java.awt.Graphics |
create() |
void |
dispose() |
void |
draw(java.awt.Shape s) |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer) |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer) |
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 |
drawString(java.text.AttributedCharacterIterator iterator,
float x,
float y) |
void |
drawString(java.lang.String s,
float x,
float y) |
void |
fill(java.awt.Shape s) |
java.awt.GraphicsConfiguration |
getDeviceConfiguration() |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font f) |
void |
handleIOException(java.io.IOException ioe)
Central handler for IOExceptions for this class.
|
protected void |
handleUnsupportedFeature(java.lang.String msg)
Raises an UnsupportedOperationException if this instance is configured to do so and an
unsupported feature has been requested.
|
void |
processPathIteratorFill(java.awt.geom.PathIterator iter)
Processes a path iterator generating the nexessary painting operations.
|
void |
processPathIteratorStroke(java.awt.geom.PathIterator iter)
Processes a path iterator generating the nexessary painting operations.
|
void |
setClippingDisabled(boolean value)
Allows to disable all clipping operations.
|
void |
setGraphicContext(org.apache.xmlgraphics.java2d.GraphicContext c)
Sets the GraphicContext
|
void |
setXORMode(java.awt.Color c1) |
addRenderingHints, clearRect, clip, clipRect, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRect, drawRoundRect, drawString, drawString, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, getBackground, getClip, getClipBounds, getColor, getComposite, getFont, getFontRenderContext, getGraphicContext, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setFont, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, shear, transform, translate, translate
protected PCLGenerator gen
public PCLGraphics2D(PCLGenerator gen)
gen
- the PCL Generator to paint withpublic PCLGraphics2D(PCLGraphics2D g)
g
- parent PCLGraphics2Dpublic java.awt.Graphics create()
create
in class java.awt.Graphics
public void dispose()
dispose
in class java.awt.Graphics
public void setGraphicContext(org.apache.xmlgraphics.java2d.GraphicContext c)
c
- GraphicContext to usepublic void setClippingDisabled(boolean value)
value
- true if clipping should be disabled.public void handleIOException(java.io.IOException ioe)
ioe
- IOException to handleprotected void handleUnsupportedFeature(java.lang.String msg)
msg
- the error message to be displayedpublic java.awt.GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration
in class java.awt.Graphics2D
protected void applyStroke(java.awt.Stroke stroke) throws java.io.IOException
stroke
- Stroke object to usejava.io.IOException
- In case of an I/O problemprotected void applyPaint(java.awt.Paint paint) throws java.io.IOException
paint
- Paint object to usejava.io.IOException
- In case of an I/O problempublic void draw(java.awt.Shape s)
draw
in class java.awt.Graphics2D
public void fill(java.awt.Shape s)
fill
in class java.awt.Graphics2D
public void processPathIteratorStroke(java.awt.geom.PathIterator iter) throws java.io.IOException
iter
- PathIterator to processjava.io.IOException
- In case of an I/O problem.public void processPathIteratorFill(java.awt.geom.PathIterator iter) throws java.io.IOException
iter
- PathIterator to processjava.io.IOException
- In case of an I/O problem.public void drawString(java.lang.String s, float x, float y)
drawString
in class java.awt.Graphics2D
public void drawString(java.text.AttributedCharacterIterator iterator, float x, float y)
drawString
in class org.apache.xmlgraphics.java2d.AbstractGraphics2D
public void drawRenderedImage(java.awt.image.RenderedImage img, java.awt.geom.AffineTransform xform)
drawRenderedImage
in class java.awt.Graphics2D
public void drawRenderableImage(java.awt.image.renderable.RenderableImage img, java.awt.geom.AffineTransform xform)
drawRenderableImage
in class java.awt.Graphics2D
public boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.image.ImageObserver observer)
drawImage
in class java.awt.Graphics
public boolean drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
drawImage
in class java.awt.Graphics
public void copyArea(int x, int y, int width, int height, int dx, int dy)
copyArea
in class java.awt.Graphics
public void setXORMode(java.awt.Color c1)
setXORMode
in class java.awt.Graphics
protected java.awt.image.BufferedImage buildBufferedImage(java.awt.Dimension size)
size
- dimensions of the image to be createdpublic java.awt.FontMetrics getFontMetrics(java.awt.Font f)
getFontMetrics
in class java.awt.Graphics
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.