public class BaseGradient extends AbstractJava2DUserResource implements 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,
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) |
getImageType, getLastModified, getResponseHeaders
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, 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 Java2DUserResource
getDimension
in class AbstractJava2DUserResource
protected 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 Java2DUserResource
protected void paintGradient(Graphics2D g2d, Dimension dim)
g2d
- dim
- public void readState(javax.faces.context.FacesContext context, DataInput dataInput) throws IOException
readState
in interface StateHolderResource
IOException
public void writeState(javax.faces.context.FacesContext context, DataOutput dataOutput) throws IOException
writeState
in interface StateHolderResource
IOException
protected void writeIntegerParameterAsShort(DataOutput dataOutput, Integer parameter) throws IOException
IOException
protected Integer readIntegerParameterAsShort(DataInput dataInput) throws IOException
IOException
protected void writeIntegerParameter(DataOutput dataOutput, Integer parameter) throws IOException
IOException
protected Integer readIntegerParameter(DataInput dataInput) throws IOException
IOException
public boolean isTransient()
isTransient
in interface StateHolderResource
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.