com.aspose.slides
Class FillFormat

java.lang.Object
  extended by com.aspose.slides.FillFormat

public final class FillFormat
extends java.lang.Object

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

isRotateWithShape

public boolean isRotateWithShape()
Determines whether the filling rotated together with a parent shape.


setRotateWithShape

public void setRotateWithShape(boolean value)
Sets whether the filling rotated together with a parent shape.


getType

public int getType()
Returns the fill type of a shape. See FillType.


setType

public void setType(int value)
             throws PptReadException
Sets the fill type of a shape.

Parameters:
value - new fill type. See FillType.
Throws:
PptReadException - if standard textures or patterns can't be loaded from resource.

getForeColor

public java.awt.Color getForeColor()
Returns the foreground color of a fill.


setForeColor

public void setForeColor(java.awt.Color value)
Sets the foreground color of a fill.

Parameters:
value - new foreground color.

getBackColor

public java.awt.Color getBackColor()

Returns the background color of a fill.

For the ONE_COLOR gradient always returns Color.WHITE.


setBackColor

public void setBackColor(java.awt.Color value)
Sets the background color of a fill.

Parameters:
value - new background color.

getGradientColorType

public int getGradientColorType()
Returns the color type of a gradient. See GradientColorType.


setGradientColorType

public void setGradientColorType(int value)
                          throws PptReadException
Sets the color type of a gradient.

Parameters:
value - new color type of a gradient. See GradientColorType.
Throws:
PptReadException

getGradientPreset

public int getGradientPreset()
Returns the preset of a gradient. See GradientPreset.


setGradientPreset

public void setGradientPreset(int value)
                       throws PptReadException
Sets the preset of a gradient.

Parameters:
value - new preset of a gradient. See GradientPreset.
Throws:
PptReadException

getGradientDegree

public byte getGradientDegree()

Returns the gradient degree for ONE_COLOR gradients.

Possible values are from 0 to 19. 0 means black, 19 means white.


setGradientDegree

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.

Parameters:
value - new gradient degree.

getGradientStyle

public int getGradientStyle()
Returns the style of a gradient. See GradientStyle.


setGradientStyle

public void setGradientStyle(int value)
Sets the style of a gradient.

Parameters:
value - new style of a gradient. See GradientStyle.

getGradientFillFocus

public int getGradientFillFocus()

Returns the focus shift of a gradient.

Possible values are from -100% to 100%.


setGradientFillFocus

public void setGradientFillFocus(int value)
                          throws PptPropertyException

Sets the focus shift of a gradient.

Possible values are from -100% to 100%.

Parameters:
value - new focus shift value.
Throws:
PptPropertyException

getGradientFillAngle

public byte getGradientFillAngle()

Returns the fill angle of a gradient.

Possible values are from -180 to +179.


setGradientFillAngle

public void setGradientFillAngle(int value)
                          throws PptPropertyException

Sets the fill angle of a gradient.

Possible values are from -180 to +179.

Parameters:
value - new fill angle value.
Throws:
PptPropertyException

getPatternStyle

public int getPatternStyle()
                    throws PptReadException
Returns the pattern style of a fill. See PatternStyle.

Throws:
PptReadException - on pattern resources reading error.

setPatternStyle

public void setPatternStyle(int value)
                     throws PptException
Sets the pattern style of a fill.

Parameters:
value - new pattern style. See PatternStyle.
Throws:
PptException - on pattern resources reading error.

setTextureStyle

public void setTextureStyle(int value)
                     throws PptException
Sets the texture style of a fill.

Parameters:
value - new texture style. See TextureStyle.
Throws:
PptException - on texture resources reading error.

getPictureId

public int getPictureId()
Returns the picture id of the picture fill style.


setPictureId

public void setPictureId(int value)
Sets the picture id of the picture fill style.

Parameters:
value - new picture id.

getGradientStops

public com.aspose.util.drawing.ColorBlend getGradientStops()
Returns ColorBlend for custom and preset gradients.


setGradientStops

public void setGradientStops(com.aspose.util.drawing.ColorBlend value)
Sets ColorBlend for custom and preset gradients.