de.grogra.imp.objects
public abstract class ImageAdapter extends ShareableBase implements IconSource, Icon
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageAdapter.Type |
| Modifier and Type | Field and Description |
|---|---|
static ImageAdapter.Type |
$TYPE |
| Modifier | Constructor and Description |
|---|---|
protected |
ImageAdapter() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.awt.image.BufferedImage |
getBufferedImage() |
Icon |
getIcon(java.awt.Dimension size,
int state) |
java.awt.Rectangle |
getIconBounds() |
IconSource |
getIconSource() |
java.awt.Image |
getImage() |
java.awt.Image |
getImage(int w,
int h) |
java.net.URL |
getImageSource() |
abstract java.awt.image.BufferedImage |
getNativeImage() |
java.awt.Dimension |
getPreferredIconSize(boolean small) |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state) |
void |
prepareIcon() |
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManageableTypepublic static final ImageAdapter.Type $TYPE
public abstract java.awt.image.BufferedImage getBufferedImage()
public Icon getIcon(java.awt.Dimension size, int state)
getIcon in interface IconSourcepublic java.awt.Rectangle getIconBounds()
getIconBounds in interface Iconpublic IconSource getIconSource()
getIconSource in interface Iconpublic java.net.URL getImageSource()
getImageSource in interface Iconpublic abstract java.awt.image.BufferedImage getNativeImage()
public java.awt.Dimension getPreferredIconSize(boolean small)
getPreferredIconSize in interface IconSourcepublic 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 Icon