public class TLcyGXYAsynchronousLayerCustomizerPanelFactory extends Object implements ILcyCustomizerPanelFactory
For LayerContexts, the calls are delegated using a safe layer context as determined by
ALcyAsynchronousPaintFacade.invokeNowOnGXYLayer(com.luciad.view.gxy.ILcdGXYLayer, com.luciad.view.gxy.asynchronous.ILcdGXYAsynchronousLayerRunnable)
.
For ModelContexts, DomainObjectContexts and ModelEncoderContexts,
the calls are delegated with read-write model locks.
TLcyGXYAsynchronousLayerCustomizerPanel
Constructor and Description |
---|
TLcyGXYAsynchronousLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv,
ILcyCustomizerPanelFactory aCustomizerPanelFactory)
Creates a new factory that creates wrapper panels around the panels produced by the given factory.
|
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 TLcyGXYAsynchronousLayerCustomizerPanelFactory(ILcyLucyEnv aLucyEnv, ILcyCustomizerPanelFactory aCustomizerPanelFactory)
aLucyEnv
- Lucy environmentaCustomizerPanelFactory
- factory whose panels to wrap. The factory must produce panels that are
instances of java.awt.Componentpublic 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)