javax.swing.plaf.basic
public class BasicToolTipUI extends ToolTipUI
Constructor and Description |
---|
BasicToolTipUI()
Creates a new BasicToolTipUI object.
|
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c)
This method creates a new BasicToolTip UI for the given
JComponent.
|
Dimension |
getMaximumSize(JComponent c)
This method returns the msximum size of the given JComponent.
|
Dimension |
getMinimumSize(JComponent c)
This method returns the minimum size of the given JComponent.
|
Dimension |
getPreferredSize(JComponent c)
This method returns the preferred size of the given JComponent.
|
protected void |
installDefaults(JComponent c)
This method installs the defaults for the given JComponent.
|
protected void |
installListeners(JComponent c)
This method installs the listeners for the given JComponent.
|
void |
installUI(JComponent c)
This method installs the UI for the given JComponent.
|
void |
paint(Graphics g,
JComponent c)
This method paints the given JComponent with the given Graphics object.
|
protected void |
uninstallDefaults(JComponent c)
This method uninstalls the defaults for the given JComponent.
|
protected void |
uninstallListeners(JComponent c)
This method uninstalls listeners for the given JComponent.
|
void |
uninstallUI(JComponent c)
This method uninstalls the UI for the given JComponent.
|
contains, getAccessibleChild, getAccessibleChildrenCount, update
public BasicToolTipUI()
public static ComponentUI createUI(JComponent c)
c
- The JComponent to create a UI for.public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
c
- The JComponent to find a maximum size for.public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
c
- The JComponent to find a minimum size for.public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
c
- The JComponent to find a preferred size for.protected void installDefaults(JComponent c)
c
- The JComponent to install defaults for.protected void installListeners(JComponent c)
c
- The JComponent to install listeners for.public void installUI(JComponent c)
installUI
in class ComponentUI
c
- The JComponent to install the UI for.ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
g
- The Graphics object to paint with.c
- The JComponent to paint.protected void uninstallDefaults(JComponent c)
c
- The JComponent to uninstall defaults for.protected void uninstallListeners(JComponent c)
c
- The JComponent to uninstall listeners for.public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
- The JComponent to uninstall.ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()