public class IltTinySVGBaseRendererFactory extends IltSVGBaseRendererFactory implements IltBaseRendererFactory
It is easy to create a new tiny type with the following code:
IltObject.TinyType newType =
new IltObject.TinyType(YOUR_NEW_TINY_TYPE_NAME);
try {
URL url = new URL("file","",YOUR_SVG_FILE_NAME);
IltTinySVGBaseRendererFactory factory = new IltTinySVGBaseRendererFactory(url);
IltSettings.SetValue("Object.TinyType.YOUR_NEW_TINY_TYPE_NAME.Renderer", factory);
} catch (Exception e) { e.printStackTrace(); }
IltSettings| Constructor and Description |
|---|
IltTinySVGBaseRendererFactory()
Creates the factory, always returning the same given SVG object.
|
IltTinySVGBaseRendererFactory(URL svgURL)
Creates the factory, always returning the same given SVG object.
|
| Modifier and Type | Method and Description |
|---|---|
IltBaseRenderer |
createValue()
Returns an
IltTinyBaseRenderer able to display an SVG object. |
createGraphic, getURL, setURLpublic IltTinySVGBaseRendererFactory(URL svgURL)
svgURL - URL that contains the graphic descriptionpublic IltTinySVGBaseRendererFactory()
IltSVGBaseRendererFactory.setURL(URL)public IltBaseRenderer createValue()
IltTinyBaseRenderer able to display an SVG object.
The SVG graphic object is loaded upon first use. Each call to
this method creates a copy of the SVG graphic object and encapsulates
it within a IltTinyBaseRenderer that is ready to be used in the
Network element representation.
createValue in interface IltBaseRendererFactoryIltBaseRenderer© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.