de.grogra.icon
| Constructor and Description |
|---|
IconImpl(IconSource source,
Icon icon) |
IconImpl(IconSource source,
java.net.URL url) |
IconImpl(IconSource source,
java.net.URL url,
java.awt.Image image,
java.awt.Rectangle bounds) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getIconBounds() |
IconSource |
getIconSource() |
java.awt.Image |
getImage() |
java.awt.Image |
getImage(int w,
int h) |
java.net.URL |
getImageSource() |
boolean |
isMutable() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state) |
void |
prepareIcon() |
void |
setTolerance(int tolerance) |
public IconImpl(IconSource source, Icon icon)
public IconImpl(IconSource source, java.net.URL url)
public IconImpl(IconSource source, java.net.URL url, java.awt.Image image, java.awt.Rectangle bounds)
public java.awt.Rectangle getIconBounds()
getIconBounds in interface Iconpublic IconSource getIconSource()
getIconSource in interface Iconpublic java.net.URL getImageSource()
getImageSource in interface Iconpublic void paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state)
public void prepareIcon()
prepareIcon in interface Iconpublic void setTolerance(int tolerance)