Class ALcyLspDomainObjectSupplier
- Direct Known Subclasses:
TLcyLspSLDDomainObjectSupplier
Lightspeed counterpart of ALcyDomainObjectSupplier. It provides the ILspShapeDiscretizer,
ILspStyler and ILspEditor for visualizing and editing the domain
objects of the associated ALcyDomainObjectSupplier in a Lightspeed view.
If the associated ALcyDomainObjectSupplier supports extruded shapes, the
ILspShapeDiscretizer, ILspStyler and ILspEditor created by this
ALcyLspDomainObjectSupplier must be able to handle those extruded shapes in a Lightspeed
view.
All the model related functionality is contained in the matching ALcyDomainObjectSupplier.
- Since:
- 2012.1
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedALcyLspDomainObjectSupplier(ALcyDomainObjectSupplier aDomainObjectSupplier) Creates a newALcyLspDomainObjectSupplier. -
Method Summary
Modifier and TypeMethodDescriptionabstract ILspShapeDiscretizercreateShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation) Creates the shape discretizer for the domain objects of the associatedALcyDomainObjectSupplier.abstract ILspEditorcreateShapeEditor(TLspPaintRepresentation aPaintRepresentation) Creates the editor for the domain objects of the associatedALcyDomainObjectSupplier.abstract ILspStylercreateShapeStyler(TLspPaintRepresentationState aPaintRepresentationState) Creates the styler for the domain objects of the associatedALcyDomainObjectSupplier.Returns the body paint representations that can be visualized and/or edited by this supplier.Returns the GXY counterpart which was passed in the constructorReturns the label paint representations that can be visualized and/or edited by this supplier.
-
Constructor Details
-
ALcyLspDomainObjectSupplier
Creates a newALcyLspDomainObjectSupplier. Since Lightspeed domain object suppliers only provide methods to obtain the editor and discretizer, the GXY counterpart is passed in the constructor. This allows to recuperate the rest of the functionality of a domain object supplier from the GXY part.- Parameters:
aDomainObjectSupplier- the GXY counterpart
-
-
Method Details
-
getDomainObjectSupplier
Returns the GXY counterpart which was passed in the constructor- Returns:
- the GXY counterpart which was passed in the constructor
-
getBodyPaintRepresentations
Returns the body paint representations that can be visualized and/or edited by this supplier. For every representation, astyler,discretizer, andeditorare retrieved. The default implementation supports theTLspPaintRepresentation.BODYrepresentation.- Returns:
- the paint representations supported by this supplier
-
getLabelPaintRepresentations
Returns the label paint representations that can be visualized and/or edited by this supplier. For every representation, astyler,discretizer, andeditorare retrieved. The default implementation supports theTLspPaintRepresentation.LABELrepresentation.- Returns:
- the paint representations supported by this supplier
- See Also:
-
createShapeDiscretizer
public abstract ILspShapeDiscretizer createShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation) Creates 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.- 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
Creates 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.- 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
public abstract ILspStyler createShapeStyler(TLspPaintRepresentationState aPaintRepresentationState) Creates 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.- 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:
-