com.vinculumtech.carrierwave.source
Class DelegatingImageSource

java.lang.Object
  extended bycom.vinculumtech.carrierwave.source.AbstractImageSource
      extended bycom.vinculumtech.carrierwave.source.DelegatingImageSource
All Implemented Interfaces:
ImageSource

public class DelegatingImageSource
extends AbstractImageSource

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/carrierwave/source/DelegatingImageSource.java#5 $

Field Summary
static java.lang.String DEFAULT_KEY
           
 
Constructor Summary
protected DelegatingImageSource()
           
  DelegatingImageSource(UnaryFunction keyFunction, ImageSource childImageSource)
           
 
Method Summary
protected  java.lang.Object createKey(Icon icon)
           
protected  java.lang.Object createKey(Image image)
           
protected  ImageGraph createNewRespectiveImageGraph()
          Should be overriden to return specialized versions of RespectiveImageGraph.
protected  java.lang.Object findKey(Icon icon)
           
 ImageSource getChildImageSource()
           
 ImageGraph getDefaultImageGraph()
           
 Image getImage(Icon icon)
           
protected  Image getImageFromChildImageSource(Icon icon)
           
protected  ImageGraph getImageGraph(java.lang.Object key)
           
 java.util.Map getImageGraphs()
           
 UnaryFunction getKeyFunction()
           
protected  void putImageGraph(java.lang.Object key, ImageGraph imageGraph)
           
protected  void removeImageGraph(java.lang.Object key)
           
 void setChildImageSource(ImageSource childImageSource)
           
 void setDefaultImageGraph(ImageGraph defaultImageGraph)
           
 void setKeyFunction(UnaryFunction keyFunction)
           
 
Methods inherited from class com.vinculumtech.carrierwave.source.AbstractImageSource
getExceptionPolicy, handleException, setExceptionPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY

public static final java.lang.String DEFAULT_KEY
See Also:
Constant Field Values
Constructor Detail

DelegatingImageSource

public DelegatingImageSource(UnaryFunction keyFunction,
                             ImageSource childImageSource)

DelegatingImageSource

protected DelegatingImageSource()
Method Detail

getKeyFunction

public UnaryFunction getKeyFunction()

setKeyFunction

public void setKeyFunction(UnaryFunction keyFunction)

getChildImageSource

public ImageSource getChildImageSource()

setChildImageSource

public void setChildImageSource(ImageSource childImageSource)

getImageFromChildImageSource

protected Image getImageFromChildImageSource(Icon icon)

getImageGraphs

public java.util.Map getImageGraphs()

getDefaultImageGraph

public ImageGraph getDefaultImageGraph()

setDefaultImageGraph

public void setDefaultImageGraph(ImageGraph defaultImageGraph)

getImageGraph

protected ImageGraph getImageGraph(java.lang.Object key)

putImageGraph

protected void putImageGraph(java.lang.Object key,
                             ImageGraph imageGraph)

removeImageGraph

protected void removeImageGraph(java.lang.Object key)

createNewRespectiveImageGraph

protected ImageGraph createNewRespectiveImageGraph()
Should be overriden to return specialized versions of RespectiveImageGraph.


getImage

public Image getImage(Icon icon)

createKey

protected java.lang.Object createKey(Icon icon)

createKey

protected java.lang.Object createKey(Image image)

findKey

protected java.lang.Object findKey(Icon icon)


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.