javax.swing.plaf.basic

Class BasicToolTipUI

public class BasicToolTipUI extends ToolTipUI

This is the Basic Look and Feel UI class for JToolTip.
Constructor Summary
BasicToolTipUI()
Creates a new BasicToolTipUI object.
Method Summary
static ComponentUIcreateUI(JComponent c)
This method creates a new BasicToolTip UI for the given JComponent.
DimensiongetMaximumSize(JComponent c)
This method returns the msximum size of the given JComponent.
DimensiongetMinimumSize(JComponent c)
This method returns the minimum size of the given JComponent.
DimensiongetPreferredSize(JComponent c)
This method returns the preferred size of the given JComponent.
protected voidinstallDefaults(JComponent c)
This method installs the defaults for the given JComponent.
protected voidinstallListeners(JComponent c)
This method installs the listeners for the given JComponent.
voidinstallUI(JComponent c)
This method installs the UI for the given JComponent.
voidpaint(Graphics g, JComponent c)
This method paints the given JComponent with the given Graphics object.
protected voiduninstallDefaults(JComponent c)
This method uninstalls the defaults for the given JComponent.
protected voiduninstallListeners(JComponent c)
This method uninstalls listeners for the given JComponent.
voiduninstallUI(JComponent c)
This method uninstalls the UI for the given JComponent.

Constructor Detail

BasicToolTipUI

public BasicToolTipUI()
Creates a new BasicToolTipUI object.

Method Detail

createUI

public static ComponentUI createUI(JComponent c)
This method creates a new BasicToolTip UI for the given JComponent.

Parameters: c The JComponent to create a UI for.

Returns: A BasicToolTipUI that can be used by the given JComponent.

getMaximumSize

public Dimension getMaximumSize(JComponent c)
This method returns the msximum size of the given JComponent.

Parameters: c The JComponent to find a maximum size for.

Returns: The maximum size.

getMinimumSize

public Dimension getMinimumSize(JComponent c)
This method returns the minimum size of the given JComponent.

Parameters: c The JComponent to find a minimum size for.

Returns: The minimum size.

getPreferredSize

public Dimension getPreferredSize(JComponent c)
This method returns the preferred size of the given JComponent.

Parameters: c The JComponent to find a preferred size for.

Returns: The preferred size.

installDefaults

protected void installDefaults(JComponent c)
This method installs the defaults for the given JComponent.

Parameters: c The JComponent to install defaults for.

installListeners

protected void installListeners(JComponent c)
This method installs the listeners for the given JComponent.

Parameters: c The JComponent to install listeners for.

installUI

public void installUI(JComponent c)
This method installs the UI for the given JComponent.

Parameters: c The JComponent to install the UI for.

paint

public void paint(Graphics g, JComponent c)
This method paints the given JComponent with the given Graphics object.

Parameters: g The Graphics object to paint with. c The JComponent to paint.

uninstallDefaults

protected void uninstallDefaults(JComponent c)
This method uninstalls the defaults for the given JComponent.

Parameters: c The JComponent to uninstall defaults for.

uninstallListeners

protected void uninstallListeners(JComponent c)
This method uninstalls listeners for the given JComponent.

Parameters: c The JComponent to uninstall listeners for.

uninstallUI

public void uninstallUI(JComponent c)
This method uninstalls the UI for the given JComponent.

Parameters: c The JComponent to uninstall.