org.ajax4jsf.resource
Class AnimationResource
java.lang.Object
javax.faces.application.Resource
org.richfaces.resource.AbstractBaseResource
org.richfaces.resource.AbstractCacheableResource
org.ajax4jsf.resource.Java2Dresource
org.ajax4jsf.resource.AnimationResource
- All Implemented Interfaces:
- org.richfaces.resource.CacheableResource, org.richfaces.resource.StateHolderResource
public abstract class AnimationResource
- extends Java2Dresource
Fields inherited from class javax.faces.application.Resource |
COMPONENT_RESOURCE_KEY |
Methods inherited from class org.ajax4jsf.resource.Java2Dresource |
decodeColor, encodeSkinParameter, getColorValueParameter, getContentType, getDimension, getHeight, getImageType, getValueParameter, isTransient, paint, readState, writeState |
Methods inherited from class org.richfaces.resource.AbstractCacheableResource |
addCacheControlResponseHeaders, getEntityTag, getExpires, getTimeToLive, isCacheable, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdate |
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 |
AnimationResource
public AnimationResource()
getFrameSize
protected abstract java.awt.Dimension getFrameSize()
getNumberOfFrames
protected abstract int getNumberOfFrames()
getRepeat
protected int getRepeat()
getFrameDelays
protected int[] getFrameDelays()
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Overrides:
getInputStream
in class Java2Dresource
- Throws:
java.io.IOException
paint
protected abstract void paint(java.awt.Graphics2D graphics2D,
int frameIndex)
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.