Class AnnotationElement

java.lang.Object
noaa.coastwatch.render.AnnotationElement
Direct Known Subclasses:
PictureElement, TextElement

public abstract class AnnotationElement extends Object
An annotation element handles the specific information for annotation of data with one symbol or string. Elements may be grouped together to compose a data annotation overlay.
Since:
3.1.1
Author:
Peter Hollemans
  • Constructor Details

    • AnnotationElement

      public AnnotationElement()
  • Method Details

    • render

      public abstract void render(Graphics2D g, Color foreground, Color background)
      Renders the element graphics.
      Parameters:
      g - the graphics object for drawing.
      foreground - the foreground element color.
      background - the background element color or null for no background.
    • getArea

      public abstract Area getArea(Graphics2D g)
      Gets the element bounding area.
      Parameters:
      g - the graphics object for drawing.
    • getBounds

      public Rectangle getBounds(Graphics2D g)
      Gets the element bounding rectangle.
      Parameters:
      g - the graphics object for drawing.