de.erichseifert.vectorgraphics2d
Class EPSGraphics2D
java.lang.Object
java.awt.Graphics
java.awt.Graphics2D
de.erichseifert.vectorgraphics2d.VectorGraphics2D
de.erichseifert.vectorgraphics2d.EPSGraphics2D
public class EPSGraphics2D
- extends VectorGraphics2D
Graphics2D
implementation that saves all operations to a string
in the Encapsulated PostScript® (EPS) format.
Constructor Summary |
EPSGraphics2D(double x,
double y,
double width,
double height)
Constructor that initializes a new EPSGraphics2D instance. |
Method Summary |
byte[] |
getBytes()
Encodes the painted data into a sequence of bytes. |
static java.lang.String |
getEps(java.awt.image.BufferedImage bufferedImg)
|
void |
rotate(double theta)
|
void |
rotate(double theta,
double x,
double y)
|
void |
scale(double tx,
double ty)
|
void |
setClip(java.awt.Shape clip)
|
void |
setColor(java.awt.Color c)
|
void |
setFont(java.awt.Font font)
|
void |
setStroke(java.awt.Stroke s)
|
void |
setTransform(java.awt.geom.AffineTransform tx)
|
void |
shear(double sx,
double sy)
|
void |
translate(double tx,
double ty)
|
Methods inherited from class de.erichseifert.vectorgraphics2d.VectorGraphics2D |
addRenderingHints, clearRect, clip, clipRect, copyArea, create, dispose, draw, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRect, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, fill, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, getBackground, getBounds, getClip, getClipBounds, getColor, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontRenderContext, getFontRendering, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, setBackground, setClip, setComposite, setFontRendering, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setXORMode, toString, transform, translate |
Methods inherited from class java.awt.Graphics2D |
draw3DRect, fill3DRect |
Methods inherited from class java.awt.Graphics |
create, drawBytes, drawChars, drawPolygon, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EPSGraphics2D
public EPSGraphics2D(double x,
double y,
double width,
double height)
- Constructor that initializes a new
EPSGraphics2D
instance.
The document dimension must be specified as parameters.
setStroke
public void setStroke(java.awt.Stroke s)
- Overrides:
setStroke
in class VectorGraphics2D
setColor
public void setColor(java.awt.Color c)
- Overrides:
setColor
in class VectorGraphics2D
setFont
public void setFont(java.awt.Font font)
- Overrides:
setFont
in class VectorGraphics2D
setClip
public void setClip(java.awt.Shape clip)
- Overrides:
setClip
in class VectorGraphics2D
setTransform
public void setTransform(java.awt.geom.AffineTransform tx)
- Overrides:
setTransform
in class VectorGraphics2D
translate
public void translate(double tx,
double ty)
- Overrides:
translate
in class VectorGraphics2D
scale
public void scale(double tx,
double ty)
- Overrides:
scale
in class VectorGraphics2D
rotate
public void rotate(double theta)
- Overrides:
rotate
in class VectorGraphics2D
rotate
public void rotate(double theta,
double x,
double y)
- Overrides:
rotate
in class VectorGraphics2D
shear
public void shear(double sx,
double sy)
- Overrides:
shear
in class VectorGraphics2D
getEps
public static java.lang.String getEps(java.awt.image.BufferedImage bufferedImg)
getBytes
public byte[] getBytes()
- Description copied from class:
VectorGraphics2D
- Encodes the painted data into a sequence of bytes.
- Overrides:
getBytes
in class VectorGraphics2D
- Returns:
- A byte array containing the data in the current file format.
Copyright © 2010. All Rights Reserved.