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

NameTypeAccessDescription
presetTextureintReadGets a PresetTexture for the fill.
patternintReadGets a PatternType for the fill.
textureAlignmentintRead/WriteGets or sets the alignment for tile texture fill.
colorColorRead/WriteGets or sets a Color object that represents the foreground color for the fill.
opacitydoubleRead/WriteGets or sets the degree of opacity of the specified fill as a value between 0.0 (clear) and 1.0 (opaque).
imageBytesbyte[]ReadGets the raw bytes of the fill texture or pattern.
foreColorColorRead/WriteGets or sets a Color object that represents the foreground color for the fill.
baseForeColorColorReadGets a Color object that represents the base foreground color for the fill without any modifiers.
backColorColorRead/WriteGets or sets a Color object that represents the background color for the fill.
foreThemeColorintRead/WriteGets or sets a ThemeColor object that represents the foreground color for the fill.
backThemeColorintRead/WriteGets or sets a ThemeColor object that represents the background color for the fill.
foreTintAndShadedoubleRead/WriteGets or sets a double value that lightens or darkens the foreground color.
backTintAndShadedoubleRead/WriteGets or sets a double value that lightens or darkens the background color.
visiblebooleanRead/WriteGets or sets value that is true if the formatting applied to this instance, is visible.
transparencydoubleRead/WriteGets or sets the degree of transparency of the specified fill as a value between 0.0 (opaque) and 1.0 (clear).
rotateWithObjectbooleanRead/WriteGets or sets whether the fill rotates with the specified object.
fillTypeintReadGets a fill type.
gradientAngledoubleRead/WriteGets or sets the angle of the gradient fill.
gradientVariantintReadGets the gradient variant GradientVariant for the fill.
gradientStyleintReadGets the gradient style GradientStyle for the fill.
gradientStopsGradientStopCollectionReadGets a collection of GradientStop objects for the fill.

Methods

SignatureDescription
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() → intGets a PresetTexture for the fill.
getPattern() → intGets a PatternType for the fill.
getTextureAlignment() → intGets or sets the alignment for tile texture fill.
setTextureAlignment(value: int)Sets the texture alignment value.
getColor() → ColorGets or sets a Color object that represents the foreground color for the fill.
setColor(value: Color)Sets the color value.
getOpacity() → doubleGets 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() → ColorGets or sets a Color object that represents the foreground color for the fill.
setForeColor(value: Color)Sets the fore color value.
getBaseForeColor() → ColorGets a Color object that represents the base foreground color for the fill without any modifiers.
getBackColor() → ColorGets or sets a Color object that represents the background color for the fill.
setBackColor(value: Color)Sets the back color value.
getForeThemeColor() → intGets or sets a ThemeColor object that represents the foreground color for the fill.
setForeThemeColor(value: int)Sets the fore theme color value.
getBackThemeColor() → intGets or sets a ThemeColor object that represents the background color for the fill.
setBackThemeColor(value: int)Sets the back theme color value.
getForeTintAndShade() → doubleGets or sets a double value that lightens or darkens the foreground color.
setForeTintAndShade(value: double)Sets the fore tint and shade value.
getBackTintAndShade() → doubleGets or sets a double value that lightens or darkens the background color.
setBackTintAndShade(value: double)Sets the back tint and shade value.
getVisible() → booleanGets or sets value that is true if the formatting applied to this instance, is visible.
setVisible(value: boolean)Sets the visible value.
getTransparency() → doubleGets 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() → booleanGets or sets whether the fill rotates with the specified object.
setRotateWithObject(value: boolean)Sets the rotate with object value.
getFillType() → intGets a fill type.
getGradientAngle() → doubleGets or sets the angle of the gradient fill.
setGradientAngle(value: double)Sets the gradient angle value.
getGradientVariant() → intGets the gradient variant GradientVariant for the fill.
getGradientStyle() → intGets the gradient style GradientStyle for the fill.
getGradientStops() → GradientStopCollectionGets a collection of GradientStop objects for the fill.

See Also