com.jidesoft.tooltip
Class BalloonTipUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ToolTipUI
com.jidesoft.tooltip.BalloonTipUI
public class BalloonTipUI
- extends ToolTipUI
The UI for BalloonTip.
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_balloonTip
protected BalloonTip _balloonTip
BalloonTipUI
public BalloonTipUI(BalloonTip balloonTip)
- Creates a new instance of BalloonTipUI
- Parameters:
balloonTip
- the balloon tip.
getBalloonSize
public Dimension getBalloonSize()
getHotSpot
public Point getHotSpot()
getBalloonPreferredSize
public Dimension getBalloonPreferredSize()
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in class ComponentUI
setContent
protected void setContent(Component content)
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Get the preferred size of BalloonTip, used by BalloonPopup to determine the initial size of the popup.
- Overrides:
getPreferredSize
in class ComponentUI
- Returns:
- The preferredSize of the BalloonTip.