public class MultiFileGraphics extends BaseGraphics2D
| Modifier and Type | Class and Description |
|---|---|
static interface |
MultiFileGraphics.Graphics2DFactory |
| Constructor and Description |
|---|
MultiFileGraphics(MultiFileGraphics.Graphics2DFactory factory,
java.io.File directory,
java.lang.String base,
java.lang.String extension) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy) |
java.awt.Graphics |
create()
Create a clone of this graphics2d, rendering into the same picture.
|
void |
dispose() |
void |
draw(java.awt.Shape s)
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 s) |
java.awt.GraphicsConfiguration |
getDeviceConfiguration() |
java.awt.font.FontRenderContext |
getFontRenderContext() |
void |
openPage(java.awt.Dimension dimensions,
java.lang.String title) |
void |
setPaintMode() |
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.
|
void |
transform(java.awt.geom.AffineTransform Tx)
Transform the current system reference according to Tx.
|
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, getFont, getFontMetrics, getPaint, getPathFor, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setFont, setPaint, setRenderingHint, setRenderingHints, setStroke, setTransform, shear, translate, translatepublic MultiFileGraphics(MultiFileGraphics.Graphics2DFactory factory, java.io.File directory, java.lang.String base, java.lang.String extension)
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
copyArea in class BaseGraphics2Dpublic java.awt.Graphics create()
BaseGraphics2Dreturn new MyGraphicsType(this);as implementation.
create in class BaseGraphics2DGraphics.create()public void dispose()
dispose in class BaseGraphics2Dpublic void draw(java.awt.Shape s)
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 s)
fill in class BaseGraphics2Dpublic java.awt.GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration in class BaseGraphics2Dpublic java.awt.font.FontRenderContext getFontRenderContext()
getFontRenderContext in class BaseGraphics2Dpublic void setPaintMode()
setPaintMode in class BaseGraphics2Dpublic void setXORMode(java.awt.Color c1)
BaseGraphics2DsetXORMode in class BaseGraphics2DGraphics.setXORMode(java.awt.Color)public void setProperties(java.util.Properties properties)
BaseGraphics2DsetProperties in class BaseGraphics2Dpublic void openPage(java.awt.Dimension dimensions,
java.lang.String title)
throws BaseGraphics2DException
BaseGraphics2DExceptionpublic void transform(java.awt.geom.AffineTransform Tx)
BaseGraphics2DAll scaling and assorted transformations in BaseGraphics2D use this method. Hence, if you want to modify the transformation system, simply redefine it.
transform in class BaseGraphics2DGraphics2D.transform(java.awt.geom.AffineTransform)