org.ajax4jsf.resource
Class Java2Dresource
java.lang.Object
javax.faces.application.Resource
org.richfaces.resource.AbstractCacheableResource
org.richfaces.resource.AbstractBaseResource
org.ajax4jsf.resource.Java2Dresource
- All Implemented Interfaces:
- javax.faces.component.StateHolder, org.richfaces.resource.VersionedResource
- Direct Known Subclasses:
- BaseGradient, CustomizeableGradient, TestResource2
public abstract class Java2Dresource
- extends AbstractBaseResource
- implements javax.faces.component.StateHolder
- Version:
- $Revision: 1.1.2.3 $ $Date: 2007/02/01 15:31:57 $
- Author:
- shura (latest modification by $Author: alexsmirnov $)
| Fields inherited from class javax.faces.application.Resource |
COMPONENT_RESOURCE_KEY |
|
Method Summary |
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 |
java.io.InputStream |
getInputStream()
|
boolean |
isTransient()
|
protected void |
paint(java.awt.Graphics2D graphics2D,
java.awt.Dimension dimension)
Template method for create image as Applet-like paint. |
protected void |
readState(javax.faces.context.FacesContext context,
NumericDataInputStream stream)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setTransient(boolean newTransientValue)
|
protected void |
writeState(javax.faces.context.FacesContext context,
NumericDataOutputStream stream)
|
| Methods inherited from class org.richfaces.resource.AbstractBaseResource |
getContentLength, getEntityTag, getExpires, getLastModified, getRequestPath, getResponseHeaders, getTimeToLive, getURL, getVersion, isCacheable, setCacheable, setVersion |
| 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 |
Java2Dresource
public Java2Dresource(Java2Dresource.ImageType imageType)
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
- Parameters:
facesContext -
- 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()
- Specified by:
getInputStream in class AbstractBaseResource
getContentType
public java.lang.String getContentType()
- Overrides:
getContentType in class javax.faces.application.Resource
writeState
protected void writeState(javax.faces.context.FacesContext context,
NumericDataOutputStream stream)
readState
protected void readState(javax.faces.context.FacesContext context,
NumericDataInputStream stream)
isTransient
public boolean isTransient()
- Specified by:
isTransient in interface javax.faces.component.StateHolder
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState in interface javax.faces.component.StateHolder
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState in interface javax.faces.component.StateHolder
setTransient
public void setTransient(boolean newTransientValue)
- Specified by:
setTransient in interface javax.faces.component.StateHolder
Copyright © 2009. All Rights Reserved.