|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.report.xls.GradientInfo
public class GradientInfo
Contains the information of Area fill effects in the file.
| Field Summary | |
|---|---|
static int |
DIAGONAL_DOWN
Diagonal down shading style. |
static int |
DIAGONAL_UP
Diagonal up shading style. |
static int |
FROM_CENTER
From center shading style. |
static int |
FROM_CORNER
From corner shading style. |
static int |
HORIZONAL
Horizontal shading style. |
static int |
STYLE1
|
static int |
STYLE2
|
static int |
STYLE3
|
static int |
STYLE4
|
static int |
VERTICAL
Vertical shading style. |
| Constructor Summary | |
|---|---|
GradientInfo()
Constructs a GradientInfo record. |
|
GradientInfo(int rgb1,
boolean isDark,
int degree,
int shadingStyle,
int variant,
GlobalWorksheet gws)
Constructs a GradientInfo record and sets its fields appropriately. |
|
GradientInfo(int rgb1,
int rgb2,
int shadingStyle,
int variant,
GlobalWorksheet gws)
Constructs a GradientInfo record and sets its fields appropriately. |
|
| Method Summary | |
|---|---|
int |
getColor1()
Gets the first color of gradient color. |
int |
getColor2()
Gets the the second color of gradient color. |
int |
getDegree()
Gets dark or light degree for the gradient color. |
int |
getShadingStyle()
Gets the shading style of gradient color. |
int |
getType()
Gets the type of gradient color, one_color or two_colors, |
int |
getVariant()
Gets the variant of gradient color. |
boolean |
isDark()
Gets whether the gradient color is dark or light. |
void |
setColor1(int color,
GlobalWorksheet gws)
Sets the first color of gradient color. |
void |
setColor2(int color,
GlobalWorksheet gws)
Sets the second color of gradient color. |
void |
setDark(boolean isDark)
Sets whether the gradient color is dark or light. |
void |
setDegree(int degree)
Sets dark or light degree for the gradient color. |
void |
setShadingStyle(int shadingStyle)
Sets the shading style of gradient color. |
void |
setVariant(int variant)
Sets the variant of gradient color. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HORIZONAL
public static final int VERTICAL
public static final int DIAGONAL_UP
public static final int DIAGONAL_DOWN
public static final int FROM_CORNER
public static final int FROM_CENTER
public static final int STYLE1
public static final int STYLE2
public static final int STYLE3
public static final int STYLE4
| Constructor Detail |
|---|
public GradientInfo()
public GradientInfo(int rgb1,
int rgb2,
int shadingStyle,
int variant,
GlobalWorksheet gws)
rgb1 - color1 in the gradient colorrgb2 - color2 in the gradient colorshadingStyle - style of shade HORIZONAL, VERTICAL, DIAGONAL_UP, DIADONAL_DOWN, FROM_CORNER or FROM_CENTERvariant - variant of the gradient color STYLE1, STYLE2, STYLE3, STYLE4
public GradientInfo(int rgb1,
boolean isDark,
int degree,
int shadingStyle,
int variant,
GlobalWorksheet gws)
rgb1 - color1 in the gradient colorisDark - whether the gradient color is dark or light, true for dark, false for lightdegree - the dark or light degree of gradient color(0-255)shadingStyle - style of shade HORIZONAL, VERTICAL, DIAGONAL_UP, DIADONAL_DOWN, FROM_CORNER or FROM_CENTERvariant - variant of the gradient color STYLE1, STYLE2, STYLE3, STYLE4| Method Detail |
|---|
public void setColor1(int color,
GlobalWorksheet gws)
color - first color of gradient colorpublic int getColor1()
public void setColor2(int color,
GlobalWorksheet gws)
color - the second color of gradient colorpublic int getColor2()
public void setShadingStyle(int shadingStyle)
shadingStyle - the shading style of gradient colorHORIZONAL,
VERTICAL,
DIAGONAL_UP,
DIAGONAL_DOWN,
FROM_CORNER,
FROM_CENTERpublic int getShadingStyle()
HORIZONAL,
VERTICAL,
DIAGONAL_UP,
DIAGONAL_DOWN,
FROM_CORNER,
FROM_CENTERpublic void setVariant(int variant)
variant - the variant of gradient colorSTYLE1,
STYLE2,
STYLE3,
STYLE4public int getVariant()
STYLE1,
STYLE2,
STYLE3,
STYLE4public int getType()
ONE_COLOR,
TWO_COLORSpublic void setDark(boolean isDark)
isDark - whether the gradient color is dark or lightpublic boolean isDark()
public void setDegree(int degree)
degree - dark or light degree of the gradient color(0-255)public int getDegree()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||