public class Graphics2DWrapper extends Object
as an example subclass that
adds additional methods.
Modifier and Type | Field and Description |
---|---|
protected Graphics2D |
delegate |
Constructor and Description |
---|
Graphics2DWrapper() |
Graphics2DWrapper(Graphics2D delegate) |
Modifier and Type | Method and Description |
---|---|
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() |
Graphics |
create(int x,
int y,
int width,
int height) |
void |
dispose() |
void |
draw(Shape s) |
void |
draw3DRect(int x,
int y,
int width,
int height,
boolean raised) |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle) |
void |
drawBytes(byte[] data,
int offset,
int length,
int x,
int y) |
void |
drawChars(char[] data,
int offset,
int length,
int x,
int y) |
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 |
drawPolygon(Polygon p) |
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints) |
void |
drawRect(int x,
int y,
int width,
int height) |
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 s,
float x,
float y) |
void |
drawString(String str,
int x,
int y) |
boolean |
equals(Object obj) |
void |
fill(Shape s) |
void |
fill3DRect(int x,
int y,
int width,
int height,
boolean raised) |
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 |
fillPolygon(Polygon p) |
void |
fillRect(int x,
int y,
int width,
int height) |
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight) |
void |
finalize() |
Color |
getBackground() |
Shape |
getClip() |
Rectangle |
getClipBounds() |
Rectangle |
getClipBounds(Rectangle r) |
Rectangle |
getClipRect() |
Color |
getColor() |
Composite |
getComposite() |
Graphics2D |
getDelegate() |
GraphicsConfiguration |
getDeviceConfiguration() |
Font |
getFont() |
FontMetrics |
getFontMetrics() |
FontMetrics |
getFontMetrics(Font f) |
FontRenderContext |
getFontRenderContext() |
Paint |
getPaint() |
Object |
getRenderingHint(RenderingHints.Key hintKey) |
RenderingHints |
getRenderingHints() |
Stroke |
getStroke() |
AffineTransform |
getTransform() |
int |
hashCode() |
boolean |
hit(Rectangle rect,
Shape s,
boolean onStroke) |
boolean |
hitClip(int x,
int y,
int width,
int height) |
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 |
setDelegate(Graphics2D delegate) |
void |
setFont(Font font) |
void |
setPaint(Paint paint) |
void |
setPaintMode() |
void |
setRenderingHint(RenderingHints.Key hintKey,
Object hintValue) |
void |
setRenderingHints(Map<?,?> hints) |
void |
setStroke(Stroke s) |
void |
setTransform(AffineTransform Tx) |
void |
setXORMode(Color c1) |
void |
shear(double shx,
double shy) |
String |
toString() |
void |
transform(AffineTransform Tx) |
void |
translate(double tx,
double ty) |
void |
translate(int x,
int y) |
protected Graphics2D delegate
public Graphics2DWrapper()
public Graphics2DWrapper(Graphics2D delegate)
public void setDelegate(Graphics2D delegate)
public Graphics2D getDelegate()
public void addRenderingHints(Map<?,?> hints)
public void clearRect(int x, int y, int width, int height)
public void clip(Shape s)
public void clipRect(int x, int y, int width, int height)
public void copyArea(int x, int y, int width, int height, int dx, int dy)
public Graphics create()
public Graphics create(int x, int y, int width, int height)
public void dispose()
public void draw(Shape s)
public void draw3DRect(int x, int y, int width, int height, boolean raised)
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void drawBytes(byte[] data, int offset, int length, int x, int y)
public void drawChars(char[] data, int offset, int length, int x, int y)
public void drawGlyphVector(GlyphVector g, float x, float y)
public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)
public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
public boolean drawImage(Image img, int x, int y, 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 x, int y, int width, int height, 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)
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
public void drawLine(int x1, int y1, int x2, int y2)
public void drawOval(int x, int y, int width, int height)
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void drawPolygon(Polygon p)
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
public void drawRect(int x, int y, int width, int height)
public void drawRenderableImage(RenderableImage img, AffineTransform xform)
public void drawRenderedImage(RenderedImage img, AffineTransform xform)
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void drawString(AttributedCharacterIterator iterator, float x, float y)
public void drawString(AttributedCharacterIterator iterator, int x, int y)
public void drawString(String s, float x, float y)
public void drawString(String str, int x, int y)
public void fill(Shape s)
public void fill3DRect(int x, int y, int width, int height, boolean raised)
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void fillOval(int x, int y, int width, int height)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void fillPolygon(Polygon p)
public void fillRect(int x, int y, int width, int height)
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public Color getBackground()
public Shape getClip()
public Rectangle getClipBounds()
public Rectangle getClipRect()
public Color getColor()
public Composite getComposite()
public GraphicsConfiguration getDeviceConfiguration()
public Font getFont()
public FontMetrics getFontMetrics()
public FontMetrics getFontMetrics(Font f)
public FontRenderContext getFontRenderContext()
public Paint getPaint()
public Object getRenderingHint(RenderingHints.Key hintKey)
public RenderingHints getRenderingHints()
public Stroke getStroke()
public AffineTransform getTransform()
public boolean hitClip(int x, int y, int width, int height)
public void rotate(double theta, double x, double y)
public void rotate(double theta)
public void scale(double sx, double sy)
public void setBackground(Color color)
public void setClip(int x, int y, int width, int height)
public void setClip(Shape clip)
public void setColor(Color c)
public void setComposite(Composite comp)
public void setFont(Font font)
public void setPaint(Paint paint)
public void setPaintMode()
public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue)
public void setRenderingHints(Map<?,?> hints)
public void setStroke(Stroke s)
public void setTransform(AffineTransform Tx)
public void setXORMode(Color c1)
public void shear(double shx, double shy)
public void transform(AffineTransform Tx)
public void translate(double tx, double ty)
public void translate(int x, int y)
Copyright © 2015. All rights reserved.