org.apache.batik.svggen
public class SVGGeneratorContext extends Object implements ErrorConstants
See Also: SVGGraphics2D
| Nested Class Summary | |
|---|---|
| static class | SVGGeneratorContext.GraphicContextDefaults
Class to describe the GraphicContext defaults to
be used. |
| Field Summary | |
|---|---|
| protected DecimalFormat | decimalFormat
Current double value formatter |
| protected static DecimalFormat[] | decimalFormats |
| protected static DecimalFormatSymbols | dsf |
| Constructor Summary | |
|---|---|
| protected | SVGGeneratorContext(Document domFactory)
Builds an instance of SVGGeneratorContext with the given
domFactory but let the user set later the other contextual
information. |
| Method Summary | |
|---|---|
| static SVGGeneratorContext | createDefault(Document domFactory)
Creates an instance of SVGGeneratorContext with the
given domFactory and with the default values for the
other information. |
| String | doubleString(double value)
Converts the input double value to a string with a number of
decimal places controlled by the precision attribute. |
| String | getComment()
Returns the comment to be generated in the SVG file. |
| Document | getDOMFactory()
Returns the DOM Factory that
has been set. |
| ErrorHandler | getErrorHandler()
Returns the ErrorHandler that
has been set. |
| ExtensionHandler | getExtensionHandler()
Returns the ExtensionHandler that
has been set. |
| SVGGeneratorContext.GraphicContextDefaults | getGraphicContextDefaults()
Returns the set of defaults which should be used for the
GraphicContext. |
| SVGIDGenerator | getIDGenerator()
Returns the SVGIDGenerator that
has been set. |
| ImageHandler | getImageHandler()
Returns the ImageHandler that
has been set. |
| int | getPrecision()
Returns the current precision used by this context |
| StyleHandler | getStyleHandler()
Returns the StyleHandler that
has been set. |
| boolean | isEmbeddedFontsOn()
Returns true if we should generate SVG Fonts for
texts. |
| void | setComment(String generatorComment)
Sets the comment to be used. |
| void | setDOMFactory(Document domFactory)
Sets the DOM Factory
to be used. |
| void | setEmbeddedFontsOn(boolean svgFont)
Sets if we should generate SVG Fonts for texts. |
| void | setErrorHandler(ErrorHandler errorHandler)
Sets the ErrorHandler
to be used. |
| void | setExtensionHandler(ExtensionHandler extensionHandler)
Sets the ExtensionHandler
to be used. |
| void | setGenericImageHandler(GenericImageHandler genericImageHandler)
Sets the GenericImageHandler
to be used. |
| void | setGraphicContextDefaults(SVGGeneratorContext.GraphicContextDefaults gcDefaults)
Sets the default to be used for the graphic context.
|
| void | setIDGenerator(SVGIDGenerator idGenerator)
Sets the SVGIDGenerator
to be used. |
| void | setImageHandler(ImageHandler imageHandler)
Sets the ImageHandler
to be used. |
| void | setPrecision(int precision)
Sets the precision used by this context. |
| void | setStyleHandler(StyleHandler styleHandler)
Sets the StyleHandler
to be used. |
SVGGeneratorContext with the given
domFactory but let the user set later the other contextual
information. Please note that none of the parameter below should be
null.See Also: SVGGeneratorContext SVGGeneratorContext SVGGeneratorContext SVGGeneratorContext SVGGeneratorContext
SVGGeneratorContext with the
given domFactory and with the default values for the
other information.See Also: SVGIDGenerator DefaultExtensionHandler ImageHandlerBase64Encoder DefaultStyleHandler DefaultErrorHandler
true if we should generate SVG Fonts for
texts.null if you
want to disable it.null.false.null.null.null.null.null.