Class Annotation


  • public class Annotation
    extends java.lang.Object
    • Constructor Detail

      • Annotation

        public Annotation​(java.lang.String annotationText,
                          AttributedString prototypeString,
                          Program program)
        Constructor Note: This constructor assumes that the string starts with "{
        @
        " and ends with '}'
        Parameters:
        annotationText - The complete annotation text.
        prototypeString - An AttributedString that provides the attributes for the display text this Annotation can create
    • Method Detail

      • handleMouseClick

        public boolean handleMouseClick​(Navigatable sourceNavigatable,
                                        ServiceProvider serviceProvider)
        Called when a mouse click occurs on a FieldElement containing this Annotation.
        Parameters:
        sourceNavigatable - The source navigatable associated with the mouse click.
        serviceProvider - The service provider to be used when creating AnnotatedStringHandler instances.
        Returns:
        true if the handler desires to handle the mouse click.
      • getAnnotationText

        public java.lang.String getAnnotationText()