Interface IFillFormat
public interface IFillFormat
Represents fill formatting for a shape.
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns theIColorFormatobject that represents the specifiedforeground fill or solid color.doubleGets the angle of the gradient fill for the specified fill format.doubleReturns the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light).Gets the path type for the gradient fill.Returns the end point for the gradient fill.Returns the gradient style for the specified fill.intReturns the shade variant for the specified fill as an integer value from 1 through 4.Returns the fill pattern.Returns theIColorFormatobject that represents the specified patterncolor.Returns the preset gradient type for the specified fill.Returns the preset texture for the specified fill.booleanGets if the fill style should rotate with the object.Gets the text alignment for the specifiedIFillFormat.doubleGets the value for horizontally scaling the text for theIFillFormat.doubleReturns the offset X value for the specified fill.doubleReturns the offset Y value for the specified fill.doubleReturns the texture vertical scale for the specified fill.doubleGets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).getType()Returns the fill type.booleanDetermines whether the object is visible.voidoneColorGradient(GradientStyle style, int variant, double degree) Sets the specified fill to a one-color gradient.voidpatterned(PatternType pattern) Sets the specified fill to a pattern.voidpresetGradient(GradientStyle style, int variant, PresetGradientType presetGradientType) Sets the specified fill to a preset gradient.voidpresetTextured(PresetTexture presetTexture) Sets the specified fill format to a preset texture.voidsetGradientAngle(double value) Sets the angle of the gradient fill for the specified fill format.voidsetGradientPathType(PathShapeType value) Sets the path type for the gradient fill.voidsetRotateWithObject(boolean value) Sets if the fill style should rotate with the object.voidSets the text alignment for the specifiedIFillFormat.voidsetTextureHorizontalScale(double value) Sets the value for horizontally scaling the text for theIFillFormat.voidsetTextureOffsetX(double value) Sets the offset X value for the specified fill.voidsetTextureOffsetY(double value) Sets the offset Y value for the specified fill.voidsetTextureVerticalScale(double value) Sets the texture vertical scale for the specified fill.voidsetTransparency(double value) Sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).voidsetVisible(boolean value) Determines whether the object is visible.voidsolid()Sets the specified fill to a uniform color.voidtwoColorGradient(GradientStyle style, int variant) Sets the specified fill to a two-color gradient.voiduserPicture(InputStream stream, ImageType type) Fills the specified shape with an image.voiduserPicture(String fileName) Fills the specified shape with an image.voiduserTextured(InputStream stream, ImageType type) Fills the specified shape with small tiles of an image.voiduserTextured(String fileName) Fills the specified shape with small tiles of an image.
-
Method Details
-
getPatternColor
IColorFormat getPatternColor()Returns theIColorFormatobject that represents the specified patterncolor. -
getColor
IColorFormat getColor()Returns theIColorFormatobject that represents the specifiedforeground fill or solid color. -
getVisible
boolean getVisible()Determines whether the object is visible. -
setVisible
void setVisible(boolean value) Determines whether the object is visible. -
getGradientAngle
double getGradientAngle()Gets the angle of the gradient fill for the specified fill format. -
setGradientAngle
void setGradientAngle(double value) Sets the angle of the gradient fill for the specified fill format. -
getGradientPathType
PathShapeType getGradientPathType()Gets the path type for the gradient fill. -
setGradientPathType
Sets the path type for the gradient fill. -
getGradientDegree
double getGradientDegree()Returns the gradient degree of the specified one-color shaded fill as a floating-point value from 0.0 (dark) through 1.0 (light). -
getGradientStops
IGradientStops getGradientStops()Returns the end point for the gradient fill. -
getGradientStyle
GradientStyle getGradientStyle()Returns the gradient style for the specified fill. -
getGradientVariant
int getGradientVariant()Returns the shade variant for the specified fill as an integer value from 1 through 4. -
getPattern
PatternType getPattern()Returns the fill pattern. -
getPresetGradientType
PresetGradientType getPresetGradientType()Returns the preset gradient type for the specified fill. -
getPresetTexture
PresetTexture getPresetTexture()Returns the preset texture for the specified fill. -
getRotateWithObject
boolean getRotateWithObject()Gets if the fill style should rotate with the object. -
setRotateWithObject
void setRotateWithObject(boolean value) Sets if the fill style should rotate with the object. -
getTextureAlignment
TextureAlignment getTextureAlignment()Gets the text alignment for the specifiedIFillFormat. -
setTextureAlignment
Sets the text alignment for the specifiedIFillFormat. -
getTextureHorizontalScale
double getTextureHorizontalScale()Gets the value for horizontally scaling the text for theIFillFormat. -
setTextureHorizontalScale
void setTextureHorizontalScale(double value) Sets the value for horizontally scaling the text for theIFillFormat. -
getTextureOffsetX
double getTextureOffsetX()Returns the offset X value for the specified fill. -
setTextureOffsetX
void setTextureOffsetX(double value) Sets the offset X value for the specified fill. -
getTextureOffsetY
double getTextureOffsetY()Returns the offset Y value for the specified fill. -
setTextureOffsetY
void setTextureOffsetY(double value) Sets the offset Y value for the specified fill. -
getTextureVerticalScale
double getTextureVerticalScale()Returns the texture vertical scale for the specified fill. -
setTextureVerticalScale
void setTextureVerticalScale(double value) Sets the texture vertical scale for the specified fill. -
getTransparency
double getTransparency()Gets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). -
setTransparency
void setTransparency(double value) Sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). -
getType
FillType getType()Returns the fill type. -
oneColorGradient
Sets the specified fill to a one-color gradient.- Parameters:
style- TheGradientStyleto be set.variant- The gradient variant. Can be a value from 1 through 4,corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.degree- The gradient degree. Can be a value from 0.0 (dark) through 1.0(light).
-
patterned
Sets the specified fill to a pattern.- Parameters:
pattern- ThePatternTypeobject.
-
presetGradient
Sets the specified fill to a preset gradient.- Parameters:
style- TheGradientStyleobject to be set.variant- The gradient variant. Can be a value from 1 through 4,corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.presetGradientType- ThePresetGradientTypeobject.
-
presetTextured
Sets the specified fill format to a preset texture.- Parameters:
presetTexture- ThePresetTexture.
-
solid
void solid()Sets the specified fill to a uniform color. -
twoColorGradient
Sets the specified fill to a two-color gradient.- Parameters:
style- TheGradientStyleobject.variant- The gradient variant. Can be a value from 1 through 4,corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If GradientStyle is GradientFromCenter, the Variant argument can only be 1 or 2.
-
userPicture
Fills the specified shape with an image.- Parameters:
fileName- The name of the picture file.- Throws:
IOException
-
userPicture
Fills the specified shape with an image.- Parameters:
stream- The stream of the picture file.type- TheImageTypeof the stream.- Throws:
IOException
-
userTextured
Fills the specified shape with small tiles of an image.- Parameters:
fileName- The name of the picture file.- Throws:
IOException
-
userTextured
Fills the specified shape with small tiles of an image.- Parameters:
stream- The stream of the picture file.type- TheImageTypeof the stream.
-