public class PictureToSvg extends PictureVisitor
PictureVisitor.TrackingState
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SVG_NAMESPACE_URI |
static java.lang.String |
XLINK_NAMESPACE_URI |
Constructor and Description |
---|
PictureToSvg(Consumer out) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatDouble(double value) |
static java.lang.String |
genShapeToString(java.awt.Shape shape) |
static Symbol |
svgTag(java.lang.String name) |
static java.lang.String |
transformAttribute(java.awt.geom.AffineTransform tr) |
void |
visitDrawImage(DrawImage image) |
void |
visitDrawShape(DrawShape pic) |
void |
visitFillShape(FillShape pic) |
void |
visitPBox(PBox pic) |
void |
visitWithComposite(WithComposite pic) |
void |
visitWithPaint(WithPaint pic) |
void |
visitWithTransform(Picture pic,
java.awt.geom.AffineTransform tr) |
void |
visitWithTransform(WithTransform pic) |
static void |
writeAttribute(java.lang.String name,
double value,
Consumer out) |
static void |
writeAttribute(java.lang.String name,
java.lang.String value,
Consumer out) |
static void |
writeDrawSimple(java.awt.Shape shape,
Consumer out) |
static void |
writeFillSimple(java.awt.Shape shape,
Consumer out) |
static void |
writeShapeStart(java.awt.Shape shape,
Consumer out) |
static void |
writeSVGElementStart(java.awt.geom.Rectangle2D bounds,
Consumer out) |
static Symbol |
xlinkTag(java.lang.String name) |
public static final java.lang.String SVG_NAMESPACE_URI
public static final java.lang.String XLINK_NAMESPACE_URI
public PictureToSvg(Consumer out)
public static Symbol svgTag(java.lang.String name)
public static Symbol xlinkTag(java.lang.String name)
public static void writeAttribute(java.lang.String name, java.lang.String value, Consumer out)
public static void writeAttribute(java.lang.String name, double value, Consumer out)
public static java.lang.String formatDouble(double value)
public static java.lang.String genShapeToString(java.awt.Shape shape)
public static void writeShapeStart(java.awt.Shape shape, Consumer out)
public static void writeDrawSimple(java.awt.Shape shape, Consumer out)
public static void writeFillSimple(java.awt.Shape shape, Consumer out)
public static void writeSVGElementStart(java.awt.geom.Rectangle2D bounds, Consumer out)
public void visitFillShape(FillShape pic)
visitFillShape
in class PictureVisitor
public void visitDrawShape(DrawShape pic)
visitDrawShape
in class PictureVisitor
public void visitWithPaint(WithPaint pic)
visitWithPaint
in class PictureVisitor
public void visitDrawImage(DrawImage image)
visitDrawImage
in class PictureVisitor
public void visitPBox(PBox pic)
visitPBox
in class PictureVisitor
public static java.lang.String transformAttribute(java.awt.geom.AffineTransform tr)
public void visitWithTransform(WithTransform pic)
visitWithTransform
in class PictureVisitor
public void visitWithTransform(Picture pic, java.awt.geom.AffineTransform tr)
public void visitWithComposite(WithComposite pic)
visitWithComposite
in class PictureVisitor