Interface AnnotationPainter


@OpenApiAll public interface AnnotationPainter
An interface for annotation painter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    disposeOn(Annotation annotation)
    Dispose this painter on the given annotation.
    boolean
    Check if this painter is suitable to paint annotation on the given target
    void
    paint(Annotation annotation, Graphics2D g, Object target)
    Paint annotation
  • Method Details

    • isSuitable

      boolean isSuitable(Object target)
      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

      void paint(Annotation annotation, Graphics2D g, Object target)
      Paint annotation
      Parameters:
      annotation - annotation
      g - graphics
      target - target object
    • disposeOn

      void disposeOn(Annotation annotation)
      Dispose this painter on the given annotation. This method is called if painter is replaced on Annotation.
      Parameters:
      annotation - annotation