Class ALcyLspShapeSupplier
Provides the shapes specific functionality to a TLcyLspSLDDomainObjectSupplier
. This
shape specific functionality consists of an ILspShapeDiscretizer
and an ILspEditor
.
All style-related functionality is taken care of in the TLcyLspSLDDomainObjectSupplier
class which uses this ALcyLspShapeSupplier
.
- Since:
- 2012.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateShapeDiscretizer
(TLspPaintRepresentation aPaintRepresentation) Creates the shape discretizer for the shapes of this supplier instance.createShapeEditor
(TLspPaintRepresentation aPaintRepresentation) Creates theILspEditor
for the shapes of this supplier instance.
-
Constructor Details
-
ALcyLspShapeSupplier
public ALcyLspShapeSupplier()
-
-
Method Details
-
createShapeDiscretizer
Creates the shape discretizer for the shapes of this supplier instance. This discretizer should only accept the shapes created by this supplier, and throw a
TLspDiscretizationException
for unknown shapes (as specified in theILspShapeDiscretizer
interface).This method may return
null
. In that case, the fallback discretizer set by the drawing layer factory will be used.The default implementation returns
null
.Warning: unlike its GXY counterpart, this shape supplier can be asked to discretize shapes other than the ones created by the GXY counterpart. More specifically, if the
TLcySLDDomainObjectSupplier
extruded the shape of theALcyShapeSupplier
, the object that must be discretized can be anILcdExtrudedShape
with the original shape as base shape. This is similar to theALcyGLShapeSupplier
.- Parameters:
aPaintRepresentation
- the paint representation to create a discretizer for- Returns:
- the shape discretizer for the shapes of this supplier instance. May be
null
in which case the fallback discretizer of theTLcyLspSLDDomainObjectSupplier
will be used. - See Also:
-
createShapeEditor
Creates the
ILspEditor
for the shapes of this supplier instance.The
TLspEditContext
passed to the editor will contain theTLcySLDDomainObject
as domain object, and the shape created by this supplier as geometry (or the extruded version of this shape).The default implementation returns a
TLspShapeEditor
for theTLspPaintRepresentation.BODY
representation.Warning: unlike its GXY counterpart, this shape supplier can be asked to edit shapes other than the ones created by the GXY counterpart. More specifically, if the
TLcySLDDomainObjectSupplier
extruded the shape of theALcyShapeSupplier
, the object that must be edited can be anILcdExtrudedShape
with the original shape as base shape.- Parameters:
aPaintRepresentation
- the paint representation to create an editor for- Returns:
- the
ILspEditor
for the shapes of this supplier instance, ornull
when editing is not supported for this shape - See Also:
-