|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.xls.core.spreadsheet.XlsObject
com.spire.xls.core.spreadsheet.shapes.XlsShapeFill
public class XlsShapeFill
Represents XlsFill format in shape object.
| Constructor Summary | |
|---|---|
XlsShapeFill(java.lang.Object parent)
|
|
XlsShapeFill(java.lang.Object parent,
XlsShape innershape)
|
|
| Method Summary | |
|---|---|
int |
compareTo(IGradient twin)
Compares with shape XlsFill impl. |
void |
customPicture(java.awt.image.BufferedImage im,
java.lang.String name)
Sets user defined picture. |
void |
customPicture(java.lang.String path)
Sets user defined picture. |
void |
customTexture(java.awt.image.BufferedImage im,
java.lang.String name)
Sets user defined texture. |
void |
customTexture(java.lang.String path)
Sets user defined texture. |
java.awt.Color |
getBackColor()
Represents background color. |
OColor |
getBackColorObject()
Represents background color. |
ExcelColors |
getBackKnownColor()
Represents background color index. |
ShapeFillType |
getFillType()
Represents shape XlsFill type. |
java.awt.Color |
getForeColor()
Represents foreground color. |
OColor |
getForeColorObject()
Represents foreground color. |
ExcelColors |
getForeKnownColor()
Represents foreground color index. |
GradientColorType |
getGradientColorType()
Represents gradient style. |
double |
getGradientDegree()
Returns the gradient degree of the specified one-color shaded XlsFill as a floating-point value from 0.0 (dark) through 1.0 (light) |
GradientStops |
getGradientStops()
Returns collection of gradient stops that stores gradient XlsFill settings. |
GradientStyleType |
getGradientStyle()
Represents gradient shading style. |
GradientVariantsType |
getGradientVariant()
Represents current shading variant. |
GradientPatternType |
getPattern()
Represents gradient pattern |
PicStretch |
getPicStretch()
Gets or sets pictrue format option. |
PicTile |
getPicTile()
Gets or sets tile picture option. |
java.awt.image.BufferedImage |
getPicture()
Represents user defined picture or textture. |
java.lang.String |
getPictureName()
Returns user defined picture of texture name. |
GradientPresetType |
getPresetGradientType()
Represents presed gradient type. |
GradientTextureType |
getTexture()
Represents gradient texture |
boolean |
getTile()
Represents whether picture is tiled or stretched. |
double |
getTransparency()
Returns the transparency level of the specified Solid color shaded XlsFill as a floating-point value from 0.0 (opaque) through 1.0(transparent) |
double |
getTransparencyFrom()
Returns or sets the degree of transparency of the specified XlsFill as a value from 0.0 (opaque) through 1.0 (clear). |
double |
getTransparencyTo()
Returns or sets the degree of transparency of the specified XlsFill as a value from 0.0 (opaque) through 1.0 (clear). |
boolean |
getVisible()
Represents if XlsFill style visible. |
static boolean |
isDoubled(GradientStyleType gradientStyle,
GradientVariantsType variant)
Detects whether color sequence should be doubled or not. |
static boolean |
isInverted(GradientStyleType gradientStyle,
GradientVariantsType variant)
Returns true if colors should be placed in inverted order. |
void |
oneColorGradient()
Sets the specified XlsFill to a one-color gradient. |
void |
oneColorGradient(GradientStyleType style)
Sets the specified XlsFill to a one-color gradient. |
void |
oneColorGradient(GradientStyleType style,
GradientVariantsType variant)
Sets the specified XlsFill to a one-color gradient. |
void |
patterned(GradientPatternType pattern)
Sets the specified XlsFill to a pattern. |
void |
presetGradient(GradientPresetType grad)
Sets the specified XlsFill to a preset gradient. |
void |
presetGradient(GradientPresetType grad,
GradientStyleType shadStyle)
Sets the specified XlsFill to a preset gradient. |
void |
presetGradient(GradientPresetType grad,
GradientStyleType shadStyle,
GradientVariantsType shadVar)
Sets the specified XlsFill to a preset gradient. |
void |
presetTextured(GradientTextureType texture)
Sets the specified XlsFill format to a preset texture. |
void |
setBackColor(java.awt.Color value)
Represents background color. |
void |
setBackKnownColor(ExcelColors value)
Represents background color index. |
void |
setFillType(ShapeFillType value)
Represents shape XlsFill type. |
void |
setForeColor(java.awt.Color value)
Represents foreground color. |
void |
setForeKnownColor(ExcelColors value)
Represents foreground color index. |
void |
setGradientColorType(GradientColorType value)
Represents gradient style. |
void |
setGradientDegree(double value)
Returns the gradient degree of the specified one-color shaded XlsFill as a floating-point value from 0.0 (dark) through 1.0 (light) |
void |
setGradientStyle(GradientStyleType value)
Represents gradient shading style. |
void |
setGradientVariant(GradientVariantsType value)
Represents current shading variant. |
void |
setPattern(GradientPatternType value)
Represents gradient pattern |
void |
setPresetGradientType(GradientPresetType value)
Represents presed gradient type. |
void |
setTexture(GradientTextureType value)
Represents gradient texture |
void |
setTile(boolean value)
Represents whether picture is tiled or stretched. |
void |
setTransparency(double value)
Returns the transparency level of the specified Solid color shaded XlsFill as a floating-point value from 0.0 (opaque) through 1.0(transparent) |
void |
setTransparencyFrom(double value)
Returns or sets the degree of transparency of the specified XlsFill as a value from 0.0 (opaque) through 1.0 (clear). |
void |
setTransparencyTo(double value)
Returns or sets the degree of transparency of the specified XlsFill as a value from 0.0 (opaque) through 1.0 (clear). |
void |
setVisible(boolean value)
Represents if XlsFill style visible. |
void |
solid()
Sets the specified XlsFill to a uniform color. |
void |
twoColorGradient()
Sets the specified XlsFill to a two-color gradient. |
void |
twoColorGradient(GradientStyleType style)
Sets the specified XlsFill to a two-color gradient. |
void |
twoColorGradient(GradientStyleType style,
GradientVariantsType variant)
Sets the specified XlsFill to a two-color gradient. |
| Methods inherited from class com.spire.xls.core.spreadsheet.XlsObject |
|---|
dispose |
| Methods inherited from interface com.spire.xls.core.IShapeFill |
|---|
setPicStretch |
| Constructor Detail |
|---|
public XlsShapeFill(java.lang.Object parent)
public XlsShapeFill(java.lang.Object parent,
XlsShape innershape)
| Method Detail |
|---|
public GradientStops getGradientStops()
public ShapeFillType getFillType()
getFillType in interface IShapeFillpublic void setFillType(ShapeFillType value)
setFillType in interface IShapeFillpublic GradientStyleType getGradientStyle()
getGradientStyle in interface IShapeFillpublic void setGradientStyle(GradientStyleType value)
setGradientStyle in interface IShapeFillpublic GradientVariantsType getGradientVariant()
getGradientVariant in interface IShapeFillpublic void setGradientVariant(GradientVariantsType value)
setGradientVariant in interface IShapeFillpublic double getTransparency()
getTransparency in interface IShapeFillpublic void setTransparency(double value)
setTransparency in interface IShapeFillpublic double getTransparencyFrom()
getTransparencyFrom in interface IShapeFillpublic void setTransparencyFrom(double value)
setTransparencyFrom in interface IShapeFillpublic double getTransparencyTo()
getTransparencyTo in interface IShapeFillpublic void setTransparencyTo(double value)
setTransparencyTo in interface IShapeFillpublic boolean getVisible()
getVisible in interface IShapeFillpublic void setVisible(boolean value)
setVisible in interface IShapeFillpublic ExcelColors getBackKnownColor()
getBackKnownColor in interface IShapeFillpublic void setBackKnownColor(ExcelColors value)
public ExcelColors getForeKnownColor()
getForeKnownColor in interface IShapeFillpublic void setForeKnownColor(ExcelColors value)
setForeKnownColor in interface IShapeFillpublic java.awt.Color getBackColor()
getBackColor in interface IShapeFillpublic void setBackColor(java.awt.Color value)
setBackColor in interface IShapeFillpublic java.awt.Color getForeColor()
getForeColor in interface IShapeFillpublic void setForeColor(java.awt.Color value)
setForeColor in interface IShapeFillpublic OColor getBackColorObject()
public OColor getForeColorObject()
public GradientColorType getGradientColorType()
getGradientColorType in interface IShapeFillpublic void setGradientColorType(GradientColorType value)
setGradientColorType in interface IShapeFillpublic GradientTextureType getTexture()
getTexture in interface IShapeFillpublic void setTexture(GradientTextureType value)
setTexture in interface IShapeFillpublic GradientPatternType getPattern()
getPattern in interface IShapeFillpublic void setPattern(GradientPatternType value)
setPattern in interface IShapeFillpublic GradientPresetType getPresetGradientType()
getPresetGradientType in interface IShapeFillpublic void setPresetGradientType(GradientPresetType value)
setPresetGradientType in interface IShapeFillpublic java.awt.image.BufferedImage getPicture()
getPicture in interface IShapeFillpublic java.lang.String getPictureName()
getPictureName in interface IShapeFillpublic double getGradientDegree()
getGradientDegree in interface IShapeFillpublic void setGradientDegree(double value)
setGradientDegree in interface IShapeFillpublic boolean getTile()
getTile in interface IShapeFillpublic void setTile(boolean value)
setTile in interface IShapeFillpublic PicStretch getPicStretch()
getPicStretch in interface IShapeFillpublic PicTile getPicTile()
public static boolean isDoubled(GradientStyleType gradientStyle,
GradientVariantsType variant)
gradientStyle - Gradient style.variant - Gradient variant.
public static boolean isInverted(GradientStyleType gradientStyle,
GradientVariantsType variant)
gradientStyle - Gradient style.variant - Gradient variant.
public int compareTo(IGradient twin)
twin - Shape XlsFill to compare with.
public void customPicture(java.lang.String path)
customPicture in interface IShapeFillpath - Path to image.
public void customPicture(java.awt.image.BufferedImage im,
java.lang.String name)
customPicture in interface IShapeFillim - Represents user defined image.name - Represents name of user defined image.public void customTexture(java.lang.String path)
customTexture in interface IShapeFillpath - Path to image.
public void customTexture(java.awt.image.BufferedImage im,
java.lang.String name)
customTexture in interface IShapeFillim - Represents user defined texture.name - Represents name of user defined texture.public void patterned(GradientPatternType pattern)
patterned in interface IShapeFillpattern - Pattern to set.public void presetGradient(GradientPresetType grad)
presetGradient in interface IShapeFillgrad - Represents preset gradient type.
public void presetGradient(GradientPresetType grad,
GradientStyleType shadStyle)
presetGradient in interface IShapeFillgrad - Represents preset gradient type.shadStyle - Represents gradient style, for preset gradient.
public void presetGradient(GradientPresetType grad,
GradientStyleType shadStyle,
GradientVariantsType shadVar)
presetGradient in interface IShapeFillgrad - Represents preset gradient type.shadStyle - Represents gradient style, for preset gradient.shadVar - Represents gradient variant for preset gradient.public void presetTextured(GradientTextureType texture)
presetTextured in interface IShapeFilltexture - Represents texture to set.public void twoColorGradient()
twoColorGradient in interface IShapeFillpublic void twoColorGradient(GradientStyleType style)
twoColorGradient in interface IShapeFillstyle - Represents shading shading style.
public void twoColorGradient(GradientStyleType style,
GradientVariantsType variant)
twoColorGradient in interface IShapeFillstyle - Represents shading shading style.variant - Represents shading variant.public void oneColorGradient()
oneColorGradient in interface IShapeFillpublic void oneColorGradient(GradientStyleType style)
oneColorGradient in interface IShapeFillstyle - Represents shading shading style.
public void oneColorGradient(GradientStyleType style,
GradientVariantsType variant)
oneColorGradient in interface IShapeFillstyle - Represents shading shading style.variant - Represents shading variant.public void solid()
solid in interface IShapeFill
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||