public interface IFeaturePainter
An example of how to implement this interface can be found here.
Modifier and Type | Method and Description |
---|---|
void |
configureMetadata(FeaturePainterMetadata metadata)
This method is called by the layer to determine when the styling defined by this
IFeaturePainter changes. |
void |
paint(Feature feature,
FeaturePainterContext context,
FeatureCanvas canvas)
Specifies how the given feature is painted.
|
void configureMetadata(@NotNull FeaturePainterMetadata metadata)
IFeaturePainter
changes.
The layer can use the FeaturePainterMetadata
to know when to call the IFeaturePainter#paint
method. The FeatureState#selected()
and the FeaturePainterMetadata#painterDependsOnFeature
are active by default.
metadata
- the metadata to be modified in this methodvoid paint(@NotNull Feature feature, @NotNull FeaturePainterContext context, @NotNull FeatureCanvas canvas)
This is done by submitting draw command on the given FeatureCanvas
.
An example of how to implement this method can be found here.
feature
- the feature to paintercontext
- additional context informationcanvas
- the canvas on which to submit draw commands.