Class FreeColToolTipUI


  • public class FreeColToolTipUI
    extends javax.swing.plaf.basic.BasicToolTipUI
    Draw the "image.background.FreeColToolTip" resource as a tiled background image on tool tip popups.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FreeColToolTipUI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      java.awt.Dimension getMaximumSize​(javax.swing.JComponent c)  
      java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)  
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      static void setFontScaling​(float fontScaleFactor)  
      • Methods inherited from class javax.swing.plaf.basic.BasicToolTipUI

        installDefaults, installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • frc

        private static final java.awt.font.FontRenderContext frc
      • maximumWidth

        private static int maximumWidth
      • fontSize

        private static int fontSize
      • lineBreak

        private static final java.util.regex.Pattern lineBreak
    • Constructor Detail

      • FreeColToolTipUI

        private FreeColToolTipUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • setFontScaling

        public static void setFontScaling​(float fontScaleFactor)
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicToolTipUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicToolTipUI
      • getMinimumSize

        public java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
        Overrides:
        getMinimumSize in class javax.swing.plaf.basic.BasicToolTipUI
      • getMaximumSize

        public java.awt.Dimension getMaximumSize​(javax.swing.JComponent c)
        Overrides:
        getMaximumSize in class javax.swing.plaf.basic.BasicToolTipUI