Class Graphics2DWrapper
java.lang.Object
edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
- Direct Known Subclasses:
GraphicsDecorator
a complete wrapping of Graphics2D, useful as a base class.
Contains no additional methods, other than direct calls
to the delegate.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRenderingHints
(Map<?, ?> hints) void
clearRect
(int x, int y, int width, int height) void
void
clipRect
(int x, int y, int width, int height) void
copyArea
(int x, int y, int width, int height, int dx, int dy) create()
create
(int x, int y, int width, int height) void
dispose()
void
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, 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) 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 x, int y, Color bgcolor, ImageObserver observer) boolean
drawImage
(Image img, int x, int y, ImageObserver observer) boolean
drawImage
(Image img, AffineTransform xform, 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
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
(String s, float x, float y) void
drawString
(String str, int x, int y) void
drawString
(AttributedCharacterIterator iterator, float x, float y) void
drawString
(AttributedCharacterIterator iterator, int x, int y) boolean
void
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
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()
getClip()
getColor()
getFont()
getPaint()
getRenderingHint
(RenderingHints.Key hintKey) int
hashCode()
boolean
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
void
void
setComposite
(Composite comp) void
setDelegate
(Graphics2D delegate) void
void
void
void
setRenderingHint
(RenderingHints.Key hintKey, Object hintValue) void
setRenderingHints
(Map<?, ?> hints) void
void
void
setXORMode
(Color c1) void
shear
(double shx, double shy) toString()
void
void
translate
(double tx, double ty) void
translate
(int x, int y)
-
Field Details
-
delegate
-
-
Constructor Details
-
Graphics2DWrapper
public Graphics2DWrapper() -
Graphics2DWrapper
-
-
Method Details
-
setDelegate
-
getDelegate
-
addRenderingHints
-
clearRect
public void clearRect(int x, int y, int width, int height) -
clip
-
clipRect
public void clipRect(int x, int y, int width, int height) -
copyArea
public void copyArea(int x, int y, int width, int height, int dx, int dy) -
create
-
create
-
dispose
public void dispose() -
draw
-
draw3DRect
public void draw3DRect(int x, int y, int width, int height, boolean raised) -
drawArc
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
drawBytes
public void drawBytes(byte[] data, int offset, int length, int x, int y) -
drawChars
public void drawChars(char[] data, int offset, int length, int x, int y) -
drawGlyphVector
-
drawImage
-
drawImage
-
drawImage
-
drawImage
-
drawImage
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) -
drawImage
-
drawImage
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) -
drawImage
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) -
drawLine
public void drawLine(int x1, int y1, int x2, int y2) -
drawOval
public void drawOval(int x, int y, int width, int height) -
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) -
drawPolygon
-
drawPolyline
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) -
drawRect
public void drawRect(int x, int y, int width, int height) -
drawRenderableImage
-
drawRenderedImage
-
drawRoundRect
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) -
drawString
-
drawString
-
drawString
-
drawString
-
equals
-
fill
-
fill3DRect
public void fill3DRect(int x, int y, int width, int height, boolean raised) -
fillArc
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
fillOval
public void fillOval(int x, int y, int width, int height) -
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) -
fillPolygon
-
fillRect
public void fillRect(int x, int y, int width, int height) -
fillRoundRect
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) -
finalize
public void finalize() -
getBackground
-
getClip
-
getClipBounds
-
getClipBounds
-
getClipRect
-
getColor
-
getComposite
-
getDeviceConfiguration
-
getFont
-
getFontMetrics
-
getFontMetrics
-
getFontRenderContext
-
getPaint
-
getRenderingHint
-
getRenderingHints
-
getStroke
-
getTransform
-
hashCode
public int hashCode() -
hit
-
hitClip
public boolean hitClip(int x, int y, int width, int height) -
rotate
public void rotate(double theta, double x, double y) -
rotate
public void rotate(double theta) -
scale
public void scale(double sx, double sy) -
setBackground
-
setClip
public void setClip(int x, int y, int width, int height) -
setClip
-
setColor
-
setComposite
-
setFont
-
setPaint
-
setPaintMode
public void setPaintMode() -
setRenderingHint
-
setRenderingHints
-
setStroke
-
setTransform
-
setXORMode
-
shear
public void shear(double shx, double shy) -
toString
-
transform
-
translate
public void translate(double tx, double ty) -
translate
public void translate(int x, int y)
-