Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ajax4jsf.resource
Class Java2Dresource

    java.lang.Object
      javax.faces.application.Resource
          org.richfaces.resource.AbstractBaseResource
              org.richfaces.resource.AbstractCacheableResource
                  org.ajax4jsf.resource.Java2Dresource

All Implemented Interfaces:
  org.richfaces.resource.CacheableResource, org.richfaces.resource.StateHolderResource

Direct Known Subclasses:
  CustomizeableGradient

    public abstract class Java2Dresource

extends AbstractCacheableResource
implements org.richfaces.resource.StateHolderResource

Version:
  $Revision: 1.1.2.3 $ $Date: 2007/02/01 15:31:57 $
Author:
  shura (latest modification by $Author: alexsmirnov $)

Field Summary

Fields inherited from class org.richfaces.resource.AbstractBaseResource
`URL_PROTOCOL`

Fields inherited from class javax.faces.application.Resource
`COMPONENT_RESOURCE_KEY`

Constructor Summary
`Java2Dresource(org.richfaces.resource.ImageType imageType)`

Method Summary
`protected java.lang.Integer` | `decodeColor(java.lang.String value)`
`protected java.lang.String` | `encodeSkinParameter(java.lang.String param)`
`protected java.lang.Integer` | `getColorValueParameter(javax.faces.context.FacesContext context, java.lang.String name, boolean useDefault)`
`java.lang.String` | `getContentType()`
`abstract java.awt.Dimension` | `getDimension()` Primary calculation of image dimensions - used when HTML code is generated to render IMG's width and height Subclasses should override this method to provide correct sizes of rendered images
`protected java.lang.Integer` | `getHeight(javax.faces.context.FacesContext context, java.lang.String heightParamName)`
`java.io.InputStream` | `getInputStream()`
`protected java.lang.String` | `getValueParameter(javax.faces.context.FacesContext context, java.lang.String name)`
`boolean` | `isTransient()`
`protected void` | `paint(java.awt.Graphics2D graphics2D, java.awt.Dimension dimension)` Template method for create image as Applet-like paint.
`void` | `readState(javax.faces.context.FacesContext context, java.io.DataInput dataInput)`
`void` | `writeState(javax.faces.context.FacesContext context, java.io.DataOutput dataOutput)`

Methods inherited from class org.richfaces.resource.AbstractCacheableResource
`addCacheControlResponseHeaders, getEntityTag, getExpires, getTimeToLive, isCacheable, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdate`

Methods inherited from class org.richfaces.resource.AbstractBaseResource
`addNoCacheResponseHeaders, getClassLoader, getContentLength, getLastModified, getRequestPath, getResponseHeaders, getURL`

Methods inherited from class javax.faces.application.Resource
`getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Java2Dresource

    public Java2Dresource(org.richfaces.resource.ImageType imageType)

Method Detail

### getDimension

    public abstract java.awt.Dimension getDimension()

  Primary calculation of image dimensions - used when HTML code is generated to render IMG's width and height Subclasses should override this method to provide correct sizes of rendered images

  Returns:
    dimensions of the image to be displayed on page

### paint

    protected void paint(java.awt.Graphics2D graphics2D,
                         java.awt.Dimension dimension)

  Template method for create image as Applet-like paint.

  Parameters:
    `graphics2D` - - graphics to paint.

### getInputStream

    public java.io.InputStream getInputStream()
                                       throws java.io.IOException

  Specified by:
    `getInputStream` in class `javax.faces.application.Resource`
  Throws:
    `java.io.IOException`

### getContentType

    public java.lang.String getContentType()

  Overrides:
    `getContentType` in class `javax.faces.application.Resource`

### getValueParameter

    protected java.lang.String getValueParameter(javax.faces.context.FacesContext context,
                                                 java.lang.String name)

### encodeSkinParameter

    protected java.lang.String encodeSkinParameter(java.lang.String param)

### getColorValueParameter

    protected java.lang.Integer getColorValueParameter(javax.faces.context.FacesContext context,
                                                       java.lang.String name,
                                                       boolean useDefault)

### getHeight

    protected java.lang.Integer getHeight(javax.faces.context.FacesContext context,
                                          java.lang.String heightParamName)

### decodeColor

    protected java.lang.Integer decodeColor(java.lang.String value)

### readState

    public void readState(javax.faces.context.FacesContext context,
                          java.io.DataInput dataInput)
                   throws java.io.IOException

  Specified by:
    `readState` in interface `org.richfaces.resource.StateHolderResource`
  Throws:
    `java.io.IOException`

### writeState

    public void writeState(javax.faces.context.FacesContext context,
                           java.io.DataOutput dataOutput)
                    throws java.io.IOException

  Specified by:
    `writeState` in interface `org.richfaces.resource.StateHolderResource`
  Throws:
    `java.io.IOException`

### isTransient

    public boolean isTransient()

  Specified by:
    `isTransient` in interface `org.richfaces.resource.StateHolderResource`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.