Package com.luciad.layers.features
Interface IFeaturePainter
- All Known Subinterfaces:
IParameterizedFeaturePainter
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 TypeMethodDescriptionvoidconfigureMetadata(FeaturePainterMetadata metadata) This method is called by the layer to determine when the styling defined by thisIFeaturePainterchanges.voidpaint(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 thisIFeaturePainterchanges.The layer can use the
FeaturePainterMetadatato know when to call theIFeaturePainter#paintmethod. TheFeatureState#selected()and theFeaturePainterMetadata#painterDependsOnFeatureare 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.
-