Class TextAnnotationPanel

    • Constructor Detail

      • TextAnnotationPanel

        public TextAnnotationPanel​(Controller controller)
    • Method Detail

      • setAnnotationComponent

        public void setAnnotationComponent​(AnnotationComponent newAnnotation)
        Method that should be called when a new AnnotationComponent is selected by the user The associated object will be stored locally as currentAnnotation Then all of it's properties will be applied to the UI pane For example if the border was red, the color of the background button will be changed to red
        Specified by:
        setAnnotationComponent in interface AnnotationProperties
        Parameters:
        newAnnotation - to set and apply to this UI
      • setEnabled

        public void setEnabled​(boolean enabled)
        Overrides:
        setEnabled in class JComponent
      • safeEnable

        protected boolean safeEnable​(JComponent comp,
                                     boolean enabled)
        Convenience method to ensure a component is safe to toggle the enabled state on
        Parameters:
        comp - to toggle
        enabled - the status to use
        Returns:
        true on success