org.vectomatic.common.format
Class SVG12Visitor

java.lang.Object
  extended by org.vectomatic.common.format.SVG12Visitor
All Implemented Interfaces:
ISVGExporter, IShapeVisitor

public class SVG12Visitor
extends Object
implements IShapeVisitor, ISVGExporter

Class to export models to the SVG 1.2 format


Field Summary
 
Fields inherited from interface org.vectomatic.common.format.ISVGExporter
ATT_BASEPROFILE, ATT_CX, ATT_CY, ATT_D, ATT_FILL, ATT_FILLOPACITY, ATT_HEIGHT, ATT_ID, ATT_POINTS, ATT_RX, ATT_RY, ATT_SOLIDCOLOR, ATT_SOLIDOPACITY, ATT_STROKE, ATT_STROKEOPACITY, ATT_STROKEWIDTH, ATT_TRANSFORM, ATT_VECTOREFFECT, ATT_VERSION, ATT_WIDTH, ATT_X, ATT_Y, ELT_DEFS, ELT_DESC, ELT_ELLIPSE, ELT_G, ELT_PATH, ELT_POLYGON, ELT_POLYLINE, ELT_RECT, ELT_SOLIDCOLOR, ELT_SVG, ELT_TITLE, NS, VAL_CURVE_TO, VAL_LINE_TO, VAL_MOVE_TO, VAL_NON_SCALING_STROKE, VAL_NONE
 
Constructor Summary
SVG12Visitor()
           
 
Method Summary
 void visitEllipse(Ellipse ellipse)
           
 void visitPath(Path path)
           
 void visitPolyline(Polyline polyline)
           
 void visitRect(Rect rect)
           
 void visitShapeGroup(ShapeGroup group)
           
 void writeSVG(IOutputStream stream, Shape[] shapes, PaletteList paletteList, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVG12Visitor

public SVG12Visitor()
Method Detail

writeSVG

public void writeSVG(IOutputStream stream,
                     Shape[] shapes,
                     PaletteList paletteList,
                     int width,
                     int height)
Specified by:
writeSVG in interface ISVGExporter

visitEllipse

public void visitEllipse(Ellipse ellipse)
Specified by:
visitEllipse in interface IShapeVisitor

visitPolyline

public void visitPolyline(Polyline polyline)
Specified by:
visitPolyline in interface IShapeVisitor

visitRect

public void visitRect(Rect rect)
Specified by:
visitRect in interface IShapeVisitor

visitPath

public void visitPath(Path path)
Specified by:
visitPath in interface IShapeVisitor

visitShapeGroup

public void visitShapeGroup(ShapeGroup group)
Specified by:
visitShapeGroup in interface IShapeVisitor


Copyright © 2010. All Rights Reserved.