public abstract class AbstractGraphics extends Object implements IGraphics
| Constructor and Description |
|---|
AbstractGraphics(Graphics2D graphics) |
| Modifier and Type | Method and Description |
|---|---|
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) |
IGraphics |
create() |
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 observer) |
boolean |
drawImage(Image img,
int x,
int y,
ImageObserver observer) |
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver observer) |
boolean |
drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer) |
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver observer) |
boolean |
drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer) |
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 iterator,
float x,
float y) |
void |
drawString(AttributedCharacterIterator iterator,
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 paint) |
void |
setPaintMode() |
void |
setStroke(Stroke s) |
void |
setTransform(AffineTransform Tx) |
void |
setXORMode(Color c1) |
void |
shear(double shx,
double shy) |
void |
transform(AffineTransform Tx) |
void |
translate(double tx,
double ty) |
void |
translate(int x,
int y) |
public AbstractGraphics(Graphics2D graphics)
public void drawString(String str, int x, int y)
drawString in interface IGraphicspublic void drawString(String str, float x, float y)
drawString in interface IGraphicspublic void drawString(AttributedCharacterIterator iterator, int x, int y)
drawString in interface IGraphicspublic void drawString(AttributedCharacterIterator iterator, float x, float y)
drawString in interface IGraphicspublic void drawGlyphVector(GlyphVector g, float x, float y)
drawGlyphVector in interface IGraphicspublic GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration in interface IGraphicspublic void setComposite(Composite comp)
setComposite in interface IGraphicspublic Object getRenderingHint(RenderingHints.Key hintKey)
getRenderingHint in interface IGraphicspublic RenderingHints getRenderingHints()
getRenderingHints in interface IGraphicspublic void translate(double tx,
double ty)
public void rotate(double theta,
double x,
double y)
public void transform(AffineTransform Tx)
public void setTransform(AffineTransform Tx)
setTransform in interface IGraphicspublic AffineTransform getTransform()
getTransform in interface IGraphicspublic Composite getComposite()
getComposite in interface IGraphicspublic void setBackground(Color color)
setBackground in interface IGraphicspublic Color getBackground()
getBackground in interface IGraphicspublic FontRenderContext getFontRenderContext()
getFontRenderContext in interface IGraphicspublic void setPaintMode()
setPaintMode in interface IGraphicspublic void setXORMode(Color c1)
setXORMode in interface IGraphicspublic FontMetrics getFontMetrics(Font f)
getFontMetrics in interface IGraphicspublic Rectangle getClipBounds()
getClipBounds in interface IGraphicspublic void clipRect(int x,
int y,
int width,
int height)
public void setClip(int x,
int y,
int width,
int height)
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
public void drawLine(int x1,
int y1,
int x2,
int y2)
public void fillRect(int x,
int y,
int width,
int height)
public void clearRect(int x,
int y,
int width,
int height)
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
drawRoundRect in interface IGraphicspublic void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
fillRoundRect in interface IGraphicspublic void drawOval(int x,
int y,
int width,
int height)
public void fillOval(int x,
int y,
int width,
int height)
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolyline in interface IGraphicspublic void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
drawPolygon in interface IGraphicspublic void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
fillPolygon in interface IGraphicspublic boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)
public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
public void drawRenderedImage(RenderedImage img, AffineTransform xform)
drawRenderedImage in interface IGraphicspublic void drawRenderableImage(RenderableImage img, AffineTransform xform)
drawRenderableImage in interface IGraphicspublic boolean drawImage(Image img, int x, int y, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
Copyright © 2007–2018 Andreas W. Bartels. All rights reserved.