Draw2D v2.0

org.eclipse.draw2d.util
Class ImageCache

java.lang.Object
  |
  +--org.eclipse.draw2d.util.ImageCache

public class ImageCache
extends Object


Constructor Summary
ImageCache()
           
 
Method Summary
static boolean checkin(Image img)
           
static Image checkinCheckout(Image i, Dimension d, Object o)
           
static Image checkout(Dimension d, Object o)
          Returns an image that is at least as big as the desired size.
static void printContents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCache

public ImageCache()
Method Detail

checkin

public static boolean checkin(Image img)

checkinCheckout

public static Image checkinCheckout(Image i,
                                    Dimension d,
                                    Object o)

checkout

public static Image checkout(Dimension d,
                             Object o)
Returns an image that is at least as big as the desired size. NOTE: (1) The client should not dispose the image that is checked out (2) However, the client should check the image back in when done (3) The given dimension will not be modified by this method (4) The client should not use the returned image's bounds for anything (since the returned image could be bigger than requested) (5) If the size of the image is too big, and the image cannot be created, this method will return null
Parameters:
d - The desired size of the image to be checked out

printContents

public static void printContents()

Draw2D v2.0