de.grogra.imp.objects
Class ImageAdapter
java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp.objects.ImageAdapter
- All Implemented Interfaces:
- Icon, IconSource, Manageable, Shareable
- Direct Known Subclasses:
- FixedImageAdapter, SyntheticTexture
public abstract class ImageAdapter
- extends ShareableBase
- implements IconSource, Icon
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$TYPE
public static final ImageAdapter.Type $TYPE
ImageAdapter
protected ImageAdapter()
getBufferedImage
public abstract java.awt.image.BufferedImage getBufferedImage()
getIcon
public Icon getIcon(java.awt.Dimension size,
int state)
- Specified by:
getIcon
in interface IconSource
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
getNativeImage
public abstract java.awt.image.BufferedImage getNativeImage()
getPreferredIconSize
public java.awt.Dimension getPreferredIconSize(boolean small)
- Specified by:
getPreferredIconSize
in interface IconSource
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