public class TLcyLspSLDDomainObjectSupplier extends ALcyLspDomainObjectSupplier
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
.
Constructor and Description |
---|
TLcyLspSLDDomainObjectSupplier(TLcySLDDomainObjectSupplier aSLDDomainObjectSupplier,
ALcyLspShapeSupplier aGeometryShapeSupplier)
Creates a new
TLcyLspSLDDomainObjectSupplier |
Modifier and Type | Method and Description |
---|---|
ILspShapeDiscretizer |
createShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation)
Creates the shape discretizer for the domain objects of the associated
ALcyDomainObjectSupplier . |
ILspEditor |
createShapeEditor(TLspPaintRepresentation aPaintRepresentation)
Creates the editor for the domain objects of the associated
ALcyDomainObjectSupplier . |
ILspStyler |
createShapeStyler(TLspPaintRepresentationState aPaintRepresentationState)
Creates the styler for the domain objects of the associated
ALcyDomainObjectSupplier . |
TLcySLDDomainObjectSupplier |
getDomainObjectSupplier()
Returns the GXY counterpart which was passed in the constructor
|
ALcyLspShapeSupplier |
getShapeSupplier()
Returns the geometry supplier associated to this domain object supplier
|
getBodyPaintRepresentations, getLabelPaintRepresentations
public TLcyLspSLDDomainObjectSupplier(TLcySLDDomainObjectSupplier aSLDDomainObjectSupplier, ALcyLspShapeSupplier aGeometryShapeSupplier)
TLcyLspSLDDomainObjectSupplier
aSLDDomainObjectSupplier
- The GXY counterpartaGeometryShapeSupplier
- A Lightspeed geometry supplierpublic final TLcySLDDomainObjectSupplier getDomainObjectSupplier()
ALcyLspDomainObjectSupplier
getDomainObjectSupplier
in class ALcyLspDomainObjectSupplier
public ILspShapeDiscretizer createShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation)
ALcyLspDomainObjectSupplier
Creates the shape discretizer for the domain objects of the associated ALcyDomainObjectSupplier
. If that associated ALcyDomainObjectSupplier
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 the
ILspShapeDiscretizer
which is set to the painter of the layer is a composite
implementation of the ILspShapeDiscretizer
interface based on the ILspShapeDiscretizer
s created in the available ALcyLspDomainObjectSupplier
s. This
composite implementation could include a fallback ILspShapeDiscretizer
for the domain
objects where the corresponding ALcyLspDomainObjectSupplier
created a null
discretizer.
createShapeDiscretizer
in class ALcyLspDomainObjectSupplier
aPaintRepresentation
- the paint representation (e.g. body, label, ...) to create a
discretizer forILspShapeDiscretizer
to discretize the domain objects and extruded domain
objects of the associated ALcyDomainObjectSupplier
. May be null
.TLcyLspDrawingFormat.createLayerFactory()
public ILspEditor createShapeEditor(TLspPaintRepresentation aPaintRepresentation)
ALcyLspDomainObjectSupplier
Creates the editor for the domain objects of the associated ALcyDomainObjectSupplier
. If that associated ALcyDomainObjectSupplier
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 the ILspEditor
which is
set to the layer is a composite implementation of the ILspEditor
interface based on the
ILspEditor
s created in the available ALcyLspDomainObjectSupplier
s.
createShapeEditor
in class ALcyLspDomainObjectSupplier
aPaintRepresentation
- the paint representation (e.g. body, label, ...) to create an
editor forILspEditor
to edit the domain objects and extruded domain objects of the
associated ALcyDomainObjectSupplier
. May be null
.TLcyLspDrawingFormat.createLayerFactory()
public ILspStyler createShapeStyler(TLspPaintRepresentationState aPaintRepresentationState)
ALcyLspDomainObjectSupplier
Creates the styler for the domain objects of the associated ALcyDomainObjectSupplier
. If that associated ALcyDomainObjectSupplier
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 the ILspStyler
which is set to the painter is a composite implementation of the ILspStyler
interface based on the ILspStyler
s created in the available ALcyLspDomainObjectSupplier
s.
If null
is returned for the TLspPaintState.EDITED
and TLspPaintState.SELECTED
states, the layer factory may derive
a styler based on the TLspPaintState.REGULAR
state.
createShapeStyler
in class ALcyLspDomainObjectSupplier
aPaintRepresentationState
- the paint representation and state to create a styler forILspStyler
to style the domain objects and extruded domain objects of the
associated ALcyDomainObjectSupplier
, or null
if no visualization is
needed for the given paint representation,TLcyLspDrawingFormat.createLayerFactory()
public final ALcyLspShapeSupplier getShapeSupplier()