|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Graphics
java.awt.Graphics2D
org.jaitools.tiledimage.DiskMemImageGraphics
public class DiskMemImageGraphics
A Graphics class for drawing into a DiskMemImage.
As with JAI's TiledImageGraphics class, java.awt
routines do the work and the purpose of this class is to
serve the image data in a form that those routines can handle.
Most of the methods in this class are identical in function to those in Graphics2D; these have not been documented here.
DiskMemImage| Nested Class Summary | |
|---|---|
static class |
DiskMemImageGraphics.OpType
Constants and associated data for graphics operations |
static class |
DiskMemImageGraphics.PaintMode
Constants for paint mode: PAINT or XOR. |
| Method Summary | |
|---|---|
void |
addRenderingHints(Map<?,?> hints)
|
void |
clearRect(int x,
int y,
int width,
int height)
|
void |
clip(Shape s)
|
void |
clipRect(int x,
int y,
int width,
int height)
|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
|
Graphics |
create()
Returns a copy of this object with its current settings |
void |
dispose()
|
void |
draw(Shape s)
|
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void |
drawGlyphVector(GlyphVector g,
float x,
float y)
|
void |
drawImage(BufferedImage img,
BufferedImageOp op,
int x,
int y)
|
boolean |
drawImage(Image img,
AffineTransform xform,
ImageObserver obs)
|
boolean |
drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver obs)
|
boolean |
drawImage(Image img,
int x,
int y,
ImageObserver obs)
|
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver obs)
|
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver obs)
|
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver obs)
|
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver obs)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawOval(int x,
int y,
int width,
int height)
|
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
drawRenderableImage(RenderableImage img,
AffineTransform xform)
|
void |
drawRenderedImage(RenderedImage img,
AffineTransform xform)
|
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
void |
drawString(AttributedCharacterIterator iter,
float x,
float y)
|
void |
drawString(AttributedCharacterIterator iter,
int x,
int y)
|
void |
drawString(String str,
float x,
float y)
|
void |
drawString(String str,
int x,
int y)
|
void |
fill(Shape s)
|
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void |
fillOval(int x,
int y,
int width,
int height)
|
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
fillRect(int x,
int y,
int width,
int height)
|
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
Color |
getBackground()
|
Shape |
getClip()
|
Rectangle |
getClipBounds()
|
Color |
getColor()
|
Composite |
getComposite()
|
GraphicsConfiguration |
getDeviceConfiguration()
|
Font |
getFont()
|
FontMetrics |
getFontMetrics(Font f)
|
FontRenderContext |
getFontRenderContext()
|
Paint |
getPaint()
|
Object |
getRenderingHint(RenderingHints.Key hintKey)
|
RenderingHints |
getRenderingHints()
|
Stroke |
getStroke()
|
AffineTransform |
getTransform()
|
boolean |
hit(Rectangle rect,
Shape s,
boolean onStroke)
|
void |
rotate(double theta)
|
void |
rotate(double theta,
double x,
double y)
|
void |
scale(double sx,
double sy)
|
void |
setBackground(Color color)
|
void |
setClip(int x,
int y,
int width,
int height)
|
void |
setClip(Shape clip)
|
void |
setColor(Color c)
|
void |
setComposite(Composite comp)
|
void |
setFont(Font font)
|
void |
setPaint(Paint p)
|
void |
setPaintMode()
|
void |
setRenderingHint(RenderingHints.Key hintKey,
Object hintValue)
|
void |
setRenderingHints(Map<?,?> hints)
|
void |
setStroke(Stroke s)
|
void |
setTransform(AffineTransform Tx)
|
void |
setXORMode(Color color)
|
void |
shear(double shx,
double shy)
|
void |
transform(AffineTransform Tx)
|
void |
translate(double tx,
double ty)
|
void |
translate(int x,
int y)
|
| Methods inherited from class java.awt.Graphics2D |
|---|
draw3DRect, fill3DRect |
| Methods inherited from class java.awt.Graphics |
|---|
create, drawBytes, drawChars, drawPolygon, drawRect, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void draw(Shape s)
draw in class Graphics2D
public boolean drawImage(Image img,
AffineTransform xform,
ImageObserver obs)
drawImage in class Graphics2D
public void drawImage(BufferedImage img,
BufferedImageOp op,
int x,
int y)
drawImage in class Graphics2D
public void drawRenderedImage(RenderedImage img,
AffineTransform xform)
drawRenderedImage in class Graphics2D
public void drawRenderableImage(RenderableImage img,
AffineTransform xform)
drawRenderableImage in class Graphics2D
public void drawString(String str,
int x,
int y)
drawString in class Graphics2D
public void drawString(String str,
float x,
float y)
drawString in class Graphics2D
public void drawString(AttributedCharacterIterator iter,
int x,
int y)
drawString in class Graphics2D
public void drawString(AttributedCharacterIterator iter,
float x,
float y)
drawString in class Graphics2D
public void drawGlyphVector(GlyphVector g,
float x,
float y)
drawGlyphVector in class Graphics2Dpublic void fill(Shape s)
fill in class Graphics2D
public boolean hit(Rectangle rect,
Shape s,
boolean onStroke)
hit in class Graphics2Dpublic GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration in class Graphics2Dpublic void setComposite(Composite comp)
setComposite in class Graphics2Dpublic void setPaint(Paint p)
setPaint in class Graphics2Dpublic void setStroke(Stroke s)
setStroke in class Graphics2D
public void setRenderingHint(RenderingHints.Key hintKey,
Object hintValue)
setRenderingHint in class Graphics2Dpublic Object getRenderingHint(RenderingHints.Key hintKey)
getRenderingHint in class Graphics2Dpublic void setRenderingHints(Map<?,?> hints)
setRenderingHints in class Graphics2Dpublic void addRenderingHints(Map<?,?> hints)
addRenderingHints in class Graphics2Dpublic RenderingHints getRenderingHints()
getRenderingHints in class Graphics2D
public void translate(int x,
int y)
translate in class Graphics2D
public void translate(double tx,
double ty)
translate in class Graphics2Dpublic void rotate(double theta)
rotate in class Graphics2D
public void rotate(double theta,
double x,
double y)
rotate in class Graphics2D
public void scale(double sx,
double sy)
scale in class Graphics2D
public void shear(double shx,
double shy)
shear in class Graphics2Dpublic void transform(AffineTransform Tx)
transform in class Graphics2Dpublic void setTransform(AffineTransform Tx)
setTransform in class Graphics2Dpublic AffineTransform getTransform()
getTransform in class Graphics2Dpublic Paint getPaint()
getPaint in class Graphics2Dpublic Composite getComposite()
getComposite in class Graphics2Dpublic void setBackground(Color color)
setBackground in class Graphics2Dpublic Color getBackground()
getBackground in class Graphics2Dpublic Stroke getStroke()
getStroke in class Graphics2Dpublic void clip(Shape s)
clip in class Graphics2Dpublic FontRenderContext getFontRenderContext()
getFontRenderContext in class Graphics2Dpublic Graphics create()
create in class Graphicspublic Color getColor()
getColor in class Graphicspublic void setColor(Color c)
setColor in class Graphicspublic void setPaintMode()
setPaintMode in class Graphicspublic void setXORMode(Color color)
setXORMode in class Graphicspublic Font getFont()
getFont in class Graphicspublic void setFont(Font font)
setFont in class Graphicspublic FontMetrics getFontMetrics(Font f)
getFontMetrics in class Graphicspublic Rectangle getClipBounds()
The bounds returned by this method may only be approximately equal to those originally set if a transform is active. See getClip() for explanation.
getClipBounds in class Graphics
public void clipRect(int x,
int y,
int width,
int height)
clipRect in class Graphics
public void setClip(int x,
int y,
int width,
int height)
setClip in class Graphicspublic Shape getClip()
Note that if a transform has been applied the result of this method may only be approximately equal to the clip region originally set. This is because the clip region is stored internally in its transformed state, and the result of this method is calculated by applying the inverse of the transform to stored region.
getClip in class Graphicspublic void setClip(Shape clip)
setClip in class Graphics
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
copyArea in class Graphics
public void drawLine(int x1,
int y1,
int x2,
int y2)
drawLine in class Graphics
public void fillRect(int x,
int y,
int width,
int height)
fillRect in class Graphics
public void clearRect(int x,
int y,
int width,
int height)
clearRect in class Graphics
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
drawRoundRect in class Graphics
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
fillRoundRect in class Graphics
public void drawOval(int x,
int y,
int width,
int height)
drawOval in class Graphics
public void fillOval(int x,
int y,
int width,
int height)
fillOval in class Graphics
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
drawArc in class Graphics
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
fillArc in class Graphics
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolyline in class Graphics
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolygon in class Graphics
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
fillPolygon in class Graphics
public boolean drawImage(Image img,
int x,
int y,
ImageObserver obs)
drawImage in class Graphics
public boolean drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver obs)
drawImage in class Graphics
public boolean drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver obs)
drawImage in class Graphics
public boolean drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver obs)
drawImage in class Graphics
public boolean drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver obs)
drawImage in class Graphics
public boolean drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver obs)
drawImage in class Graphicspublic void dispose()
dispose in class Graphics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||