Class Annotation<T>

  • Type Parameters:
    T - the type of the annotation object

    public class Annotation<T>
    extends Object
    stores an annotation, either a shape or a string
    Author:
    Tom Nelson - tomnelson@dev.java.net
    • Field Detail

      • annotation

        protected T annotation
      • paint

        protected Paint paint
      • location

        protected Point2D location
      • fill

        protected boolean fill
    • Method Detail

      • getAnnotation

        public T getAnnotation()
        Returns:
        the annotation
      • setAnnotation

        public void setAnnotation​(T annotation)
        Parameters:
        annotation - the annotation to set
      • getLocation

        public Point2D getLocation()
        Returns:
        the location
      • setLayer

        public void setLayer​(Annotation.Layer layer)
        Parameters:
        layer - the layer to set
      • setLocation

        public void setLocation​(Point2D location)
        Parameters:
        location - the location to set
      • getPaint

        public Paint getPaint()
        Returns:
        the paint
      • setPaint

        public void setPaint​(Paint paint)
        Parameters:
        paint - the paint to set
      • isFill

        public boolean isFill()
        Returns:
        the fill
      • setFill

        public void setFill​(boolean fill)
        Parameters:
        fill - the fill to set