public class ImageToolTip.ImageToolTipUI extends MetalToolTipUI
padSpaceBetweenStrings| Constructor and Description |
|---|
ImageToolTipUI(Image image)
Creates a new ImageToolTipUI object.
|
| Modifier and Type | Method and Description |
|---|---|
Dimension |
getPreferredSize(JComponent c)
This method is overriden from the MetalToolTipUI to return the appropiate preferred size to size the ToolTip
to show both the text and image.
|
void |
paint(Graphics g,
JComponent c)
This method is overriden from the MetalToolTipUI to draw the given image and text.
|
createUI, getAcceleratorString, installUI, isAcceleratorHidden, uninstallUIgetMaximumSize, getMinimumSize, installDefaults, installListeners, uninstallDefaults, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, updatepublic ImageToolTipUI(Image image)
image - DOCUMENT ME!public void paint(Graphics g, JComponent c)
paint in class MetalToolTipUIg - DOCUMENT ME!c - DOCUMENT ME!public Dimension getPreferredSize(JComponent c)
getPreferredSize in class MetalToolTipUIc - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.