public class IlvJComponentIcon extends Object implements Icon, Serializable
Icon that draws a swing component.
IlvJComponentIcon can be used by the
IlvDefaultDataAnnotation class to draw a JComponent
next to the graphical representation of a data point.
| Constructor and Description |
|---|
IlvJComponentIcon(JComponent component)
Initializes a new
IlvJComponentIcon with the specified component. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight()
Returns the height of the icon.
|
int |
getIconWidth()
Returns the width of the icon.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draws the icon.
|
public IlvJComponentIcon(JComponent component)
IlvJComponentIcon with the specified component.public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface Icon© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.