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