Package com.luciad.layers.features
Interface IFeaturePainter
public interface IFeaturePainter
A feature painter is used to specify how a feature is painted.
An example of how to implement this interface can be found here.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureMetadata
(FeaturePainterMetadata metadata) This method is called by the layer to determine when the styling defined by thisIFeaturePainter
changes.void
paint
(Feature feature, FeaturePainterContext context, FeatureCanvas canvas) Specifies how the given feature is painted.
-
Method Details
-
configureMetadata
This method is called by the layer to determine when the styling defined by thisIFeaturePainter
changes.The layer can use the
FeaturePainterMetadata
to know when to call theIFeaturePainter#paint
method. TheFeatureState#selected()
and theFeaturePainterMetadata#painterDependsOnFeature
are active by default.- Parameters:
metadata
- the metadata to be modified in this method
-
paint
void paint(@NotNull Feature feature, @NotNull FeaturePainterContext context, @NotNull FeatureCanvas canvas) Specifies how the given feature is painted.This is done by submitting draw command on the given
FeatureCanvas
.An example of how to implement this method can be found here.
- Parameters:
feature
- the feature to paintercontext
- additional context informationcanvas
- the canvas on which to submit draw commands.
-