Class AnnotationPanelAdapter

    • Constructor Detail

      • AnnotationPanelAdapter

        protected AnnotationPanelAdapter​(Controller controller)
    • Method Detail

      • updateCurrentAnnotation

        protected void updateCurrentAnnotation()
        Utility to update the action annotation when changes have been made to 'Dest' which has the same notation as 'GoTo'. It's the pre action way of doing things and is still very common of link Annotations. .
      • buildAlphaSlider

        protected JSlider buildAlphaSlider()
        Utility to build the transparency bar slider for changing a markup annotations stroking and non-stroking alpha values (/CA, /ca).
        Returns:
        new instance of a jSlider ranging from TRANSPARENCY_MIN to TRANSPARENCY_MAX.
      • alphaSliderChange

        protected void alphaSliderChange​(ChangeEvent e,
                                         MarkupAnnotation annotation,
                                         String preferenceName)
        Handler for the alpha value update for an annotation's opacity updated.
        Parameters:
        e - change event.
        annotation - annotation to apply the opacity value to.
        preferenceName - name of preference to write alpha to .
      • setButtonBackgroundColor

        protected void setButtonBackgroundColor​(JButton button,
                                                Color color)
        Set the background colour of the various buttons that are used to show the colour picker as well as show the selected colour.
        Parameters:
        button - button to set colour of.
        color - color ot set the buttons background.
      • addGB

        protected void addGB​(JPanel layout,
                             Component component,
                             int x,
                             int y,
                             int rowSpan,
                             int colSpan)