de.grogra.icon
Class IconImpl
java.lang.Object
de.grogra.icon.IconImpl
- All Implemented Interfaces:
- Icon
public class IconImpl
- extends java.lang.Object
- implements Icon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconImpl
public IconImpl(IconSource source,
Icon icon)
IconImpl
public IconImpl(IconSource source,
java.net.URL url)
IconImpl
public IconImpl(IconSource source,
java.net.URL url,
java.awt.Image image,
java.awt.Rectangle bounds)
getIconBounds
public java.awt.Rectangle getIconBounds()
- Specified by:
getIconBounds
in interface Icon
getIconSource
public IconSource getIconSource()
- Specified by:
getIconSource
in interface Icon
getImage
public java.awt.Image getImage()
- Specified by:
getImage
in interface Icon
getImage
public java.awt.Image getImage(int w,
int h)
- Specified by:
getImage
in interface Icon
getImageSource
public java.net.URL getImageSource()
- Specified by:
getImageSource
in interface Icon
isMutable
public boolean isMutable()
- Specified by:
isMutable
in interface Icon
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state)
- Specified by:
paintIcon
in interface Icon
prepareIcon
public void prepareIcon()
- Specified by:
prepareIcon
in interface Icon
setTolerance
public void setTolerance(int tolerance)