public class TLcyLspLayerCustomizerPanelFactory extends Object implements ILcyCustomizerPanelFactory
ILcyCustomizerPanelFactory
implementation which can create
ILcyCustomizerPanel
s for TLcyLayerContext
instances containing an
ILspLayer
, or an array of such TLcyLayerContext
instances.
Note: the customizer panel only contains the UI for general layer settings (label, visible,
...), not for the layer style settings. Other ILcyCustomizerPanelFactory
implementations are available for this in this package.
Constructor and Description |
---|
TLcyLspLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv)
Create a new
TLcyLspLayerCustomizerPanelFactory |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateCustomizerPanel(Object aObject)
Returns
true if createObjectCustomizer will return a customizer that
can handle the given object, false otherwise. |
ILcyCustomizerPanel |
createCustomizerPanel(Object aObject)
Creates a new instance of
ILcyCustomizerPanel . |
public TLcyLspLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv)
TLcyLspLayerCustomizerPanelFactory
aLucyEnv
- The Lucy back-endpublic boolean canCreateCustomizerPanel(Object aObject)
ILcyCustomizerPanelFactory
Returns true
if createObjectCustomizer
will return a customizer that
can handle the given object, false
otherwise.
canCreateCustomizerPanel
in interface ILcyCustomizerPanelFactory
aObject
- The object to test if a customizer can be created for it.true
if createObjectCustomizer will return a customizer that can handle the given
object, false
otherwise.ILcyCustomizerPanelFactory.createCustomizerPanel(java.lang.Object)
public ILcyCustomizerPanel createCustomizerPanel(Object aObject)
ILcyCustomizerPanelFactory
Creates a new instance of ILcyCustomizerPanel
. Users of this method will most
likely set an object to the returned ILcyCustomizerPanel
using ILcyCustomizerPanel.setObject(Object)
. Whether that is possible can be verified in advance
using ILcyCustomizerPanelFactory.canCreateCustomizerPanel(Object)
.
createCustomizerPanel
in interface ILcyCustomizerPanelFactory
aObject
- The object to create an ILcyCustomizerPanel
for.ILcyCustomizerPanel
.ILcyCustomizerPanelFactory.canCreateCustomizerPanel(java.lang.Object)