dsto.dfc.swing.icons
Class BorderedIcon

java.lang.Object
  extended by 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$

Constructor Summary
BorderedIcon(Icon icon, Border border)
           
 
Method Summary
 Icon getIcon()
           
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setBorder(Border newBorder)
           
 void setIcon(Icon icon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderedIcon

public BorderedIcon(Icon icon,
                    Border border)
Method Detail

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