|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.FillFormat
public final class FillFormat
Represents a fill formatting.
Method Summary | |
---|---|
java.awt.Color |
getBackColor()
Returns the background color of a fill. |
java.awt.Color |
getForeColor()
Returns the foreground color of a fill. |
int |
getGradientColorType()
Returns the color type of a gradient. |
byte |
getGradientDegree()
Returns the gradient degree for ONE_COLOR gradients. |
byte |
getGradientFillAngle()
Returns the fill angle of a gradient. |
int |
getGradientFillFocus()
Returns the focus shift of a gradient. |
int |
getGradientPreset()
Returns the preset of a gradient. |
com.aspose.util.drawing.ColorBlend |
getGradientStops()
Returns ColorBlend for custom and preset gradients. |
int |
getGradientStyle()
Returns the style of a gradient. |
int |
getPatternStyle()
Returns the pattern style of a fill. |
int |
getPictureId()
Returns the picture id of the picture fill style. |
int |
getType()
Returns the fill type of a shape. |
boolean |
isRotateWithShape()
Determines whether the filling rotated together with a parent shape. |
void |
setBackColor(java.awt.Color value)
Sets the background color of a fill. |
void |
setForeColor(java.awt.Color value)
Sets the foreground color of a fill. |
void |
setGradientColorType(int value)
Sets the color type of a gradient. |
void |
setGradientDegree(int value)
Sets the gradient degree for ONE_COLOR gradients. |
void |
setGradientFillAngle(int value)
Sets the fill angle of a gradient. |
void |
setGradientFillFocus(int value)
Sets the focus shift of a gradient. |
void |
setGradientPreset(int value)
Sets the preset of a gradient. |
void |
setGradientStops(com.aspose.util.drawing.ColorBlend value)
Sets ColorBlend for custom and preset gradients. |
void |
setGradientStyle(int value)
Sets the style of a gradient. |
void |
setPatternStyle(int value)
Sets the pattern style of a fill. |
void |
setPictureId(int value)
Sets the picture id of the picture fill style. |
void |
setRotateWithShape(boolean value)
Sets whether the filling rotated together with a parent shape. |
void |
setTextureStyle(int value)
Sets the texture style of a fill. |
void |
setType(int value)
Sets the fill type of a shape. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isRotateWithShape()
public void setRotateWithShape(boolean value)
public int getType()
FillType
.
public void setType(int value) throws PptReadException
value
- new fill type. See FillType
.
PptReadException
- if standard textures or patterns can't be loaded from
resource.public java.awt.Color getForeColor()
public void setForeColor(java.awt.Color value)
value
- new foreground color.public java.awt.Color getBackColor()
Returns the background color of a fill.
For the ONE_COLOR gradient always returns Color.WHITE.
public void setBackColor(java.awt.Color value)
value
- new background color.public int getGradientColorType()
GradientColorType
.
public void setGradientColorType(int value) throws PptReadException
value
- new color type of a gradient. See GradientColorType
.
PptReadException
public int getGradientPreset()
GradientPreset
.
public void setGradientPreset(int value) throws PptReadException
value
- new preset of a gradient. See GradientPreset
.
PptReadException
public byte getGradientDegree()
Returns the gradient degree for ONE_COLOR gradients.
Possible values are from 0 to 19. 0 means black, 19 means white.
public void setGradientDegree(int value)
Sets the gradient degree for ONE_COLOR gradients.
Possible values are from 0 to 19. 0 means black, 19 means white.
value
- new gradient degree.public int getGradientStyle()
GradientStyle
.
public void setGradientStyle(int value)
value
- new style of a gradient. See GradientStyle
.public int getGradientFillFocus()
Returns the focus shift of a gradient.
Possible values are from -100% to 100%.
public void setGradientFillFocus(int value) throws PptPropertyException
Sets the focus shift of a gradient.
Possible values are from -100% to 100%.
value
- new focus shift value.
PptPropertyException
public byte getGradientFillAngle()
Returns the fill angle of a gradient.
Possible values are from -180 to +179.
public void setGradientFillAngle(int value) throws PptPropertyException
Sets the fill angle of a gradient.
Possible values are from -180 to +179.
value
- new fill angle value.
PptPropertyException
public int getPatternStyle() throws PptReadException
PatternStyle
.
PptReadException
- on pattern resources reading error.public void setPatternStyle(int value) throws PptException
value
- new pattern style. See PatternStyle
.
PptException
- on pattern resources reading error.public void setTextureStyle(int value) throws PptException
value
- new texture style. See TextureStyle
.
PptException
- on texture resources reading error.public int getPictureId()
public void setPictureId(int value)
value
- new picture id.public com.aspose.util.drawing.ColorBlend getGradientStops()
public void setGradientStops(com.aspose.util.drawing.ColorBlend value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |