com.levigo.util.swing
Class BorderIcon
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BorderIcon
public BorderIcon(Icon icon,
Border border)
- Create a new BorderIcon consisting of the given icon and the given border.
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.