public class IlpIVLBackgroundFactory extends Object implements IlpBackgroundFactory
IlpBackground
implementation instances
that can handle files of type IVL
.
It creates the following types of IlpBackground
implementations:
IlpIVLFrameworkBackground
IlpIVLMapBackground
This factory determines which IlpBackground
implementation to
create based on its creation mode property.
By default the creation mode
is MAP_CREATION_MODE
, which ensures that instances of IlpIVLMapBackground
are created
by default.
IlpIVLFrameworkBackground
,
IlpIVLMapBackground
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CREATION_MODE
Holds the creation mode which all
IlpIVLBackgroundFactory will
default to when creating implementations of the IlpBackground
interface. |
static String |
FRAMEWORK_CREATION_MODE
Creation mode that indicates that this factory will be creating
IlpIVLFrameworkBackground instances. |
static String |
MAP_CREATION_MODE
Creation mode that indicates that this factory will be creating
IlpIVLMapBackground instances. |
Constructor and Description |
---|
IlpIVLBackgroundFactory()
Instantiates a new background factory.
|
Modifier and Type | Method and Description |
---|---|
IlpBackground |
createBackground(IlpViewsView view,
URL backgroundURL)
Creates an
IlpBackground implementation for IVL
files depending on the current creation mode. |
String |
getCreationMode()
Returns the current creation mode under which this factory is operating.
|
void |
setCreationMode(String creationMode)
Sets the creation mode under which this factory is to operate.
|
public static final String MAP_CREATION_MODE
IlpIVLMapBackground
instances.public static final String FRAMEWORK_CREATION_MODE
IlpIVLFrameworkBackground
instances.public static String DEFAULT_CREATION_MODE
IlpIVLBackgroundFactory
will
default to when creating implementations of the IlpBackground
interface. By default it is the MAP_CREATION_MODE
.public IlpIVLBackgroundFactory()
public IlpBackground createBackground(IlpViewsView view, URL backgroundURL) throws IlpBackgroundHandlingException
IlpBackground
implementation for IVL
files depending on the current creation mode.createBackground
in interface IlpBackgroundFactory
view
- the view in which the background will be displayed.backgroundURL
- the URL
of interest.IlpBackground
representing the given file.IlpBackgroundHandlingException
- in case a problem occurs.DEFAULT_CREATION_MODE
,
FRAMEWORK_CREATION_MODE
,
MAP_CREATION_MODE
public String getCreationMode()
public void setCreationMode(String creationMode)
creationMode
- the creation mode under which this factory is to operateFRAMEWORK_CREATION_MODE
,
MAP_CREATION_MODE
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.