public abstract class ALcyShapeSupplierWrapper extends ALcyShapeSupplier
ALcyShapeSupplier
that delegates to another shape supplier.Constructor and Description |
---|
ALcyShapeSupplierWrapper(ALcyShapeSupplier aShapeSupplier)
Creates an
ALcyShapeSupplierWrapper instances which delegates to aShapeSupplier |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateShape(ILcdModel aForModel)
Indicates whether this supplier can create a shape for the model
aForModel |
boolean |
canHandle(ILcdShape aShape)
Checks whether this supplier can handle the shape
aShape |
ALcyDomainObjectConverter |
createDomainObjectConverter()
Creates the domain object converter that can convert the shapes of this supplier instance to
other shapes or, conversely, import the data of other flavors to the shapes of this
supplier.
|
ILcdShape |
createShape(ILcdModel aForModel)
Creates the shape of the domain object.
|
ALcyShapeCodec |
createShapeCodec()
Returns a
ALcyShapeCodec for shapes which can be handled by this shape supplier |
ILcyCustomizerPanelFactory[] |
createShapeCustomizerPanelFactories()
Returns a ILcyCustomizerPanelFactory that creates ILcyCustomizerPanels for the shapes
created by this class.
|
TLcyShapePainterProviderContainer |
createShapePainterProviderContainer()
Creates the painters and editors that can paint and edit the shape returned by
ALcyShapeSupplier.createShape(com.luciad.model.ILcdModel) . |
ILcdXMLSchemaBasedDecoderLibrary |
createXMLSchemaBasedDecoderLibrary()
Creates the XML decoder library which will be used to load shapes from the native
format.
|
ILcdXMLSchemaBasedEncoderLibrary |
createXMLSchemaBasedEncoderLibrary()
Creates the XML marshaller library which will be used to save shapes to the native
format.
|
String |
getDisplayName()
Returns the untranslated (US English) display name for this shape
|
TLcyDrawingSymbolizerType |
getDrawingSymbolizerType()
Returns the symbolizer type that should be used to decide with which style to create new
shapes.
|
ALcyShapeSupplier |
getGeometrySupplier()
Returns the delegate geometry supplier.
|
String |
getShapeID()
Returns the ID of this supplier.
|
getProperties
public ALcyShapeSupplierWrapper(ALcyShapeSupplier aShapeSupplier)
ALcyShapeSupplierWrapper
instances which delegates to aShapeSupplier
aShapeSupplier
- the geometry supplier to delegate topublic ALcyShapeSupplier getGeometrySupplier()
public boolean canCreateShape(ILcdModel aForModel)
ALcyShapeSupplier
aForModel
canCreateShape
in class ALcyShapeSupplier
aForModel
- The target model, for which this shape supplier should create a shapetrue
.public ILcdShape createShape(ILcdModel aForModel)
ALcyShapeSupplier
createShape
in class ALcyShapeSupplier
aForModel
- The ILcdModel
for which the shape is created. The
implementation of this method can use this model to determine, for instance,
the model reference or the ILcdDataModelDescriptor. Never null
.
The implementation of this method should not insert the
created shape in this ILcdModel
.null
.public ILcyCustomizerPanelFactory[] createShapeCustomizerPanelFactories()
ALcyShapeSupplier
Returns a ILcyCustomizerPanelFactory that creates ILcyCustomizerPanels for the shapes created by this class.
The objects set on the customizer panels are instances of TLcyShapeContext
. This
context also contains a reference to the shape and an ILcdModel, but the shape is not an
element of this model.
createShapeCustomizerPanelFactories
in class ALcyShapeSupplier
public TLcyShapePainterProviderContainer createShapePainterProviderContainer()
ALcyShapeSupplier
ALcyShapeSupplier.createShape(com.luciad.model.ILcdModel)
. These painters don't have to perform
any styling, see TLcyShapePainterProviderContainer
for more details.createShapePainterProviderContainer
in class ALcyShapeSupplier
TLcyShapePainterProviderContainer
that can paint the delegate shape. Must not
be null
.public ALcyShapeCodec createShapeCodec()
ALcyShapeSupplier
ALcyShapeCodec
for shapes which can be handled by this shape suppliercreateShapeCodec
in class ALcyShapeSupplier
ALcyShapeCodec
for shapes which can be handled by this shape supplier. Must not be null
.public ILcdXMLSchemaBasedEncoderLibrary createXMLSchemaBasedEncoderLibrary()
ALcyShapeSupplier
ILcdXMLSchemaBasedEncoderLibrary.configureEncoder
method:
public void configureEncoder( TLcdXMLSchemaBasedEncoder aEncoder ) {
TLcdXMLSchemaSet schema = aEncoder.getMapping().getSchemaSet();
schema.registerElement( MY_GEOMETRY_PROPERTY_ELEMENT );
schema.registerElement( MY_GEOMETRY_ELEMENT );
TLcdXMLTypeMarshallerProvider provider = aEncoder.getTypeMarshallerProvider();
provider.registerTypeMarshaller( MY_GEOMETRY_PROPERTY_ELEMENT.getType(), MyShape.class, new MyShapePropertyMarshaller( aMarshallerContext ) );
provider.registerTypeMarshaller( MY_GEOMETRY_ELEMENT.getType(), MyShape.class, new MyShapeMarshaller( aMarshallerContext ) );
}
createXMLSchemaBasedEncoderLibrary
in class ALcyShapeSupplier
public ILcdXMLSchemaBasedDecoderLibrary createXMLSchemaBasedDecoderLibrary()
ALcyShapeSupplier
ILcdXMLSchemaBasedDecoderLibrary.configureDecoder
method:
public void configureDecoder( TLcdXMLSchemaBasedDecoder aDecoder ) {
TLcdXMLSchemaSet schema = aDecoder.getMapping().getSchemaSet();
schema.registerElement( MY_GEOMETRY_PROPERTY_ELEMENT );
schema.registerElement( MY_GEOMETRY_ELEMENT );
TLcdXMLTypeUnmarshallerProvider provider = aDecoder.getTypeUnmarshallerProvider();
provider.registerTypeUnmarshaller( MY_GEOMETRY_PROPERTY_ELEMENT.getType(), MyShape.class, new MyShapePropertyUnmarshaller( aDecoder ) );
provider.registerTypeUnmarshaller( MY_GEOMETRY_ELEMENT.getType(), MyShape.class, new MyShapeUnmarshaller( aDecoder ) );
}
createXMLSchemaBasedDecoderLibrary
in class ALcyShapeSupplier
public String getDisplayName()
ALcyShapeSupplier
getDisplayName
in class ALcyShapeSupplier
public TLcyDrawingSymbolizerType getDrawingSymbolizerType()
ALcyShapeSupplier
getDrawingSymbolizerType
in class ALcyShapeSupplier
null
.public String getShapeID()
ALcyShapeSupplier
getShapeID
in class ALcyShapeSupplier
ALcyDomainObjectSupplier.getDomainObjectID()
public boolean canHandle(ILcdShape aShape)
ALcyShapeSupplier
aShape
canHandle
in class ALcyShapeSupplier
aShape
- the ILcdShape
to checktrue
when this shape is capable of handling the shape aShape
public ALcyDomainObjectConverter createDomainObjectConverter()
ALcyShapeSupplier
Creates the domain object converter that can convert the shapes of this supplier instance to other shapes or, conversely, import the data of other flavors to the shapes of this supplier.
The default implementation returns a domain object converter based on theALcyShapeCodec
.createDomainObjectConverter
in class ALcyShapeSupplier
null
.