dsto.dfc.swing.icons
Class BorderedIcon
java.lang.Object
dsto.dfc.swing.icons.BorderedIcon
- All Implemented Interfaces:
- Icon
public class BorderedIcon
- extends Object
- implements Icon
An icon that displays a border around an encapsulated icon.
- Version:
- $Revision$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BorderedIcon
public BorderedIcon(Icon icon,
Border border)
getIcon
public Icon getIcon()
setIcon
public void setIcon(Icon icon)
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
setBorder
public void setBorder(Border newBorder)
Copyright © 2008 Commonwealth of Australia