public class IlvCompositeIcon extends Object implements Icon, SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
IlvCompositeIcon(Icon icon1,
Icon icon2)
Create a CompositeIcon from the specified Icons,
using the default relative position (icon1 above icon2)
and orientations (centered horizontally and vertically)
|
IlvCompositeIcon(Icon icon1,
Icon icon2,
int position)
Create a CompositeIcon from the specified Icons,
using the specified relative position
and default orientations (centered horizontally and vertically)
|
IlvCompositeIcon(Icon icon1,
Icon icon2,
int position,
int horizontalOrientation,
int verticalOrientation)
Create a CompositeIcon from the specified Icons,
using the specified relative position
and orientations
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Returns the icon's height.
|
int |
getIconWidth()
Returns the icon's width.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location.
|
public IlvCompositeIcon(Icon icon1, Icon icon2)
public IlvCompositeIcon(Icon icon1, Icon icon2, int position)
public void paintIcon(Component c, Graphics g, int x, int y)
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.