Interface AnnotationPainter
@OpenApiAll
public interface AnnotationPainter
An interface for annotation painter.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disposeOn
(Annotation annotation) Dispose this painter on the given annotation.boolean
isSuitable
(Object target) Check if this painter is suitable to paint annotation on the given targetvoid
paint
(Annotation annotation, Graphics2D g, Object target) Paint annotation
-
Method Details
-
isSuitable
Check if this painter is suitable to paint annotation on the given target- Parameters:
target
- target object- Returns:
- true if painter should be used to paint the annotation
-
paint
Paint annotation- Parameters:
annotation
- annotationg
- graphicstarget
- target object
-
disposeOn
Dispose this painter on the given annotation. This method is called if painter is replaced on Annotation.- Parameters:
annotation
- annotation
-