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
ConstructorDescriptionTLcyLspSLDDomainObjectSupplier
(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 ALcyLspShapeSupplier
Returns 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:ALcyLspDomainObjectSupplier
Returns the GXY counterpart which was passed in the constructor- Overrides:
getDomainObjectSupplier
in classALcyLspDomainObjectSupplier
- Returns:
- the GXY counterpart which was passed in the constructor
-
createShapeDiscretizer
Description copied from class:ALcyLspDomainObjectSupplier
Creates the shape discretizer for the domain objects of the associated
ALcyDomainObjectSupplier
. If that associatedALcyDomainObjectSupplier
supports extruded shapes, the shape discretizer created by this method should also be able to discretize these extruded shapes.May return
null
when a default discretizer should be used.It is the responsibility of the layer factory created in the
TLcyLspDrawingFormat
to pass these shape discretizers to the painter of the layer. A typical implementation of theILspShapeDiscretizer
which is set to the painter of the layer is a composite implementation of theILspShapeDiscretizer
interface based on theILspShapeDiscretizer
s created in the availableALcyLspDomainObjectSupplier
s. This composite implementation could include a fallbackILspShapeDiscretizer
for the domain objects where the correspondingALcyLspDomainObjectSupplier
created anull
discretizer.- Specified by:
createShapeDiscretizer
in classALcyLspDomainObjectSupplier
- Parameters:
aPaintRepresentation
- the paint representation (e.g. body, label, ...) to create a discretizer for- Returns:
- The
ILspShapeDiscretizer
to discretize the domain objects and extruded domain objects of the associatedALcyDomainObjectSupplier
. May benull
. - See Also:
-
createShapeEditor
Description copied from class:ALcyLspDomainObjectSupplier
Creates the editor for the domain objects of the associated
ALcyDomainObjectSupplier
. If that associatedALcyDomainObjectSupplier
supports extruded shapes, the editor created by this method should also be able to edit these extruded shapes.May return
null
when no editing support is needed for the domain objects of this supplier.It is the responsibility of the layer factory created in the
TLcyLspDrawingFormat
to pass these editors to the layer. A typical implementation of theILspEditor
which is set to the layer is a composite implementation of theILspEditor
interface based on theILspEditor
s created in the availableALcyLspDomainObjectSupplier
s.- Specified by:
createShapeEditor
in classALcyLspDomainObjectSupplier
- Parameters:
aPaintRepresentation
- the paint representation (e.g. body, label, ...) to create an editor for- Returns:
- The
ILspEditor
to edit the domain objects and extruded domain objects of the associatedALcyDomainObjectSupplier
. May benull
. - See Also:
-
createShapeStyler
Description copied from class:ALcyLspDomainObjectSupplier
Creates the styler for the domain objects of the associated
ALcyDomainObjectSupplier
. If that associatedALcyDomainObjectSupplier
supports 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
TLcyLspDrawingFormat
to pass these stylers to the painter of the layer. A typical implementation of theILspStyler
which is set to the painter is a composite implementation of theILspStyler
interface based on theILspStyler
s created in the availableALcyLspDomainObjectSupplier
s.
Ifnull
is returned for theTLspPaintState.EDITED
andTLspPaintState.SELECTED
states, the layer factory may derive a styler based on theTLspPaintState.REGULAR
state.- Specified by:
createShapeStyler
in classALcyLspDomainObjectSupplier
- Parameters:
aPaintRepresentationState
- the paint representation and state to create a styler for- Returns:
- The
ILspStyler
to style the domain objects and extruded domain objects of the associatedALcyDomainObjectSupplier
, ornull
if 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
-