public class SvgGraphics2D extends Graphics2D
| Constructor and Description |
|---|
SvgGraphics2D() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRenderingHints(Map<?,?> map) |
void |
clearRect(int i,
int i1,
int i2,
int i3) |
void |
clip(Shape shape) |
void |
clipRect(int i,
int i1,
int i2,
int i3) |
void |
copyArea(int i,
int i1,
int i2,
int i3,
int i4,
int i5) |
Graphics |
create() |
void |
dispose() |
void |
draw(Shape shape) |
void |
drawArc(int i,
int i1,
int i2,
int i3,
int i4,
int i5) |
void |
drawGlyphVector(GlyphVector glyphVector,
float v,
float v1) |
void |
drawImage(BufferedImage bufferedImage,
BufferedImageOp bufferedImageOp,
int i,
int i1) |
boolean |
drawImage(Image image,
AffineTransform affineTransform,
ImageObserver imageObserver) |
boolean |
drawImage(Image image,
int i,
int i1,
Color color,
ImageObserver imageObserver) |
boolean |
drawImage(Image image,
int i,
int i1,
ImageObserver imageObserver) |
boolean |
drawImage(Image image,
int i,
int i1,
int i2,
int i3,
Color color,
ImageObserver imageObserver) |
boolean |
drawImage(Image image,
int i,
int i1,
int i2,
int i3,
ImageObserver imageObserver) |
boolean |
drawImage(Image image,
int i,
int i1,
int i2,
int i3,
int i4,
int i5,
int i6,
int i7,
Color color,
ImageObserver imageObserver) |
boolean |
drawImage(Image image,
int i,
int i1,
int i2,
int i3,
int i4,
int i5,
int i6,
int i7,
ImageObserver imageObserver) |
void |
drawLine(int x1,
int y1,
int x2,
int y2) |
void |
drawOval(int i,
int i1,
int i2,
int i3) |
void |
drawPolygon(int[] ints,
int[] ints1,
int i) |
void |
drawPolyline(int[] ints,
int[] ints1,
int i) |
void |
drawRenderableImage(RenderableImage renderableImage,
AffineTransform affineTransform) |
void |
drawRenderedImage(RenderedImage renderedImage,
AffineTransform affineTransform) |
void |
drawRoundRect(int i,
int i1,
int i2,
int i3,
int i4,
int i5) |
void |
drawString(AttributedCharacterIterator attributedCharacterIterator,
float v,
float v1) |
void |
drawString(AttributedCharacterIterator attributedCharacterIterator,
int i,
int i1) |
void |
drawString(String inString,
float x,
float y) |
void |
drawString(String inString,
int x,
int y) |
void |
fill(Rectangle inRect) |
void |
fill(Shape shape) |
void |
fillArc(int i,
int i1,
int i2,
int i3,
int i4,
int i5) |
void |
fillOval(int i,
int i1,
int i2,
int i3) |
void |
fillPolygon(int[] ints,
int[] ints1,
int i) |
void |
fillRect(int x1,
int y1,
int x2,
int y2) |
void |
fillRoundRect(int i,
int i1,
int i2,
int i3,
int i4,
int i5) |
Color |
getBackground() |
Shape |
getClip() |
Rectangle |
getClipBounds() |
Color |
getColor() |
Composite |
getComposite() |
GraphicsConfiguration |
getDeviceConfiguration() |
Font |
getFont() |
FontMetrics |
getFontMetrics(Font inFont) |
FontRenderContext |
getFontRenderContext() |
Paint |
getPaint() |
Object |
getRenderingHint(RenderingHints.Key key) |
RenderingHints |
getRenderingHints() |
SVG |
getRootTag() |
Stroke |
getStroke() |
AffineTransform |
getTransform() |
boolean |
hit(Rectangle rectangle,
Shape shape,
boolean b) |
void |
rotate(double v) |
void |
rotate(double v,
double v1,
double v2) |
void |
scale(double v,
double v1) |
void |
setBackground(Color inValue) |
void |
setClip(int i,
int i1,
int i2,
int i3) |
void |
setClip(Shape shape) |
void |
setColor(Color inColor) |
void |
setComposite(Composite composite) |
void |
setFont(Font inFont) |
void |
setPaint(Paint inPaint) |
void |
setPaintMode()
Sets the paint mode of this graphics context to overwrite the destination
with this graphics context's current color.
|
void |
setRenderingHint(RenderingHints.Key key,
Object object) |
void |
setRenderingHints(Map<?,?> map) |
void |
setStroke(Stroke inStroke) |
void |
setTransform(AffineTransform inAffineTransform) |
void |
setXORMode(Color inColor)
Not implemented.
|
void |
shear(double v,
double v1) |
void |
transform(AffineTransform inAffineTransform) |
void |
translate(double x,
double y) |
void |
translate(int x,
int y) |
draw3DRect, fill3DRectcreate, drawBytes, drawChars, drawPolygon, drawRect, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toStringpublic SvgGraphics2D()
public SVG getRootTag()
public void draw(Shape shape)
draw in class Graphics2Dpublic boolean drawImage(Image image, AffineTransform affineTransform, ImageObserver imageObserver)
drawImage in class Graphics2Dpublic void drawImage(BufferedImage bufferedImage, BufferedImageOp bufferedImageOp, int i, int i1)
drawImage in class Graphics2Dpublic void drawRenderedImage(RenderedImage renderedImage, AffineTransform affineTransform)
drawRenderedImage in class Graphics2Dpublic void drawRenderableImage(RenderableImage renderableImage, AffineTransform affineTransform)
drawRenderableImage in class Graphics2Dpublic void drawString(String inString, int x, int y)
drawString in class Graphics2Dpublic void drawString(String inString, float x, float y)
drawString in class Graphics2Dpublic void drawString(AttributedCharacterIterator attributedCharacterIterator, int i, int i1)
drawString in class Graphics2Dpublic void drawString(AttributedCharacterIterator attributedCharacterIterator, float v, float v1)
drawString in class Graphics2Dpublic boolean drawImage(Image image, int i, int i1, ImageObserver imageObserver)
public boolean drawImage(Image image, int i, int i1, int i2, int i3, ImageObserver imageObserver)
public boolean drawImage(Image image, int i, int i1, Color color, ImageObserver imageObserver)
public boolean drawImage(Image image, int i, int i1, int i2, int i3, Color color, ImageObserver imageObserver)
public boolean drawImage(Image image, int i, int i1, int i2, int i3, int i4, int i5, int i6, int i7, ImageObserver imageObserver)
public boolean drawImage(Image image, int i, int i1, int i2, int i3, int i4, int i5, int i6, int i7, Color color, ImageObserver imageObserver)
public void drawGlyphVector(GlyphVector glyphVector, float v, float v1)
drawGlyphVector in class Graphics2Dpublic void fill(Shape shape)
fill in class Graphics2Dpublic boolean hit(Rectangle rectangle, Shape shape, boolean b)
hit in class Graphics2Dpublic GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration in class Graphics2Dpublic void setComposite(Composite composite)
setComposite in class Graphics2Dpublic void setRenderingHint(RenderingHints.Key key, Object object)
setRenderingHint in class Graphics2Dpublic Object getRenderingHint(RenderingHints.Key key)
getRenderingHint in class Graphics2Dpublic void setRenderingHints(Map<?,?> map)
setRenderingHints in class Graphics2Dpublic void addRenderingHints(Map<?,?> map)
addRenderingHints in class Graphics2Dpublic RenderingHints getRenderingHints()
getRenderingHints in class Graphics2Dpublic FontMetrics getFontMetrics(Font inFont)
getFontMetrics in class Graphicspublic Rectangle getClipBounds()
getClipBounds in class Graphicspublic void clipRect(int i, int i1, int i2, int i3)
public void copyArea(int i, int i1, int i2, int i3, int i4, int i5)
public void drawLine(int x1, int y1, int x2, int y2)
public void fillRect(int x1, int y1, int x2, int y2)
public void clearRect(int i, int i1, int i2, int i3)
public void drawRoundRect(int i, int i1, int i2, int i3, int i4, int i5)
drawRoundRect in class Graphicspublic void fillRoundRect(int i, int i1, int i2, int i3, int i4, int i5)
fillRoundRect in class Graphicspublic void drawOval(int i, int i1, int i2, int i3)
public void fillOval(int i, int i1, int i2, int i3)
public void drawArc(int i, int i1, int i2, int i3, int i4, int i5)
public void fillArc(int i, int i1, int i2, int i3, int i4, int i5)
public void drawPolyline(int[] ints, int[] ints1, int i)
drawPolyline in class Graphicspublic void drawPolygon(int[] ints, int[] ints1, int i)
drawPolygon in class Graphicspublic void fillPolygon(int[] ints, int[] ints1, int i)
fillPolygon in class Graphicspublic void translate(int x, int y)
translate in class Graphics2Dpublic void translate(double x, double y)
translate in class Graphics2Dpublic void rotate(double v)
rotate in class Graphics2Dpublic void rotate(double v, double v1, double v2)
rotate in class Graphics2Dpublic void scale(double v, double v1)
scale in class Graphics2Dpublic void shear(double v, double v1)
shear in class Graphics2Dpublic void transform(AffineTransform inAffineTransform)
transform in class Graphics2Dpublic void setTransform(AffineTransform inAffineTransform)
setTransform in class Graphics2Dpublic AffineTransform getTransform()
getTransform in class Graphics2Dpublic void setPaint(Paint inPaint)
setPaint in class Graphics2Dpublic Paint getPaint()
getPaint in class Graphics2Dpublic void setPaintMode()
setPaintMode in class Graphicspublic void setXORMode(Color inColor)
Sets the paint mode of this graphics context to alternate between this graphics context's current color and the new specified color. This specifies that logical pixel operations are performed in the XOR mode, which alternates pixels between the current color and a specified XOR color.
When drawing operations are performed, pixels which are the current color are changed to the specified color, and vice versa.
Pixels that are of colors other than those two colors are changed in an unpredictable but reversible manner; if the same figure is drawn twice, then all pixels are restored to their original values.
setXORMode in class GraphicsinColor - the color to alternate with the current default color of the graphics contextpublic Composite getComposite()
getComposite in class Graphics2Dpublic void setBackground(Color inValue)
setBackground in class Graphics2Dpublic Color getBackground()
getBackground in class Graphics2Dpublic void setStroke(Stroke inStroke)
setStroke in class Graphics2Dpublic Stroke getStroke()
getStroke in class Graphics2Dpublic void clip(Shape shape)
clip in class Graphics2Dpublic FontRenderContext getFontRenderContext()
getFontRenderContext in class Graphics2D
jataylor@hairyfatguy.com