public class IlpXMLBackgroundFactory extends Object implements IlpBackgroundFactory
IlpBackground representing the background
and its parameters.
It can be represented through a piece of XML such as
<background type="ShapeFile"> <property name="loadOnDemand">true</property> <property name="url">data/world.shp</property> </background>
A type or class attribute should be specified.
The value of the type attribute should be one of
IVL, Image, ImageTile, SVG, MIDMIF,
ShapeFile.
The value of the class attribute should be the name of a class that implements
IlpBackground and has a public no-argument
constructor.
The allowed properties and their values depend on the type or class.
See the corresponding classes:
IlpIVLBackground,
IlpImageBackground,
IlpImageTileBackground,
IlpSVGBackground,
IlpMIDMIFBackground,
IlpShapeFileBackground.
All background types support a property named "url". The value of this property is the URL of the
designated image or data file.
| Constructor and Description |
|---|
IlpXMLBackgroundFactory()
Instantiates a new background factory.
|
| Modifier and Type | Method and Description |
|---|---|
IlpBackground |
createBackground(IlpViewsView view,
URL XMLfileURL)
Creates an
IlpBackground representing the contents of the given XML file. |
public IlpXMLBackgroundFactory()
public IlpBackground createBackground(IlpViewsView view, URL XMLfileURL) throws IlpBackgroundHandlingException
IlpBackground representing the contents of the given XML file.createBackground in interface IlpBackgroundFactoryview - the view in which the background will be displayed.XMLfileURL - the URL of interest.IlpBackground representing the given file.IlpBackgroundHandlingException - in case a problem occurs.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.