Class TLcyLspSLDDomainObjectSupplier
Lightspeed counterpart of TLcySLDDomainObjectSupplier. It has an associated ALcyLspShapeSupplier, to which it delegates the creation of an ILspShapeDiscretizer and
ILspEditor.
The ILspStyler for those shapes is
provided by this class and is based on the SLD styling information present in the TLcySLDDomainObject.
- Since:
- 2012.1
-
Constructor Summary
ConstructorsConstructorDescriptionTLcyLspSLDDomainObjectSupplier(TLcySLDDomainObjectSupplier aSLDDomainObjectSupplier, ALcyLspShapeSupplier aGeometryShapeSupplier) Creates a newTLcyLspSLDDomainObjectSupplier -
Method Summary
Modifier and TypeMethodDescriptioncreateShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation) Creates the shape discretizer for the domain objects of the associatedALcyDomainObjectSupplier.createShapeEditor(TLspPaintRepresentation aPaintRepresentation) Creates the editor for the domain objects of the associatedALcyDomainObjectSupplier.createShapeStyler(TLspPaintRepresentationState aPaintRepresentationState) Creates the styler for the domain objects of the associatedALcyDomainObjectSupplier.Returns the GXY counterpart which was passed in the constructorfinal ALcyLspShapeSupplierReturns the geometry supplier associated to this domain object supplierMethods inherited from class com.luciad.lucy.addons.drawing.lightspeed.ALcyLspDomainObjectSupplier
getBodyPaintRepresentations, getLabelPaintRepresentations
-
Constructor Details
-
TLcyLspSLDDomainObjectSupplier
public TLcyLspSLDDomainObjectSupplier(TLcySLDDomainObjectSupplier aSLDDomainObjectSupplier, ALcyLspShapeSupplier aGeometryShapeSupplier) Creates a newTLcyLspSLDDomainObjectSupplier- Parameters:
aSLDDomainObjectSupplier- The GXY counterpartaGeometryShapeSupplier- A Lightspeed geometry supplier
-
-
Method Details
-
getDomainObjectSupplier
Description copied from class:ALcyLspDomainObjectSupplierReturns the GXY counterpart which was passed in the constructor- Overrides:
getDomainObjectSupplierin classALcyLspDomainObjectSupplier- Returns:
- the GXY counterpart which was passed in the constructor
-
createShapeDiscretizer
Description copied from class:ALcyLspDomainObjectSupplierCreates the shape discretizer for the domain objects of the associated
ALcyDomainObjectSupplier. If that associatedALcyDomainObjectSuppliersupports extruded shapes, the shape discretizer created by this method should also be able to discretize these extruded shapes.May return
nullwhen a default discretizer should be used.It is the responsibility of the layer factory created in the
TLcyLspDrawingFormatto pass these shape discretizers to the painter of the layer. A typical implementation of theILspShapeDiscretizerwhich is set to the painter of the layer is a composite implementation of theILspShapeDiscretizerinterface based on theILspShapeDiscretizers created in the availableALcyLspDomainObjectSuppliers. This composite implementation could include a fallbackILspShapeDiscretizerfor the domain objects where the correspondingALcyLspDomainObjectSuppliercreated anulldiscretizer.- Specified by:
createShapeDiscretizerin classALcyLspDomainObjectSupplier- Parameters:
aPaintRepresentation- the paint representation (e.g. body, label, ...) to create a discretizer for- Returns:
- The
ILspShapeDiscretizerto discretize the domain objects and extruded domain objects of the associatedALcyDomainObjectSupplier. May benull. - See Also:
-
createShapeEditor
Description copied from class:ALcyLspDomainObjectSupplierCreates the editor for the domain objects of the associated
ALcyDomainObjectSupplier. If that associatedALcyDomainObjectSuppliersupports extruded shapes, the editor created by this method should also be able to edit these extruded shapes.May return
nullwhen no editing support is needed for the domain objects of this supplier.It is the responsibility of the layer factory created in the
TLcyLspDrawingFormatto pass these editors to the layer. A typical implementation of theILspEditorwhich is set to the layer is a composite implementation of theILspEditorinterface based on theILspEditors created in the availableALcyLspDomainObjectSuppliers.- Specified by:
createShapeEditorin classALcyLspDomainObjectSupplier- Parameters:
aPaintRepresentation- the paint representation (e.g. body, label, ...) to create an editor for- Returns:
- The
ILspEditorto edit the domain objects and extruded domain objects of the associatedALcyDomainObjectSupplier. May benull. - See Also:
-
createShapeStyler
Description copied from class:ALcyLspDomainObjectSupplierCreates the styler for the domain objects of the associated
ALcyDomainObjectSupplier. If that associatedALcyDomainObjectSuppliersupports extruded shapes, the styler created by this method should also be able to style these extruded shapes.It is the responsibility of the layer factory created in the
TLcyLspDrawingFormatto pass these stylers to the painter of the layer. A typical implementation of theILspStylerwhich is set to the painter is a composite implementation of theILspStylerinterface based on theILspStylers created in the availableALcyLspDomainObjectSuppliers.
Ifnullis returned for theTLspPaintState.EDITEDandTLspPaintState.SELECTEDstates, the layer factory may derive a styler based on theTLspPaintState.REGULARstate.- Specified by:
createShapeStylerin classALcyLspDomainObjectSupplier- Parameters:
aPaintRepresentationState- the paint representation and state to create a styler for- Returns:
- The
ILspStylerto style the domain objects and extruded domain objects of the associatedALcyDomainObjectSupplier, ornullif no visualization is needed for the given paint representation, - See Also:
-
getShapeSupplier
Returns the geometry supplier associated to this domain object supplier- Returns:
- the geometry supplier associated to this domain object supplier
-