Package com.luciad.lucy.gui.customizer
Interface ILcyCustomizerPanelFactory
- All Known Implementing Classes:
com.luciad.internal.lucy.gui.customizer.lightspeed.ALcyArrayCustomizerPanelFactory,ALcyCustomizerPanelFactory,TLcyCompositeCustomizerPanelFactory,TLcyEditableAPP6AObjectCustomizerPanelFactory,TLcyEditableMS2525bObjectCustomizerPanelFactory,TLcyGXYAsynchronousLayerCustomizerPanelFactory,TLcyLspLayerCustomizerPanelFactory,TLcyLspStyledLayerCustomizerPanelFactory,TLcyPrintAreaCustomizerFactory
public interface ILcyCustomizerPanelFactory
Factory to creates instances of ILcyCustomizerPanel. An
implementation can only create customizer panels for a certain object when
canCreateCustomizerPanel returns true for that object.
Uses the abstract factory design pattern.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateCustomizerPanel(Object aObject) ReturnstrueifcreateObjectCustomizerwill return a customizer that can handle the given object,falseotherwise.createCustomizerPanel(Object aObject) Creates a new instance ofILcyCustomizerPanel.
-
Method Details
-
canCreateCustomizerPanel
Returns
trueifcreateObjectCustomizerwill return a customizer that can handle the given object,falseotherwise.- Parameters:
aObject- The object to test if a customizer can be created for it.- Returns:
trueif createObjectCustomizer will return a customizer that can handle the given object,falseotherwise.- See Also:
-
createCustomizerPanel
Creates 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 usingcanCreateCustomizerPanel(Object).- Parameters:
aObject- The object to create anILcyCustomizerPanelfor.- Returns:
- a new instance of
ILcyCustomizerPanel. - Throws:
IllegalArgumentException- IfcanCreateCustomizerPanelreturnsfalseforaObject.- See Also:
-