Class InfoPanelController

    • Constructor Detail

      • InfoPanelController

        public InfoPanelController​(Registry registry)
    • Method Detail

      • showAnnotationPanel

        protected void showAnnotationPanel​(java.lang.String annoText)
      • hideAnnotationPanel

        protected void hideAnnotationPanel()
      • getAnnotationPanelAttributes

        protected AnnotationAttributes getAnnotationPanelAttributes​(java.lang.String annoText)
      • computePanelSize

        protected java.awt.Dimension computePanelSize​(java.lang.String annoText)
        Determine the panel size needed to display the full annotation.
        Parameters:
        annoText - the annotation text.
        Returns:
        the required panel size.
      • computeLengths

        protected java.awt.Dimension computeLengths​(java.lang.String annoText)
        Determine the number of lines in the annotation text and the length of the longest line.
        Parameters:
        annoText - the annotation text.
        Returns:
        the length of the longest line (width) and number of lines (height).
      • splitLines

        protected java.lang.String splitLines​(java.lang.String origText)
        Split a collection of lines into a new collection whose lines are all less than the maximum allowed line length.
        Parameters:
        origText - the original lines.
        Returns:
        the new lines.
      • splitLine

        protected java.lang.String splitLine​(java.lang.String origLine)
        Split a long line into several lines.
        Parameters:
        origLine - the original line
        Returns:
        a string with new-line characters at the line-split locations.