Class TLcyLspStyledLayerCustomizerPanelFactory
- All Implemented Interfaces:
ILcyCustomizerPanelFactory
ILcyCustomizerPanelFactory
implementation which can create
ILcyCustomizerPanel
s for TLcyLayerContext
instances containing an
ILspLayer
, or an array of such TLcyLayerContext
instances.
The created panel will contain UI to modify the general layer settings (e.g. visible,
selectable, ... ). To create this UI, this factory relies on another
ILcyCustomizerPanelFactory
instance which accepts the TLcyLayerContext
,
or the array of TLcyLayerContext
instances.
Currently, the created customizer panel will contain UI to modify the style of the layer as
well when the layer fulfills the requirements documented in the ALcyLspStyleFormat#createLayerFactoryImpl
method. In such case, the
creation of the actual UI to modify the layer style of those layers is delegated to other
ILcyCustomizerPanelFactory
instances.
Consult the section about Lightspeed styles in the developer guide for more information about this factory, on the customization possibilities.
- Since:
- 2012.0
-
Constructor Summary
ConstructorDescriptionCreate a newTLcyLspStyledLayerCustomizerPanelFactory
.TLcyLspStyledLayerCustomizerPanelFactory
(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aLayerContextCustomizerPanelFactory) Create a newTLcyLspStyledLayerCustomizerPanelFactory
which usesaLayerContextCustomizerPanelFactory
to create the UI for the general layer settings (e.g.TLcyLspStyledLayerCustomizerPanelFactory
(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aLayerContextCustomizerPanelFactory, List<ILcyCustomizerPanelFactory> aCustomizableStyleContextCustomizerPanelFactories) Create a newTLcyLspStyledLayerCustomizerPanelFactory
where the UI for both the general layer settings (e.g. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcyCompositeCustomizerPanel
createCompositeCustomizerPanel
(Map<ILcyCustomizerPanel, Object> aCustomizerPanelObjectMap) Create a newILcyCompositeCustomizerPanel
which will be used as container for all theILcyCustomizerPanel
instances which are created.createCustomizerPanel
(Object aObject) Creates a new instance ofILcyCustomizerPanel
.Methods inherited from class com.luciad.internal.lucy.gui.customizer.lightspeed.ALcyArrayCustomizerPanelFactory
canCreateCustomizerPanel, canCreateCustomizerPanelSingleObject, getLucyEnv
-
Constructor Details
-
TLcyLspStyledLayerCustomizerPanelFactory
Create a new
TLcyLspStyledLayerCustomizerPanelFactory
. The UI for the general layer settings (e.g. visible, selectable, ... ) will be created by a defaultILcyCustomizerPanelFactory
. The UI for the layer style is created by the registeredILcyCustomizerPanelFactory
instances of the Lucy back-end.Use the other available constructors if you want to specify which
ILcyCustomizerPanelFactory
instances should be used to create the UI.- Parameters:
aLucyEnv
- The Lucy back-end
-
TLcyLspStyledLayerCustomizerPanelFactory
public TLcyLspStyledLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aLayerContextCustomizerPanelFactory) Create a new
TLcyLspStyledLayerCustomizerPanelFactory
which usesaLayerContextCustomizerPanelFactory
to create the UI for the general layer settings (e.g. visible, selectable). The UI for the layer style is created by the registeredILcyCustomizerPanelFactory
instances of the Lucy back-end.aLayerContextCustomizerPanelFactory
should acceptTLcyLayerContext
instances containing anILspLayer
, and arrays of those contexts. An example of such a factory is the availableTLcyLspLayerCustomizerPanelFactory
.In case you want to specify which
ILcyCustomizerPanelFactory
instances will be used to create its UI, use theTLcyLspStyledLayerCustomizerPanelFactory(com.luciad.lucy.ILcyLucyEnv, com.luciad.lucy.gui.customizer.ILcyCustomizerPanelFactory, java.util.List)
constructor.- Parameters:
aLucyEnv
- The Lucy back-endaLayerContextCustomizerPanelFactory
- The customizer panel factory which will be used to create the UI for the general layer settings (e.g. visible, selectable, ... ). Should be able to create customizer panels forTLcyLayerContext
instances containing anILspLayer
, or an array of such instances. Must not benull
- See Also:
-
TLcyLspStyledLayerCustomizerPanelFactory
public TLcyLspStyledLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aLayerContextCustomizerPanelFactory, List<ILcyCustomizerPanelFactory> aCustomizableStyleContextCustomizerPanelFactories) Create a new
TLcyLspStyledLayerCustomizerPanelFactory
where the UI for both the general layer settings (e.g. visible, selectable, ... ) and the UI for the layer style is created by the specifiedILcyCustomizerPanelFactory
instances.aLayerContextCustomizerPanelFactory
is responsible for the UI for the general layer settings and should acceptTLcyLayerContext
instances containing anILspLayer
, and arrays of those contexts. An example of such a factory is the availableTLcyLspLayerCustomizerPanelFactory
.The factories contained in
aCustomizableStyleContextCustomizerPanelFactories
are used for the creation of the UI of the layer style. The objects passed to these factories are either aTLcyLspCustomizableStyleContext
instance or an array of such instances.See the other constructors in case you want to use the available
ILcyCustomizerPanelFactory
instances of the Lucy back-end.- Parameters:
aLucyEnv
- The Lucy back-endaLayerContextCustomizerPanelFactory
- The customizer panel factory which will be used to create the UI for the general layer settings (e.g. visible, selectable, ... ). Should be able to create customizer panels forTLcyLayerContext
instances containing anILspLayer
, or an array of such instances. Must not benull
aCustomizableStyleContextCustomizerPanelFactories
- The customizer panel factories to use. Whennull
, all registered factories of the back-end will be used.
-
-
Method Details
-
createCustomizerPanel
Description copied from interface:ILcyCustomizerPanelFactory
Creates a new instance of
ILcyCustomizerPanel
. Users of this method will most likely set an object to the returnedILcyCustomizerPanel
usingILcyCustomizerPanel.setObject(Object)
. Whether that is possible can be verified in advance usingILcyCustomizerPanelFactory.canCreateCustomizerPanel(Object)
.- Parameters:
aObject
- The object to create anILcyCustomizerPanel
for.- Returns:
- a new instance of
ILcyCustomizerPanel
. - See Also:
-
createCompositeCustomizerPanel
protected ILcyCompositeCustomizerPanel createCompositeCustomizerPanel(Map<ILcyCustomizerPanel, Object> aCustomizerPanelObjectMap) Create a new
ILcyCompositeCustomizerPanel
which will be used as container for all theILcyCustomizerPanel
instances which are created.Overriding this method allows to e.g. combine multiple
ILcyCustomizerPanel
s in one tab, ... .The default implementation returns a
TLcyCompositeCustomizerTabbedPane
where certain panels are combined in one tab.- Parameters:
aCustomizerPanelObjectMap
- Map containing theILcyCustomizerPanel
instances which will be added to the composite panel, and the objects for which those panels are created. For example when a customizer panel was created for aTLcyLspCustomizableStyleContext
the object in the map will be that context.- Returns:
- a new
ILcyCompositeCustomizerPanel
-