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 provided annotation text matches the regular expression defined in, which assures that the string starts with "{
        " and ends with '}'
        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.
        sourceNavigatable - The source navigatable associated with the mouse click.
        serviceProvider - The service provider to be used when creating AnnotatedStringHandler instances.
        true if the handler desires to handle the mouse click.
      • getAnnotationText

        public java.lang.String getAnnotationText()