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, fill3DRect
create, drawBytes, drawChars, drawPolygon, drawRect, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString
public SvgGraphics2D()
public SVG getRootTag()
public void draw(Shape shape)
draw
in class Graphics2D
public boolean drawImage(Image image, AffineTransform affineTransform, ImageObserver imageObserver)
drawImage
in class Graphics2D
public void drawImage(BufferedImage bufferedImage, BufferedImageOp bufferedImageOp, int i, int i1)
drawImage
in class Graphics2D
public void drawRenderedImage(RenderedImage renderedImage, AffineTransform affineTransform)
drawRenderedImage
in class Graphics2D
public void drawRenderableImage(RenderableImage renderableImage, AffineTransform affineTransform)
drawRenderableImage
in class Graphics2D
public void drawString(String inString, int x, int y)
drawString
in class Graphics2D
public void drawString(String inString, float x, float y)
drawString
in class Graphics2D
public void drawString(AttributedCharacterIterator attributedCharacterIterator, int i, int i1)
drawString
in class Graphics2D
public void drawString(AttributedCharacterIterator attributedCharacterIterator, float v, float v1)
drawString
in class Graphics2D
public 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 Graphics2D
public void fill(Shape shape)
fill
in class Graphics2D
public boolean hit(Rectangle rectangle, Shape shape, boolean b)
hit
in class Graphics2D
public GraphicsConfiguration getDeviceConfiguration()
getDeviceConfiguration
in class Graphics2D
public void setComposite(Composite composite)
setComposite
in class Graphics2D
public void setRenderingHint(RenderingHints.Key key, Object object)
setRenderingHint
in class Graphics2D
public Object getRenderingHint(RenderingHints.Key key)
getRenderingHint
in class Graphics2D
public void setRenderingHints(Map<?,?> map)
setRenderingHints
in class Graphics2D
public void addRenderingHints(Map<?,?> map)
addRenderingHints
in class Graphics2D
public RenderingHints getRenderingHints()
getRenderingHints
in class Graphics2D
public FontMetrics getFontMetrics(Font inFont)
getFontMetrics
in class Graphics
public Rectangle getClipBounds()
getClipBounds
in class Graphics
public 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 Graphics
public void fillRoundRect(int i, int i1, int i2, int i3, int i4, int i5)
fillRoundRect
in class Graphics
public 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 Graphics
public void drawPolygon(int[] ints, int[] ints1, int i)
drawPolygon
in class Graphics
public void fillPolygon(int[] ints, int[] ints1, int i)
fillPolygon
in class Graphics
public void translate(int x, int y)
translate
in class Graphics2D
public void translate(double x, double y)
translate
in class Graphics2D
public void rotate(double v)
rotate
in class Graphics2D
public void rotate(double v, double v1, double v2)
rotate
in class Graphics2D
public void scale(double v, double v1)
scale
in class Graphics2D
public void shear(double v, double v1)
shear
in class Graphics2D
public void transform(AffineTransform inAffineTransform)
transform
in class Graphics2D
public void setTransform(AffineTransform inAffineTransform)
setTransform
in class Graphics2D
public AffineTransform getTransform()
getTransform
in class Graphics2D
public void setPaint(Paint inPaint)
setPaint
in class Graphics2D
public Paint getPaint()
getPaint
in class Graphics2D
public void setPaintMode()
setPaintMode
in class Graphics
public 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 Graphics
inColor
- the color to alternate with the current default color of the graphics contextpublic Composite getComposite()
getComposite
in class Graphics2D
public void setBackground(Color inValue)
setBackground
in class Graphics2D
public Color getBackground()
getBackground
in class Graphics2D
public void setStroke(Stroke inStroke)
setStroke
in class Graphics2D
public Stroke getStroke()
getStroke
in class Graphics2D
public void clip(Shape shape)
clip
in class Graphics2D
public FontRenderContext getFontRenderContext()
getFontRenderContext
in class Graphics2D