Class TLcyLspStyledLayerCustomizerPanelFactory
- All Implemented Interfaces:
ILcyCustomizerPanelFactory
ILcyCustomizerPanelFactory implementation which can create
ILcyCustomizerPanels 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
ConstructorsConstructorDescriptionCreate a newTLcyLspStyledLayerCustomizerPanelFactory.TLcyLspStyledLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aLayerContextCustomizerPanelFactory) Create a newTLcyLspStyledLayerCustomizerPanelFactorywhich usesaLayerContextCustomizerPanelFactoryto create the UI for the general layer settings (e.g.TLcyLspStyledLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aLayerContextCustomizerPanelFactory, List<ILcyCustomizerPanelFactory> aCustomizableStyleContextCustomizerPanelFactories) Create a newTLcyLspStyledLayerCustomizerPanelFactorywhere the UI for both the general layer settings (e.g. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcyCompositeCustomizerPanelcreateCompositeCustomizerPanel(Map<ILcyCustomizerPanel, Object> aCustomizerPanelObjectMap) Create a newILcyCompositeCustomizerPanelwhich will be used as container for all theILcyCustomizerPanelinstances 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 registeredILcyCustomizerPanelFactoryinstances of the Lucy back-end.Use the other available constructors if you want to specify which
ILcyCustomizerPanelFactoryinstances should be used to create the UI.- Parameters:
aLucyEnv- The Lucy back-end
-
TLcyLspStyledLayerCustomizerPanelFactory
public TLcyLspStyledLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aLayerContextCustomizerPanelFactory) Create a new
TLcyLspStyledLayerCustomizerPanelFactorywhich usesaLayerContextCustomizerPanelFactoryto create the UI for the general layer settings (e.g. visible, selectable). The UI for the layer style is created by the registeredILcyCustomizerPanelFactoryinstances of the Lucy back-end.aLayerContextCustomizerPanelFactoryshould acceptTLcyLayerContextinstances containing anILspLayer, and arrays of those contexts. An example of such a factory is the availableTLcyLspLayerCustomizerPanelFactory.In case you want to specify which
ILcyCustomizerPanelFactoryinstances 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 forTLcyLayerContextinstances 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
TLcyLspStyledLayerCustomizerPanelFactorywhere the UI for both the general layer settings (e.g. visible, selectable, ... ) and the UI for the layer style is created by the specifiedILcyCustomizerPanelFactoryinstances.aLayerContextCustomizerPanelFactoryis responsible for the UI for the general layer settings and should acceptTLcyLayerContextinstances containing anILspLayer, and arrays of those contexts. An example of such a factory is the availableTLcyLspLayerCustomizerPanelFactory.The factories contained in
aCustomizableStyleContextCustomizerPanelFactoriesare used for the creation of the UI of the layer style. The objects passed to these factories are either aTLcyLspCustomizableStyleContextinstance or an array of such instances.See the other constructors in case you want to use the available
ILcyCustomizerPanelFactoryinstances 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 forTLcyLayerContextinstances containing anILspLayer, or an array of such instances. Must not benullaCustomizableStyleContextCustomizerPanelFactories- The customizer panel factories to use. Whennull, all registered factories of the back-end will be used.
-
-
Method Details
-
createCustomizerPanel
Description copied from interface:ILcyCustomizerPanelFactoryCreates a new instance of
ILcyCustomizerPanel. Users of this method will most likely set an object to the returnedILcyCustomizerPanelusingILcyCustomizerPanel.setObject(Object). Whether that is possible can be verified in advance usingILcyCustomizerPanelFactory.canCreateCustomizerPanel(Object).- Parameters:
aObject- The object to create anILcyCustomizerPanelfor.- Returns:
- a new instance of
ILcyCustomizerPanel. - See Also:
-
createCompositeCustomizerPanel
protected ILcyCompositeCustomizerPanel createCompositeCustomizerPanel(Map<ILcyCustomizerPanel, Object> aCustomizerPanelObjectMap) Create a new
ILcyCompositeCustomizerPanelwhich will be used as container for all theILcyCustomizerPanelinstances which are created.Overriding this method allows to e.g. combine multiple
ILcyCustomizerPanels in one tab, ... .The default implementation returns a
TLcyCompositeCustomizerTabbedPanewhere certain panels are combined in one tab.- Parameters:
aCustomizerPanelObjectMap- Map containing theILcyCustomizerPanelinstances 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 aTLcyLspCustomizableStyleContextthe object in the map will be that context.- Returns:
- a new
ILcyCompositeCustomizerPanel
-