Class TLcyLspSLDDomainObjectSupplier

java.lang.Object
com.luciad.lucy.addons.drawing.lightspeed.ALcyLspDomainObjectSupplier
com.luciad.lucy.addons.drawing.lightspeed.TLcyLspSLDDomainObjectSupplier

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.

Since:
2012.1
  • Constructor Details

    • TLcyLspSLDDomainObjectSupplier

      public TLcyLspSLDDomainObjectSupplier(TLcySLDDomainObjectSupplier aSLDDomainObjectSupplier, ALcyLspShapeSupplier aGeometryShapeSupplier)
      Creates a new TLcyLspSLDDomainObjectSupplier
      Parameters:
      aSLDDomainObjectSupplier - The GXY counterpart
      aGeometryShapeSupplier - A Lightspeed geometry supplier
  • Method Details

    • getDomainObjectSupplier

      public final TLcySLDDomainObjectSupplier getDomainObjectSupplier()
      Description copied from class: ALcyLspDomainObjectSupplier
      Returns the GXY counterpart which was passed in the constructor
      Overrides:
      getDomainObjectSupplier in class ALcyLspDomainObjectSupplier
      Returns:
      the GXY counterpart which was passed in the constructor
    • createShapeDiscretizer

      public ILspShapeDiscretizer createShapeDiscretizer(TLspPaintRepresentation aPaintRepresentation)
      Description copied from class: 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 ILspShapeDiscretizers created in the available ALcyLspDomainObjectSuppliers. This composite implementation could include a fallback ILspShapeDiscretizer for the domain objects where the corresponding ALcyLspDomainObjectSupplier created a null discretizer.

      Specified by:
      createShapeDiscretizer in class ALcyLspDomainObjectSupplier
      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 associated ALcyDomainObjectSupplier. May be null.
      See Also:
    • createShapeEditor

      public ILspEditor createShapeEditor(TLspPaintRepresentation aPaintRepresentation)
      Description copied from class: 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 ILspEditors created in the available ALcyLspDomainObjectSuppliers.

      Specified by:
      createShapeEditor in class ALcyLspDomainObjectSupplier
      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 associated ALcyDomainObjectSupplier. May be null.
      See Also:
    • createShapeStyler

      public ILspStyler createShapeStyler(TLspPaintRepresentationState aPaintRepresentationState)
      Description copied from class: 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 ILspStylers created in the available ALcyLspDomainObjectSuppliers.
      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.

      Specified by:
      createShapeStyler in class ALcyLspDomainObjectSupplier
      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 associated ALcyDomainObjectSupplier, or null if no visualization is needed for the given paint representation,
      See Also:
    • getShapeSupplier

      public final ALcyLspShapeSupplier getShapeSupplier()
      Returns the geometry supplier associated to this domain object supplier
      Returns:
      the geometry supplier associated to this domain object supplier