Graphics2D implementation implementing PCL and HP GL/2.
Note: This class cannot be used stand-alone to create full PCL documents.
applyPaint
protected void applyPaint(Paint paint)
throws IOException
Applies a new Paint object.
paint
- Paint object to use
applyStroke
protected void applyStroke(Stroke stroke)
throws IOException
Applies a new Stroke object.
stroke
- Stroke object to use
buildBufferedImage
protected BufferedImage buildBufferedImage(Dimension size)
Creates a buffered image.
size
- dimensions of the image to be created
copyArea
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
java.awt.Graphics.copyArea(int, int, int, int, int, int)
create
public Graphics create()
java.awt.Graphics.create()
dispose
public void dispose()
java.awt.Graphics.dispose()
draw
public void draw(Shape s)
java.awt.Graphics2D.draw(java.awt.Shape)
drawImage
public boolean drawImage(Image img,
int x,
int y,
ImageObserver observer)
java.awt.Graphics.drawImage(java.awt.Image, int, int, java.awt.image.ImageObserver)
drawImage
public boolean drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer)
java.awt.Graphics.drawImage(java.awt.Image, int, int, int, int,
java.awt.image.ImageObserver)
drawRenderableImage
public void drawRenderableImage(RenderableImage img,
AffineTransform xform)
java.awt.Graphics2D.drawRenderableImage(java.awt.image.renderable.RenderableImage,
java.awt.geom.AffineTransform)
drawRenderedImage
public void drawRenderedImage(RenderedImage img,
AffineTransform xform)
java.awt.Graphics2D.drawRenderedImage(java.awt.image.RenderedImage,
java.awt.geom.AffineTransform)
drawString
public void drawString(AttributedCharacterIterator iterator,
float x,
float y)
java.awt.Graphics2D.drawString(java.text.AttributedCharacterIterator, float, float)
drawString
public void drawString(String s,
float x,
float y)
java.awt.Graphics2D.drawString(java.lang.String, float, float)
fill
public void fill(Shape s)
java.awt.Graphics2D.fill(java.awt.Shape)
getDeviceConfiguration
public GraphicsConfiguration getDeviceConfiguration()
java.awt.Graphics2D.getDeviceConfiguration()
getFontMetrics
public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
java.awt.Graphics.getFontMetrics(java.awt.Font)
handleIOException
public void handleIOException(IOException ioe)
Central handler for IOExceptions for this class.
ioe
- IOException to handle
handleUnsupportedFeature
protected void handleUnsupportedFeature(String msg)
Raises an UnsupportedOperationException if this instance is configured to do so and an
unsupported feature has been requested. Clients can make use of this to fall back to
a more compatible way of painting a PCL graphic.
msg
- the error message to be displayed
processPathIteratorFill
public void processPathIteratorFill(PathIterator iter)
throws IOException
Processes a path iterator generating the nexessary painting operations.
iter
- PathIterator to process
processPathIteratorStroke
public void processPathIteratorStroke(PathIterator iter)
throws IOException
Processes a path iterator generating the nexessary painting operations.
iter
- PathIterator to process
setClippingDisabled
public void setClippingDisabled(boolean value)
Allows to disable all clipping operations.
value
- true if clipping should be disabled.
setGraphicContext
public void setGraphicContext(GraphicContext c)
Sets the GraphicContext
c
- GraphicContext to use
setXORMode
public void setXORMode(Color c1)
java.awt.Graphics.setXORMode(java.awt.Color)