public class IltLogicalSVGBaseRendererFactory extends IltSVGBaseRendererFactory implements IltBaseRendererFactory
It is easy to create a new logical type with the following code:
IltObject.LogicalType newType = new IltObject.LogicalType(YOUR_NEW_LOGICAL_TYPE_NAME); try { URL url = new URL("file","",YOUR_SVG_FILE_NAME); IltLogicalSVGBaseRendererFactory factory = new IltLogicalSVGBaseRendererFactory(url); IltSettings.SetValue("Object.LogicalType.YOUR_NEW_LOGICAL_TYPE_NAME.Renderer", factory); } catch (Exception e) { e.printStackTrace(); }
IltObject.LogicalType
,
IltSettings
Constructor and Description |
---|
IltLogicalSVGBaseRendererFactory()
Creates the factory, always returning the same given SVG object.
|
IltLogicalSVGBaseRendererFactory(URL svgURL)
Creates the factory, always returning the same given SVG object.
|
Modifier and Type | Method and Description |
---|---|
IltBaseRenderer |
createValue()
Returns an
IltLogicalBaseRenderer able to display an SVG object. |
createGraphic, getURL, setURL
public IltLogicalSVGBaseRendererFactory(URL svgURL)
svgURL
- URL that contains the graphic descriptionpublic IltLogicalSVGBaseRendererFactory()
IltSVGBaseRendererFactory.setURL(URL)
.public IltBaseRenderer createValue()
IltLogicalBaseRenderer
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 IltLogicalBaseRenderer
that is ready to be used in the
Network element representation.
createValue
in interface IltBaseRendererFactory
IltBaseRenderer
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.