org.springframework.richclient.image
Class InsetsIcon

java.lang.Object
  extended by org.springframework.richclient.image.InsetsIcon
All Implemented Interfaces:
Icon

public class InsetsIcon
extends Object
implements Icon

Code taken from http://www.jroller.com/santhosh/entry/beautify_swing_applications_toolbar_with

Author:
Santhosh Kumar

Constructor Summary
InsetsIcon(Icon icon)
           
InsetsIcon(Icon icon, Insets insets)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 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

InsetsIcon

public InsetsIcon(Icon icon)

InsetsIcon

public InsetsIcon(Icon icon,
                  Insets insets)
Method Detail

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.