com.imagero.swing.icons
Class SaveBoundsIcon
java.lang.Object
com.imagero.swing.icons.SaveBoundsIcon
- All Implemented Interfaces:
- javax.swing.Icon
- public class SaveBoundsIcon
- extends java.lang.Object
- implements javax.swing.Icon
SaveBoundsIcon.
This icons saves its bounds during painting.
SaveBoundsIcon gives us easy way to get bounds of icons in component.
|
Field Summary |
protected javax.swing.Icon |
icon
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
icon
protected javax.swing.Icon icon
SaveBoundsIcon
public SaveBoundsIcon(javax.swing.Icon icon)
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon
getBounds
public java.awt.Rectangle getBounds()
getIcon
public javax.swing.Icon getIcon()
setIcon
public void setIcon(javax.swing.Icon icon)