org.richfaces.renderkit.html
Class Base2WayGradient

java.lang.Object
  extended by javax.faces.application.Resource
      extended by org.richfaces.resource.AbstractCacheableResource
          extended by org.richfaces.resource.AbstractBaseResource
              extended by org.ajax4jsf.resource.Java2Dresource
                  extended by org.richfaces.renderkit.html.BaseGradient
                      extended by org.richfaces.renderkit.html.Base2WayGradient
All Implemented Interfaces:
javax.faces.component.StateHolder, org.richfaces.resource.VersionedResource

public class Base2WayGradient
extends BaseGradient

Author:
asmirnov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ajax4jsf.resource.Java2Dresource
Java2Dresource.ImageType
 
Field Summary
 
Fields inherited from class org.richfaces.renderkit.html.BaseGradient
gradientType, headerBackgroundColor, headerGradientColor
 
Fields inherited from class org.richfaces.resource.AbstractBaseResource
URL_PROTOCOL
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
Base2WayGradient(boolean horizontal)
           
Base2WayGradient(int width, int height)
           
Base2WayGradient(int width, int height, boolean horizontal)
           
Base2WayGradient(int width, int height, int gradientHeight)
           
Base2WayGradient(int width, int height, int gradientHeight, boolean horizontal)
           
Base2WayGradient(int width, int height, int gradientHeight, java.lang.String baseColor, java.lang.String gradientColor)
           
Base2WayGradient(int width, int height, int gradientHeight, java.lang.String baseColor, java.lang.String gradientColor, boolean horizontal)
           
Base2WayGradient(int width, int height, java.lang.String baseColor, java.lang.String gradientColor)
           
Base2WayGradient(int width, int height, java.lang.String baseColor, java.lang.String gradientColor, boolean horizontal)
           
Base2WayGradient(java.lang.String baseColor, java.lang.String gradientColor)
           
Base2WayGradient(java.lang.String baseColor, java.lang.String gradientColor, boolean horizontal)
           
 
Method Summary
protected  void drawBackGradient(java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D rectangle, GradientType.BiColor colors, int height)
           
protected  void paintGradient(java.awt.Graphics2D g2d, java.awt.Dimension dim)
           
 
Methods inherited from class org.richfaces.renderkit.html.BaseGradient
drawGradient, getBaseColor, getDimension, getGradientColor, getGradientHeight, getHeight, getWidth, isCacheable, isHorizontal, paint, readState, writeState
 
Methods inherited from class org.ajax4jsf.resource.Java2Dresource
decodeColor, encodeSkinParameter, getColorValueParameter, getContentType, getHeight, getInputStream, getValueParameter, isTransient, populateParameters, restoreState, saveState, setTransient
 
Methods inherited from class org.richfaces.resource.AbstractBaseResource
getClassLoader, getContentLength, getEntityTag, getExpires, getLastModified, getRequestPath, getResponseHeaders, getTimeToLive, getURL, getVersion, isCacheable, setCacheable, setVersion
 
Methods inherited from class org.richfaces.resource.AbstractCacheableResource
isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, 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
 

Constructor Detail

Base2WayGradient

public Base2WayGradient(boolean horizontal)
Parameters:
horizontal -

Base2WayGradient

public Base2WayGradient(int width,
                        int height)
Parameters:
width -
height -

Base2WayGradient

public Base2WayGradient(java.lang.String baseColor,
                        java.lang.String gradientColor)
Parameters:
baseColor -
gradientColor -

Base2WayGradient

public Base2WayGradient(int width,
                        int height,
                        boolean horizontal)
Parameters:
width -
height -
horizontal -

Base2WayGradient

public Base2WayGradient(int width,
                        int height,
                        int gradientHeight)
Parameters:
width -
height -
gradientHeight -

Base2WayGradient

public Base2WayGradient(java.lang.String baseColor,
                        java.lang.String gradientColor,
                        boolean horizontal)
Parameters:
baseColor -
gradientColor -
horizontal -

Base2WayGradient

public Base2WayGradient(int width,
                        int height,
                        int gradientHeight,
                        boolean horizontal)
Parameters:
width -
height -
gradientHeight -
horizontal -

Base2WayGradient

public Base2WayGradient(int width,
                        int height,
                        java.lang.String baseColor,
                        java.lang.String gradientColor)
Parameters:
width -
height -
baseColor -
gradientColor -

Base2WayGradient

public Base2WayGradient(int width,
                        int height,
                        int gradientHeight,
                        java.lang.String baseColor,
                        java.lang.String gradientColor)
Parameters:
width -
height -
gradientHeight -
baseColor -
gradientColor -

Base2WayGradient

public Base2WayGradient(int width,
                        int height,
                        java.lang.String baseColor,
                        java.lang.String gradientColor,
                        boolean horizontal)
Parameters:
width -
height -
baseColor -
gradientColor -
horizontal -

Base2WayGradient

public Base2WayGradient(int width,
                        int height,
                        int gradientHeight,
                        java.lang.String baseColor,
                        java.lang.String gradientColor,
                        boolean horizontal)
Parameters:
width -
height -
gradientHeight -
baseColor -
gradientColor -
horizontal -
Method Detail

drawBackGradient

protected void drawBackGradient(java.awt.Graphics2D g2d,
                                java.awt.geom.Rectangle2D rectangle,
                                GradientType.BiColor colors,
                                int height)

paintGradient

protected void paintGradient(java.awt.Graphics2D g2d,
                             java.awt.Dimension dim)
Overrides:
paintGradient in class BaseGradient


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