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 for the current fill type.
 java.awt.Color getForeColor()
          Returns the foreground color for the current fill type..
 int getGradientColorType()
          Returns the gradient color type for the current gradient.
 int getGradientDegree()
          Returns the gradient degree for the ONE_COLOR gradients. 0-19 values. 0 - black, 19 - white.
 int getGradientFillAngle()
          Returns the fill angle (0-179).
 int getGradientFillFocus()
          Returns the fill focus shift for a gradients.
 int getGradientStyle()
          Returns the gradient style for the current gradient.
 int getPatternStyle()
          Returns the pattern style.
 int getPictureId()
          Returns the picture id for the picture fill style.
 int getType()
          Returns the fill type for a shape.
 void setBackColor(java.awt.Color value)
          Sets the background color for the current fill type.
 void setForeColor(java.awt.Color value)
          Sets the foreground color for the current fill type.
 void setGradientColorType(int value)
          Sets the gradient color type for the current gradient.
 void setGradientDegree(int value)
          Sets the gradient degree for the ONE_COLOR gradients. 0-19 values. 0 - black, 19 - white.
 void setGradientFillAngle(int value)
          Sets the fill angle (0-179).
 void setGradientFillFocus(int value)
          Sets the fill focus shift for a gradients.
 void setGradientStyle(int value)
          Sets the gradient style for the current gradient.
 void setPatternStyle(int value)
          Sets the pattern style.
 void setPictureId(int value)
          Sets the picture id for the picture fill style.
 void setTextureStyle(int value)
          Sets the texture style.
 void setType(int value)
          Sets the fill type for a shape.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public int getType()
Returns the fill type for a shape.

Returns:
The fill type. See FillType.

setType

public void setType(int value)
             throws PptReadException
Sets the fill type for 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 for the current fill type..

Returns:
The foreground color.

setForeColor

public void setForeColor(java.awt.Color value)
Sets the foreground color for the current fill type.

Parameters:
value - new foreground color.

getBackColor

public java.awt.Color getBackColor()
Returns the background color for the current fill type. For the ONE_COLOR gradient always returns Color.WHITE.

Returns:
The background color.

setBackColor

public void setBackColor(java.awt.Color value)
Sets the background color for the current fill type.

Parameters:
value - background color.

getGradientColorType

public int getGradientColorType()
Returns the gradient color type for the current gradient.

Returns:
The gradient color type. See GradientColorType.

setGradientColorType

public void setGradientColorType(int value)
Sets the gradient color type for the current gradient.

Parameters:
value - new gradient color type. See GradientColorType.

getGradientDegree

public int getGradientDegree()
Returns the gradient degree for the ONE_COLOR gradients. 0-19 values. 0 - black, 19 - white.

Returns:
The gradient degree.

setGradientDegree

public void setGradientDegree(int value)
Sets the gradient degree for the ONE_COLOR gradients. 0-19 values. 0 - black, 19 - white.

Parameters:
value - new gradient degree.

getGradientStyle

public int getGradientStyle()
Returns the gradient style for the current gradient.

Returns:
The gradient style. See GradientStyle.

setGradientStyle

public void setGradientStyle(int value)
Sets the gradient style for the current gradient.

Parameters:
value - new gradient style. See GradientStyle.

getGradientFillFocus

public int getGradientFillFocus()
Returns the fill focus shift for a gradients. Value from -100% to 100%.

Returns:
The fill focus shift.

setGradientFillFocus

public void setGradientFillFocus(int value)
                          throws PptPropertyException
Sets the fill focus shift for a gradients. Value from -100% to 100%.

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

getGradientFillAngle

public int getGradientFillAngle()
Returns the fill angle (0-179).

Returns:
The fill angle.

setGradientFillAngle

public void setGradientFillAngle(int value)
                          throws PptPropertyException
Sets the fill angle (0-179).

Parameters:
value - new fill angle.
Throws:
PptPropertyException

getPatternStyle

public int getPatternStyle()
                    throws PptReadException
Returns the pattern style.

Returns:
The pattern style. See PatternStyle.
Throws:
PptReadException - on pattern resources reading error.

setPatternStyle

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

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.

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

getPictureId

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

Returns:
The picture id.

setPictureId

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

Parameters:
value - new picture id.