com.levigo.util.swing
Class BorderIcon

java.lang.Object
  extended by com.levigo.util.swing.BorderIcon
All Implemented Interfaces:
Icon

public class BorderIcon
extends Object
implements Icon

An Icon that is a composite of an Icon and a Border.


Constructor Summary
BorderIcon(Icon icon, Border border)
          Create a new BorderIcon consisting of the given icon and the given border.
 
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

BorderIcon

public BorderIcon(Icon icon,
                  Border border)
Create a new BorderIcon consisting of the given icon and the given border.

Method Detail

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


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.