public interface IFillFormat
| Modifier and Type | Method and Description |
|---|---|
IColorFormat |
getColor()
Returns the
IColorFormat object that represents the specified
foreground fill or solid color. |
double |
getGradientAngle()
Gets the angle of the gradient fill for the specified fill format.
|
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).
|
PathShapeType |
getGradientPathType()
Gets the path type for the gradient fill.
|
IGradientStops |
getGradientStops()
Returns the end point for the gradient fill.
|
GradientStyle |
getGradientStyle()
Returns the gradient style for the specified fill.
|
int |
getGradientVariant()
Returns the shade variant for the specified fill as an integer value from 1
through 4.
|
PatternType |
getPattern()
Returns the fill pattern.
|
IColorFormat |
getPatternColor()
Returns the
IColorFormat object that represents the specified pattern
color. |
PresetGradientType |
getPresetGradientType()
Returns the preset gradient type for the specified fill.
|
PresetTexture |
getPresetTexture()
Returns the preset texture for the specified fill.
|
boolean |
getRotateWithObject()
Gets if the fill style should rotate with the object.
|
TextureAlignment |
getTextureAlignment()
Gets the text alignment for the specified
IFillFormat. |
double |
getTextureHorizontalScale()
Gets the value for horizontally scaling the text for the
IFillFormat. |
double |
getTextureOffsetX()
Returns the offset X value for the specified fill.
|
double |
getTextureOffsetY()
Returns the offset Y value for the specified fill.
|
double |
getTextureVerticalScale()
Returns the texture vertical scale for the specified fill.
|
double |
getTransparency()
Gets the degree of transparency of the specified fill as a value from 0.0
(opaque) through 1.0 (clear).
|
FillType |
getType()
Returns the fill type.
|
boolean |
getVisible()
Determines whether the object is visible.
|
void |
oneColorGradient(GradientStyle style,
int variant,
double degree)
Sets the specified fill to a one-color gradient.
|
void |
patterned(PatternType pattern)
Sets the specified fill to a pattern.
|
void |
presetGradient(GradientStyle style,
int variant,
PresetGradientType presetGradientType)
Sets the specified fill to a preset gradient.
|
void |
presetTextured(PresetTexture presetTexture)
Sets the specified fill format to a preset texture.
|
void |
setGradientAngle(double value)
Sets the angle of the gradient fill for the specified fill format.
|
void |
setGradientPathType(PathShapeType value)
Sets the path type for the gradient fill.
|
void |
setRotateWithObject(boolean value)
Sets if the fill style should rotate with the object.
|
void |
setTextureAlignment(TextureAlignment value)
Sets the text alignment for the specified
IFillFormat. |
void |
setTextureHorizontalScale(double value)
Sets the value for horizontally scaling the text for the
IFillFormat. |
void |
setTextureOffsetX(double value)
Sets the offset X value for the specified fill.
|
void |
setTextureOffsetY(double value)
Sets the offset Y value for the specified fill.
|
void |
setTextureVerticalScale(double value)
Sets the texture vertical scale for the specified fill.
|
void |
setTransparency(double value)
Sets the degree of transparency of the specified fill as a value from 0.0
(opaque) through 1.0 (clear).
|
void |
setVisible(boolean value)
Determines whether the object is visible.
|
void |
solid()
Sets the specified fill to a uniform color.
|
void |
twoColorGradient(GradientStyle style,
int variant)
Sets the specified fill to a two-color gradient.
|
void |
userPicture(java.io.InputStream stream,
ImageType type)
Fills the specified shape with an image.
|
void |
userPicture(java.lang.String fileName)
Fills the specified shape with an image.
|
void |
userTextured(java.io.InputStream stream,
ImageType type)
Fills the specified shape with small tiles of an image.
|
void |
userTextured(java.lang.String fileName)
Fills the specified shape with small tiles of an image.
|
IColorFormat getPatternColor()
IColorFormat object that represents the specified pattern
color.IColorFormat getColor()
IColorFormat object that represents the specified
foreground fill or solid color.boolean getVisible()
void setVisible(boolean value)
double getGradientAngle()
void setGradientAngle(double value)
PathShapeType getGradientPathType()
void setGradientPathType(PathShapeType value)
double getGradientDegree()
IGradientStops getGradientStops()
GradientStyle getGradientStyle()
int getGradientVariant()
PatternType getPattern()
PresetGradientType getPresetGradientType()
PresetTexture getPresetTexture()
boolean getRotateWithObject()
void setRotateWithObject(boolean value)
TextureAlignment getTextureAlignment()
IFillFormat.void setTextureAlignment(TextureAlignment value)
IFillFormat.double getTextureHorizontalScale()
IFillFormat.void setTextureHorizontalScale(double value)
IFillFormat.double getTextureOffsetX()
void setTextureOffsetX(double value)
double getTextureOffsetY()
void setTextureOffsetY(double value)
double getTextureVerticalScale()
void setTextureVerticalScale(double value)
double getTransparency()
void setTransparency(double value)
FillType getType()
void oneColorGradient(GradientStyle style, int variant, double degree)
style - The GradientStyle 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.degree - The gradient degree. Can be a value from 0.0 (dark) through 1.0
(light).void patterned(PatternType pattern)
pattern - The PatternType object.void presetGradient(GradientStyle style, int variant, PresetGradientType presetGradientType)
style - The GradientStyle object 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 - The PresetGradientType object.void presetTextured(PresetTexture presetTexture)
presetTexture - The PresetTexture.void solid()
void twoColorGradient(GradientStyle style, int variant)
style - The GradientStyle object.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.void userPicture(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the picture file.java.io.IOExceptionvoid userPicture(java.io.InputStream stream,
ImageType type)
throws java.io.IOException
stream - The stream of the picture file.type - The ImageType of the stream.java.io.IOExceptionvoid userTextured(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the picture file.java.io.IOException