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(Paint paint)
Applies a new Paint object.
|
protected void |
applyStroke(Stroke stroke)
Applies a new Stroke object.
|
protected BufferedImage |
buildBufferedImage(Dimension size)
Creates a buffered image.
|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy) |
Graphics |
create() |
void |
dispose() |
void |
draw(Shape s) |
boolean |
drawImage(Image img,
int x,
int y,
ImageObserver observer) |
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer) |
void |
drawRenderableImage(RenderableImage img,
AffineTransform xform) |
void |
drawRenderedImage(RenderedImage img,
AffineTransform xform) |
void |
drawString(AttributedCharacterIterator iterator,
float x,
float y) |
void |
drawString(String s,
float x,
float y) |
void |
fill(Shape s) |
GraphicsConfiguration |
getDeviceConfiguration() |
FontMetrics |
getFontMetrics(Font f) |
void |
handleIOException(IOException ioe)
Central handler for IOExceptions for this class.
|
protected void |
handleUnsupportedFeature(String msg)
Raises an UnsupportedOperationException if this instance is configured to do so and an
unsupported feature has been requested.
|
void |
processPathIteratorFill(PathIterator iter)
Processes a path iterator generating the nexessary painting operations.
|
void |
processPathIteratorStroke(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(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
draw3DRect, fill3DRect
create, drawBytes, drawChars, drawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString
protected PCLGenerator gen
public PCLGraphics2D(PCLGenerator gen)
gen
- the PCL Generator to paint withpublic PCLGraphics2D(PCLGraphics2D g)
g
- parent PCLGraphics2Dpublic 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(IOException ioe)
ioe
- IOException to handleprotected void handleUnsupportedFeature(String msg)
msg
- the error message to be displayedpublic GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration
in class Graphics2D
protected void applyStroke(Stroke stroke) throws IOException
stroke
- Stroke object to useIOException
- In case of an I/O problemprotected void applyPaint(Paint paint) throws IOException
paint
- Paint object to useIOException
- In case of an I/O problempublic void draw(Shape s)
draw
in class Graphics2D
public void fill(Shape s)
fill
in class Graphics2D
public void processPathIteratorStroke(PathIterator iter) throws IOException
iter
- PathIterator to processIOException
- In case of an I/O problem.public void processPathIteratorFill(PathIterator iter) throws IOException
iter
- PathIterator to processIOException
- In case of an I/O problem.public void drawString(String s, float x, float y)
drawString
in class Graphics2D
public void drawString(AttributedCharacterIterator iterator, float x, float y)
drawString
in class org.apache.xmlgraphics.java2d.AbstractGraphics2D
public void drawRenderedImage(RenderedImage img, AffineTransform xform)
drawRenderedImage
in class Graphics2D
public void drawRenderableImage(RenderableImage img, AffineTransform xform)
drawRenderableImage
in class Graphics2D
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, ImageObserver observer)
public void copyArea(int x, int y, int width, int height, int dx, int dy)
public void setXORMode(Color c1)
setXORMode
in class Graphics
protected BufferedImage buildBufferedImage(Dimension size)
size
- dimensions of the image to be createdpublic FontMetrics getFontMetrics(Font f)
getFontMetrics
in class Graphics
Copyright © 2025 Apache Software Foundation. All rights reserved.