public class SVGDocumentReaderConfigurator extends Object
SVGDocumentReader
instance.SVGDocumentReader
Constructor and Description |
---|
SVGDocumentReaderConfigurator()
Builds an
SVGDocumentReaderConfigurator instance using
a default graphic factory (SVGDefaultGraphicFactory ). |
SVGDocumentReaderConfigurator(SVGGraphicFactory factory)
Builds an
SVGDocumentReaderConfigurator instance using
the specified graphic factory (SVGGraphicFactory ). |
Modifier and Type | Method and Description |
---|---|
URL |
getBaseURL()
Returns the base
URL of the SVG Document. |
SVGGraphicFactory |
getGraphicFactory()
Returns the factory in charge of the creation of the graphic objects
for the SVG reader.
|
String |
getUserStyleSheetURL()
Returns the user style sheet's
URL . |
boolean |
isAlwaysUseBoundingBox()
Returns the mode used to read SVG gradients.
|
boolean |
isFullDocumentOn()
Returns
true if the SVGDocumentReader stores
all SVG elements, attributes, or properties it does not understand to be
able to regenerate
them even if they are not translated to Rogue Wave JViews graphic objects. |
boolean |
isQuadTreeEnabled()
Returns
true if the quadtree is enabled. |
boolean |
isUsingIlvText()
Returns
true if SVG text elements are converted into
IlvText objects when possible. |
boolean |
isViewBoxOn()
Returns the
viewBox policy. |
void |
setAlwaysUseBoundingBox(boolean value)
Sets the mode used to read SVG gradients.
|
void |
setBaseURL(URL url)
Sets the base
URL of the SVG Document. |
void |
setFullDocumentOn(boolean val)
Allows the
SVGDocumentReader to store all
SVG elements, attributes, or properties it does not understand to regenerate
them even if they are not translated to Rogue Wave JViews graphic objects. |
void |
setGraphicFactory(SVGGraphicFactory factory)
Sets the factory in charge of the creation of the graphic objects
for the SVG reader.
|
void |
setQuadTreeEnabled(boolean value)
Enables the quadtree on the
IlvManager in which the
SVG file will be read. |
void |
setUserStyleSheetURL(String url)
Sets the URL
String to retrieve the user style sheet when
importing SVG files. |
void |
setUsingIlvText(boolean value)
Enables the conversion of SVG text elements into
IlvText
objects when possible. |
void |
setViewBoxOn(boolean value)
Sets the
viewBox policy. |
public SVGDocumentReaderConfigurator()
SVGDocumentReaderConfigurator
instance using
a default graphic factory (SVGDefaultGraphicFactory
).public SVGDocumentReaderConfigurator(SVGGraphicFactory factory)
SVGDocumentReaderConfigurator
instance using
the specified graphic factory (SVGGraphicFactory
).public void setGraphicFactory(SVGGraphicFactory factory)
SVGDefaultGraphicFactory
.public SVGGraphicFactory getGraphicFactory()
public final void setFullDocumentOn(boolean val)
SVGDocumentReader
to store all
SVG elements, attributes, or properties it does not understand to regenerate
them even if they are not translated to Rogue Wave JViews graphic objects.
Examples are 'script' or 'filter' elements.
The default value is false
.public final boolean isFullDocumentOn()
true
if the SVGDocumentReader
stores
all SVG elements, attributes, or properties it does not understand to be
able to regenerate
them even if they are not translated to Rogue Wave JViews graphic objects.setFullDocumentOn(boolean)
public final void setViewBoxOn(boolean value)
viewBox
policy. If set to true
, at read
time the viewBox
attribute of the main
SVG element will be taken into account.
The default value is true
.public final boolean isViewBoxOn()
viewBox
policy.setViewBoxOn(boolean)
public final void setUserStyleSheetURL(String url)
String
to retrieve the user style sheet when
importing SVG files. If no protocol is specified, the URL is considered to
be relative to the file being read.public final String getUserStyleSheetURL()
URL
.setUserStyleSheetURL(java.lang.String)
public final void setQuadTreeEnabled(boolean value)
IlvManager
in which the
SVG file will be read. If true
, the IlvGraphic
in the
IlvManager
may not be displayed in the correct SVG
order. The default is false
.public final boolean isQuadTreeEnabled()
true
if the quadtree is enabled.setQuadTreeEnabled(boolean)
public final void setBaseURL(URL url)
URL
of the SVG Document.public final URL getBaseURL()
URL
of the SVG Document.setUserStyleSheetURL(java.lang.String)
public final void setAlwaysUseBoundingBox(boolean value)
true
,
even if SVG gradients are defined in SVG userSpace, in JViews they will be
considered as gradients defined on the object bounding box. The
default value is false
.public final boolean isAlwaysUseBoundingBox()
false
.public final void setUsingIlvText(boolean value)
IlvText
objects when possible.
If disabled, all SVG text elements are converted into
IlvZoomableLabel
objects.
If enabled, simple SVG text elements are converted into
IlvText
objects. Complex SVG text elements that use
specific strokes and gradient paints not supported by IlvText
are still converted into IlvZoomableLabel
objects.
The default value is false
.
isUsingIlvText()
public final boolean isUsingIlvText()
true
if SVG text elements are converted into
IlvText
objects when possible.setUsingIlvText(boolean)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.