Package net.sf.freecol.client.gui.plaf
Class FreeColToolTipUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ToolTipUI
-
- javax.swing.plaf.basic.BasicToolTipUI
-
- net.sf.freecol.client.gui.plaf.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.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
fontSize
private static java.awt.font.FontRenderContext
frc
private static int
LEADING
private static java.util.regex.Pattern
lineBreak
private static int
margin
private static int
maximumWidth
private static FreeColToolTipUI
sharedInstance
-
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
-
-
-
-
Field Detail
-
sharedInstance
private static final FreeColToolTipUI sharedInstance
-
frc
private static final java.awt.font.FontRenderContext frc
-
margin
private static final int margin
- See Also:
- Constant Field Values
-
maximumWidth
private static int maximumWidth
-
fontSize
private static int fontSize
-
LEADING
private static final int LEADING
- See Also:
- Constant Field Values
-
lineBreak
private static final java.util.regex.Pattern lineBreak
-
-
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 classjavax.swing.plaf.basic.BasicToolTipUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.basic.BasicToolTipUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize
in classjavax.swing.plaf.basic.BasicToolTipUI
-
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSize
in classjavax.swing.plaf.basic.BasicToolTipUI
-
-