Fill
Overview
Fill is a class in Aspose.Words FOSS for Java.
Represents fill formatting for an object.
Edition status of its 61 listed members (a property and its accessor methods are listed separately, overloads once): 61 not yet exercised by a verified example.
This class declares 46 methods for Fill objects in Java programs.
Available methods include: getBackColor, getBackThemeColor, getBackTintAndShade, getBaseForeColor, getColor, getFillType, getForeColor, getForeThemeColor, getForeTintAndShade, getGradientAngle, getGradientStops, getGradientStyle, and 28 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: backColor, backThemeColor, backTintAndShade, baseForeColor, color, fillType, and 15 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
presetTexture | int | Read | Gets a PresetTexture for the fill. |
pattern | int | Read | Gets a PatternType for the fill. |
textureAlignment | int | Read/Write | Gets or sets the alignment for tile texture fill. |
color | Color | Read/Write | Gets or sets a Color object that represents the foreground color for the fill. |
opacity | double | Read/Write | Gets or sets the degree of opacity of the specified fill as a value between 0.0 (clear) and 1.0 (opaque). |
imageBytes | byte[] | Read | Gets the raw bytes of the fill texture or pattern. |
foreColor | Color | Read/Write | Gets or sets a Color object that represents the foreground color for the fill. |
baseForeColor | Color | Read | Gets a Color object that represents the base foreground color for the fill without any modifiers. |
backColor | Color | Read/Write | Gets or sets a Color object that represents the background color for the fill. |
foreThemeColor | int | Read/Write | Gets or sets a ThemeColor object that represents the foreground color for the fill. |
backThemeColor | int | Read/Write | Gets or sets a ThemeColor object that represents the background color for the fill. |
foreTintAndShade | double | Read/Write | Gets or sets a double value that lightens or darkens the foreground color. |
backTintAndShade | double | Read/Write | Gets or sets a double value that lightens or darkens the background color. |
visible | boolean | Read/Write | Gets or sets value that is true if the formatting applied to this instance, is visible. |
transparency | double | Read/Write | Gets or sets the degree of transparency of the specified fill as a value between 0.0 (opaque) and 1.0 (clear). |
rotateWithObject | boolean | Read/Write | Gets or sets whether the fill rotates with the specified object. |
fillType | int | Read | Gets a fill type. |
gradientAngle | double | Read/Write | Gets or sets the angle of the gradient fill. |
gradientVariant | int | Read | Gets the gradient variant GradientVariant for the fill. |
gradientStyle | int | Read | Gets the gradient style GradientStyle for the fill. |
gradientStops | GradientStopCollection | Read | Gets a collection of GradientStop objects for the fill. |
Methods
| Signature | Description |
|---|---|
solid() | Sets the fill to a uniform color. |
solid(color: Color) | Sets the fill to a specified uniform color. |
presetTextured(presetTexture: int) | Sets the fill to a preset texture. |
patterned(patternType: int) | Sets the specified fill to a pattern. |
patterned(patternType: int, foreColor: Color, backColor: Color) | Sets the specified fill to a pattern. |
oneColorGradient(style: int, variant: int, degree: double) | Sets the specified fill to a one-color gradient. |
oneColorGradient(color: Color, style: int, variant: int, degree: double) | Sets the specified fill to a one-color gradient using the specified color. |
twoColorGradient(style: int, variant: int) | Sets the specified fill to a two-color gradient. |
twoColorGradient(color1: Color, color2: Color, style: int, variant: int) | Sets the specified fill to a two-color gradient. |
setImage(fileName: String) | Changes the fill type to single image. |
setImage(stream: java.io.InputStream) | Sets the image value. |
setImage(imageBytes: byte[]) | Changes the fill type to single image. |
getPresetTexture() → int | Gets a PresetTexture for the fill. |
getPattern() → int | Gets a PatternType for the fill. |
getTextureAlignment() → int | Gets or sets the alignment for tile texture fill. |
setTextureAlignment(value: int) | Sets the texture alignment value. |
getColor() → Color | Gets or sets a Color object that represents the foreground color for the fill. |
setColor(value: Color) | Sets the color value. |
getOpacity() → double | Gets or sets the degree of opacity of the specified fill as a value between 0.0 (clear) and 1.0 (opaque). |
setOpacity(value: double) | Sets the opacity value. |
getImageBytes() → byte[] | Gets the raw bytes of the fill texture or pattern. |
getForeColor() → Color | Gets or sets a Color object that represents the foreground color for the fill. |
setForeColor(value: Color) | Sets the fore color value. |
getBaseForeColor() → Color | Gets a Color object that represents the base foreground color for the fill without any modifiers. |
getBackColor() → Color | Gets or sets a Color object that represents the background color for the fill. |
setBackColor(value: Color) | Sets the back color value. |
getForeThemeColor() → int | Gets or sets a ThemeColor object that represents the foreground color for the fill. |
setForeThemeColor(value: int) | Sets the fore theme color value. |
getBackThemeColor() → int | Gets or sets a ThemeColor object that represents the background color for the fill. |
setBackThemeColor(value: int) | Sets the back theme color value. |
getForeTintAndShade() → double | Gets or sets a double value that lightens or darkens the foreground color. |
setForeTintAndShade(value: double) | Sets the fore tint and shade value. |
getBackTintAndShade() → double | Gets or sets a double value that lightens or darkens the background color. |
setBackTintAndShade(value: double) | Sets the back tint and shade value. |
getVisible() → boolean | Gets or sets value that is true if the formatting applied to this instance, is visible. |
setVisible(value: boolean) | Sets the visible value. |
getTransparency() → double | Gets or sets the degree of transparency of the specified fill as a value between 0.0 (opaque) and 1.0 (clear). |
setTransparency(value: double) | Sets the transparency value. |
getRotateWithObject() → boolean | Gets or sets whether the fill rotates with the specified object. |
setRotateWithObject(value: boolean) | Sets the rotate with object value. |
getFillType() → int | Gets a fill type. |
getGradientAngle() → double | Gets or sets the angle of the gradient fill. |
setGradientAngle(value: double) | Sets the gradient angle value. |
getGradientVariant() → int | Gets the gradient variant GradientVariant for the fill. |
getGradientStyle() → int | Gets the gradient style GradientStyle for the fill. |
getGradientStops() → GradientStopCollection | Gets a collection of GradientStop objects for the fill. |