org.apache.myfaces.custom.graphicimagedynamic.util
Class SimpleImageContext

java.lang.Object
  extended by org.apache.myfaces.custom.graphicimagedynamic.util.SimpleImageContext
All Implemented Interfaces:
ResourceContext, ImageContext

public class SimpleImageContext
extends java.lang.Object
implements ImageContext


Constructor Summary
SimpleImageContext(java.util.Map params, java.lang.Integer width, java.lang.Integer height)
           
 
Method Summary
 java.lang.Integer getHeight()
          Returns the desired height of the image
 java.util.Map getParamters()
          Returns a map with the values of the used parameters
 java.lang.Integer getWidth()
          Returns the desired width of the image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleImageContext

public SimpleImageContext(java.util.Map params,
                          java.lang.Integer width,
                          java.lang.Integer height)
Method Detail

getParamters

public java.util.Map getParamters()
Description copied from interface: ResourceContext
Returns a map with the values of the used parameters

Specified by:
getParamters in interface ResourceContext
Returns:
not null, Map contains instances of String for keys and values

getWidth

public java.lang.Integer getWidth()
Description copied from interface: ImageContext
Returns the desired width of the image

Specified by:
getWidth in interface ImageContext
Returns:
null if no width is defined

getHeight

public java.lang.Integer getHeight()
Description copied from interface: ImageContext
Returns the desired height of the image

Specified by:
getHeight in interface ImageContext
Returns:
null if no height is defined


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.