de.intarsys.cwt.image
Class ImageEntry

java.lang.Object
  extended by de.intarsys.cwt.image.ImageEntry
All Implemented Interfaces:
IImage, IImageEntry, de.intarsys.tools.attribute.IAttributeSupport
Direct Known Subclasses:
ImageIOImageEntry

public abstract class ImageEntry
extends java.lang.Object
implements IImageEntry


Constructor Summary
protected ImageEntry(IImageContainer container)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.Object key)
           
 IImageContainer getContainer()
           
protected  IImage getDelegate()
           
protected abstract  IImage getErrorImage(java.lang.Exception e)
           
 int getHeight()
           
 int getWidth()
           
protected abstract  IImage loadContent()
           
 java.lang.Object removeAttribute(java.lang.Object key)
           
 java.lang.Object setAttribute(java.lang.Object key, java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.intarsys.cwt.image.IImageEntry
getIndex
 
Methods inherited from interface de.intarsys.cwt.image.IImage
drawFromGraphicsContext
 

Constructor Detail

ImageEntry

protected ImageEntry(IImageContainer container)
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.Object key)
Specified by:
getAttribute in interface de.intarsys.tools.attribute.IAttributeSupport

getContainer

public IImageContainer getContainer()
Specified by:
getContainer in interface IImageEntry

getDelegate

protected IImage getDelegate()

getErrorImage

protected abstract IImage getErrorImage(java.lang.Exception e)

getHeight

public int getHeight()
Specified by:
getHeight in interface IImage

getWidth

public int getWidth()
Specified by:
getWidth in interface IImage

loadContent

protected abstract IImage loadContent()
                               throws java.io.IOException
Throws:
java.io.IOException

removeAttribute

public java.lang.Object removeAttribute(java.lang.Object key)
Specified by:
removeAttribute in interface de.intarsys.tools.attribute.IAttributeSupport

setAttribute

public java.lang.Object setAttribute(java.lang.Object key,
                                     java.lang.Object o)
Specified by:
setAttribute in interface de.intarsys.tools.attribute.IAttributeSupport