public class EMFGraphics2D extends BaseGraphics2D
| Constructor and Description |
|---|
EMFGraphics2D(EMFGraphics2D graphics2D) |
EMFGraphics2D(java.io.File file,
java.awt.geom.Dimension2D dims,
java.lang.String creator,
java.lang.String comment)
Create an EMFGraphics2D for writing to a file.
|
EMFGraphics2D(RandomAccessStream stream,
java.awt.geom.Dimension2D dims,
java.lang.String creator,
java.lang.String comment)
Create a picture which without margin.
|
EMFGraphics2D(RandomAccessStream out,
long maxx,
long maxy,
java.lang.String creator,
java.lang.String comment)
Create a picture which with a given bounding box.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy) |
java.awt.Graphics |
create()
Build a clone of this context, rendering into the same picture.
|
void |
dispose()
dispose and close the graphic context, if it's the top-level one.
|
void |
draw(java.awt.Shape shape)
Draws a shape.
|
boolean |
drawImage(java.awt.Image img,
java.awt.geom.AffineTransform xform,
java.awt.image.ImageObserver obs) |
void |
drawRenderedImage(java.awt.image.RenderedImage img,
java.awt.geom.AffineTransform xform) |
void |
fill(java.awt.Shape shape) |
double |
getDeviceScale() |
void |
setDeviceScale(double deviceScale)
Sets the device scale.
|
void |
setPaintMode() |
void |
setPictureClip(double minx,
double miny,
double maxx,
double maxy)
Sets an explicit clip rectangle for the mac picture.
|
void |
setProperties(java.util.Properties properties)
Communicates properties (which can be used as a generic system for
parameters) to the graphic system.
|
void |
setXORMode(java.awt.Color c1)
Switches to Xor mode.
|
addRenderingHints, clearRect, clip, clipRect, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRenderableImage, drawRoundRect, drawString, drawString, drawString, drawString, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, getBackground, getClip, getClipBounds, getColor, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontRenderContext, getPaint, getPathFor, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setFont, setPaint, setRenderingHint, setRenderingHints, setStroke, setTransform, shear, transform, translate, translatepublic EMFGraphics2D(java.io.File file,
java.awt.geom.Dimension2D dims,
java.lang.String creator,
java.lang.String comment)
throws java.io.IOException
file - the file to write data to.dims - the picture dimensions, in pointscreator - software creating the picture (may be null)comment - free text comment included in the picture (may be null too).java.io.IOExceptionpublic EMFGraphics2D(RandomAccessStream stream, java.awt.geom.Dimension2D dims, java.lang.String creator, java.lang.String comment) throws java.io.IOException
stream - dims - pictures dimensions, in pointscreator - software creating the picture (may be null)comment - free text comment included in the picture (may be null too).java.io.IOExceptionpublic EMFGraphics2D(RandomAccessStream out, long maxx, long maxy, java.lang.String creator, java.lang.String comment) throws java.io.IOException
creator - software creating the picture (may be null)comment - free text comment included in the picture (may be null too).out - java.io.IOExceptionpublic EMFGraphics2D(EMFGraphics2D graphics2D)
public void setPictureClip(double minx,
double miny,
double maxx,
double maxy)
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
copyArea in class BaseGraphics2Dpublic java.awt.Graphics create()
create in class BaseGraphics2DGraphics.create()public void dispose()
dispose in class BaseGraphics2Dpublic void draw(java.awt.Shape shape)
BaseGraphics2DA basic, probably very suboptimal implementation of draw, which calls fill(shape). For the sake of efficiency, you should probably rewrite it.
draw in class BaseGraphics2DGraphics2D.draw(Shape)public boolean drawImage(java.awt.Image img,
java.awt.geom.AffineTransform xform,
java.awt.image.ImageObserver obs)
drawImage in class BaseGraphics2Dpublic void drawRenderedImage(java.awt.image.RenderedImage img,
java.awt.geom.AffineTransform xform)
drawRenderedImage in class BaseGraphics2Dpublic void fill(java.awt.Shape shape)
fill in class BaseGraphics2Dpublic void setPaintMode()
setPaintMode in class BaseGraphics2Dpublic void setProperties(java.util.Properties properties)
BaseGraphics2DsetProperties in class BaseGraphics2Dpublic void setXORMode(java.awt.Color c1)
BaseGraphics2DsetXORMode in class BaseGraphics2DGraphics.setXORMode(java.awt.Color)public void setDeviceScale(double deviceScale)
deviceScale - the deviceScale to setpublic double getDeviceScale()