public class BaseGradient
extends org.richfaces.resource.AbstractJava2DUserResource
implements org.richfaces.resource.StateHolderResource
| Modifier and Type | Field and Description |
|---|---|
protected GradientType |
gradientType |
protected Integer |
headerBackgroundColor |
protected Integer |
headerGradientColor |
| Constructor and Description |
|---|
BaseGradient() |
BaseGradient(boolean horizontal) |
BaseGradient(int width,
int height) |
BaseGradient(int width,
int height,
boolean horizontal) |
BaseGradient(int width,
int height,
int gradientHeight) |
BaseGradient(int width,
int height,
int gradientHeight,
boolean horizontal) |
BaseGradient(int width,
int height,
int gradientHeight,
String baseColor,
String gradientColor) |
BaseGradient(int width,
int height,
int gradientHeight,
String baseColor,
String gradientColor,
boolean horizontal) |
BaseGradient(int width,
int height,
String baseColor,
String gradientColor) |
BaseGradient(int width,
int height,
String baseColor,
String gradientColor,
boolean horizontal) |
BaseGradient(String baseColor,
String gradientColor) |
BaseGradient(String baseColor,
String gradientColor,
boolean horizontal) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawGradient(Graphics2D g2d,
Shape shape,
GradientType.BiColor colors,
int height) |
protected String |
getBaseColor() |
Dimension |
getDimension() |
protected String |
getGradientColor() |
protected Integer |
getGradientHeight() |
protected Integer |
getHeight() |
protected Integer |
getSafeGradientHeight() |
protected Integer |
getSafeHeight() |
protected Integer |
getSafeWidth() |
protected Integer |
getWidth() |
void |
initialize() |
protected void |
initializeProperties(javax.faces.context.FacesContext context,
org.richfaces.skin.Skin skin) |
protected boolean |
isHorizontal() |
boolean |
isTransient() |
void |
paint(Graphics2D graphics2d) |
protected void |
paintGradient(Graphics2D g2d,
Dimension dim) |
protected Integer |
readIntegerParameter(DataInput dataInput) |
protected Integer |
readIntegerParameterAsShort(DataInput dataInput) |
void |
readState(javax.faces.context.FacesContext context,
DataInput dataInput) |
void |
setBaseColorParam(String paramName) |
void |
setGradientColorParam(String paramName) |
void |
setGradientHeight(Integer gradientHeight) |
void |
setGradientType(GradientType gradientType) |
void |
setHeight(Integer height) |
void |
setHorizontal(boolean horizontal) |
void |
setWidth(Integer width) |
protected void |
writeIntegerParameter(DataOutput dataOutput,
Integer parameter) |
protected void |
writeIntegerParameterAsShort(DataOutput dataOutput,
Integer parameter) |
void |
writeState(javax.faces.context.FacesContext context,
DataOutput dataOutput) |
protected Integer headerBackgroundColor
protected Integer headerGradientColor
protected GradientType gradientType
public BaseGradient(int width,
int height,
int gradientHeight,
String baseColor,
String gradientColor,
boolean horizontal)
public BaseGradient(int width,
int height,
int gradientHeight)
public BaseGradient(int width,
int height,
int gradientHeight,
String baseColor,
String gradientColor)
public BaseGradient(int width,
int height)
public BaseGradient()
public BaseGradient(int width,
int height,
int gradientHeight,
boolean horizontal)
public BaseGradient(int width,
int height,
boolean horizontal)
public BaseGradient(int width,
int height,
String baseColor,
String gradientColor,
boolean horizontal)
public BaseGradient(boolean horizontal)
protected void initializeProperties(javax.faces.context.FacesContext context,
org.richfaces.skin.Skin skin)
public final void initialize()
public final void setWidth(Integer width)
public final void setHeight(Integer height)
public final void setGradientHeight(Integer gradientHeight)
public final void setBaseColorParam(String paramName)
public final void setGradientColorParam(String paramName)
public final void setHorizontal(boolean horizontal)
public final void setGradientType(GradientType gradientType)
public Dimension getDimension()
getDimension in interface org.richfaces.resource.Java2DUserResourcegetDimension in class org.richfaces.resource.AbstractJava2DUserResourceprotected Integer getGradientHeight()
protected Integer getHeight()
protected Integer getWidth()
protected Integer getSafeGradientHeight()
protected Integer getSafeHeight()
protected Integer getSafeWidth()
protected String getBaseColor()
protected String getGradientColor()
protected boolean isHorizontal()
protected void drawGradient(Graphics2D g2d, Shape shape, GradientType.BiColor colors, int height)
public void paint(Graphics2D graphics2d)
paint in interface org.richfaces.resource.Java2DUserResourceprotected void paintGradient(Graphics2D g2d, Dimension dim)
g2d - dim - public void readState(javax.faces.context.FacesContext context,
DataInput dataInput)
throws IOException
readState in interface org.richfaces.resource.StateHolderResourceIOExceptionpublic void writeState(javax.faces.context.FacesContext context,
DataOutput dataOutput)
throws IOException
writeState in interface org.richfaces.resource.StateHolderResourceIOExceptionprotected void writeIntegerParameterAsShort(DataOutput dataOutput, Integer parameter) throws IOException
IOExceptionprotected Integer readIntegerParameterAsShort(DataInput dataInput) throws IOException
IOExceptionprotected void writeIntegerParameter(DataOutput dataOutput, Integer parameter) throws IOException
IOExceptionprotected Integer readIntegerParameter(DataInput dataInput) throws IOException
IOExceptionpublic boolean isTransient()
isTransient in interface org.richfaces.resource.StateHolderResourceCopyright © 2012 JBoss by Red Hat. All Rights Reserved.