|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ehsbe.commons.gui.util.CombinedIcon
public class CombinedIcon
Combines two icons into one icon.
Constructor Summary | |
---|---|
CombinedIcon(Icon firstIcon,
Icon secondIcon)
Icon constructor. |
Method Summary | |
---|---|
Icon |
getFirstIcon()
Get the first icon drawn by this Icon. |
int |
getGap()
Get the gap between two icons. |
int |
getIconHeight()
|
int |
getIconWidth()
|
Icon |
getSecondIcon()
Get the second icon drawn by this Icon. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinedIcon(Icon firstIcon, Icon secondIcon)
firstIcon
- icon to draw first.secondIcon
- second icon to draw.Method Detail |
---|
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public Icon getFirstIcon()
null
if not set, the icon otherwise.public Icon getSecondIcon()
null
if not set, the icon otherwise.public int getGap()
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |