public class ImageLabel extends Box
DEFAULT_STYLE, style
Constructor and Description |
---|
ImageLabel() |
ImageLabel(Style style) |
ImageLabel(Style style,
Image image) |
Modifier and Type | Method and Description |
---|---|
Image |
getImage() |
String |
getToolTip(int x,
int y)
Returns the tooltip (balloon help) of this gadget if any.
|
protected void |
layoutContent(int constrainedWidth,
int constrainedHeight,
boolean recursive) |
protected void |
paintContent(Graphics g) |
void |
setImage(Image image) |
void |
setToolTip(String toolTip) |
drawBorder, drawBox, drawEmptyContent, drawEmptyTextContent, getContentSizeConstraints, getEmptyContentSize, getEmptyContentSize, getMarginBottom, getMarginTop, getStyle, hasDynamicVerticalMargins, layout, paint, setStyle
focusGained, focusLost, gadgetToPanel, gadgetToRoot, getAncestors, getBounds, getBounds, getCursor, getEventDispatcher, getFontMetrics, getGadgetPanel, getGraphics, getLocation, getLocation, getNonBreakableVerticalRanges, getRoot, getSize, getSize, getToolkit, grabsMouseButton, handleAppEvent, handleKeyEvent, handleMouseEvent, hasFocus, isAppEventHandler, layout, makeRectangleVisible, makeRectangleVisible, panelToGadget, print, refresh, relayout, relayout, repaint, repaint, requestFocus
public ImageLabel()
public ImageLabel(Style style)
public void setImage(Image image)
public Image getImage()
public void setToolTip(String toolTip)
public String getToolTip(int x, int y)
Gadget
null
otherwise.
The default implementation returns null
(no tooltip).
getToolTip
in class Gadget
x
- the X-coordinate of the mouse relatively to this gadget
(in case the tooltip depends on the mouse position)y
- the Y-coordinate of the mouse relatively to this gadgetprotected void layoutContent(int constrainedWidth, int constrainedHeight, boolean recursive)
layoutContent
in class Box
protected void paintContent(Graphics g)
paintContent
in class Box