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 Icon
public int getIconWidth()
getIconWidth
in interface Icon
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.