public class DefaultSVGFigureFactory extends java.lang.Object implements SVGFigureFactory
Constructor and Description |
---|
DefaultSVGFigureFactory()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Figure |
createCircle(double cx,
double cy,
double r,
java.util.Map<AttributeKey,java.lang.Object> a) |
Figure |
createEllipse(double cx,
double cy,
double rx,
double ry,
java.util.Map<AttributeKey,java.lang.Object> a) |
CompositeFigure |
createG(java.util.Map<AttributeKey,java.lang.Object> a) |
Figure |
createImage(double x,
double y,
double w,
double h,
byte[] imageData,
java.awt.image.BufferedImage bufferedImage,
java.util.Map<AttributeKey,java.lang.Object> a)
Creates a Figure from an image element.
|
Figure |
createLine(double x1,
double y1,
double x2,
double y2,
java.util.Map<AttributeKey,java.lang.Object> a) |
Gradient |
createLinearGradient(double x1,
double y1,
double x2,
double y2,
double[] stopOffsets,
java.awt.Color[] stopColors,
double[] stopOpacities,
boolean isRelativeToFigureBounds,
java.awt.geom.AffineTransform tx) |
Figure |
createPath(BezierPath[] beziers,
java.util.Map<AttributeKey,java.lang.Object> a) |
Figure |
createPolygon(java.awt.geom.Point2D.Double[] points,
java.util.Map<AttributeKey,java.lang.Object> a) |
Figure |
createPolyline(java.awt.geom.Point2D.Double[] points,
java.util.Map<AttributeKey,java.lang.Object> a) |
Gradient |
createRadialGradient(double cx,
double cy,
double fx,
double fy,
double r,
double[] stopOffsets,
java.awt.Color[] stopColors,
double[] stopOpacities,
boolean isRelativeToFigureBounds,
java.awt.geom.AffineTransform tx) |
Figure |
createRect(double x,
double y,
double w,
double h,
double rx,
double ry,
java.util.Map<AttributeKey,java.lang.Object> a) |
Figure |
createText(java.awt.geom.Point2D.Double[] coordinates,
double[] rotates,
javax.swing.text.StyledDocument text,
java.util.Map<AttributeKey,java.lang.Object> a) |
Figure |
createTextArea(double x,
double y,
double w,
double h,
javax.swing.text.StyledDocument doc,
java.util.Map<AttributeKey,java.lang.Object> attributes) |
public Figure createRect(double x, double y, double w, double h, double rx, double ry, java.util.Map<AttributeKey,java.lang.Object> a)
createRect
in interface SVGFigureFactory
public Figure createCircle(double cx, double cy, double r, java.util.Map<AttributeKey,java.lang.Object> a)
createCircle
in interface SVGFigureFactory
public Figure createEllipse(double cx, double cy, double rx, double ry, java.util.Map<AttributeKey,java.lang.Object> a)
createEllipse
in interface SVGFigureFactory
public Figure createLine(double x1, double y1, double x2, double y2, java.util.Map<AttributeKey,java.lang.Object> a)
createLine
in interface SVGFigureFactory
public Figure createPolyline(java.awt.geom.Point2D.Double[] points, java.util.Map<AttributeKey,java.lang.Object> a)
createPolyline
in interface SVGFigureFactory
public Figure createPolygon(java.awt.geom.Point2D.Double[] points, java.util.Map<AttributeKey,java.lang.Object> a)
createPolygon
in interface SVGFigureFactory
public Figure createPath(BezierPath[] beziers, java.util.Map<AttributeKey,java.lang.Object> a)
createPath
in interface SVGFigureFactory
public CompositeFigure createG(java.util.Map<AttributeKey,java.lang.Object> a)
createG
in interface SVGFigureFactory
public Figure createImage(double x, double y, double w, double h, byte[] imageData, java.awt.image.BufferedImage bufferedImage, java.util.Map<AttributeKey,java.lang.Object> a)
SVGFigureFactory
createImage
in interface SVGFigureFactory
x
- The x coordinate.y
- The y coordinate.w
- The width.h
- The height.imageData
- Holds the image data. Can be null, if the buffered image
has not been created from a file.bufferedImage
- Holds the buffered image. Can be null, if the
image data has not been interpreted.a
- Figure attributes.public Figure createTextArea(double x, double y, double w, double h, javax.swing.text.StyledDocument doc, java.util.Map<AttributeKey,java.lang.Object> attributes)
createTextArea
in interface SVGFigureFactory
public Figure createText(java.awt.geom.Point2D.Double[] coordinates, double[] rotates, javax.swing.text.StyledDocument text, java.util.Map<AttributeKey,java.lang.Object> a)
createText
in interface SVGFigureFactory
public Gradient createRadialGradient(double cx, double cy, double fx, double fy, double r, double[] stopOffsets, java.awt.Color[] stopColors, double[] stopOpacities, boolean isRelativeToFigureBounds, java.awt.geom.AffineTransform tx)
createRadialGradient
in interface SVGFigureFactory
public Gradient createLinearGradient(double x1, double y1, double x2, double y2, double[] stopOffsets, java.awt.Color[] stopColors, double[] stopOpacities, boolean isRelativeToFigureBounds, java.awt.geom.AffineTransform tx)
createLinearGradient
in interface SVGFigureFactory