com.aspose.slides.pptx
Class PatternFormatEx

java.lang.Object
  extended by com.aspose.slides.pptx.PatternFormatEx
All Implemented Interfaces:
IPresentationComponent, ISlideComponent

public class PatternFormatEx
extends java.lang.Object
implements ISlideComponent

Represents a pattern to fill a shape.


Method Summary
static java.awt.image.BufferedImage createPatternImage(int imageType, PatternStyleEx patternStyle, java.awt.Color background, java.awt.Color foreground)
           
 ColorFormatEx getBackColorFormat()
          Returns the background pattern color.
 ColorFormatEx getForeColorFormat()
          Returns the foreground pattern color.
 PatternStyleEx getPatternStyle()
          Returns the pattern style.
 PresentationEx getPresentation()
          Returns the parent presentation of a PatternFormatEx.
 BaseSlideEx getSlide()
          Returns the parent slide of a PatternFormatEx.
 java.awt.image.BufferedImage getTileImage(java.awt.Color styleColor)
          Creates a tile image for the pattern fill.
 java.awt.image.BufferedImage getTileImage(java.awt.Color background, java.awt.Color foreground)
          Creates a tile image for the pattern fill with a specified colors.
 void setPatternStyle(PatternStyleEx value)
          Sets the pattern style.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPatternStyle

public PatternStyleEx getPatternStyle()
Returns the pattern style.

Returns:
See PatternStyleEx.

setPatternStyle

public void setPatternStyle(PatternStyleEx value)
Sets the pattern style.

Parameters:
value - See PatternStyleEx.

getForeColorFormat

public ColorFormatEx getForeColorFormat()
Returns the foreground pattern color.

Returns:
See ColorFormatEx.

getBackColorFormat

public ColorFormatEx getBackColorFormat()
Returns the background pattern color.

Returns:
See ColorFormatEx.

getTileImage

public java.awt.image.BufferedImage getTileImage(java.awt.Color background,
                                                 java.awt.Color foreground)
Creates a tile image for the pattern fill with a specified colors.

Parameters:
background - - The background for the pattern.
foreground - - The foreground for the pattern.

getTileImage

public java.awt.image.BufferedImage getTileImage(java.awt.Color styleColor)
Creates a tile image for the pattern fill.

Parameters:
styleColor - - The default , defined in ShapeEx's StyleEx object. Fill's colors can depend on this.

createPatternImage

public static java.awt.image.BufferedImage createPatternImage(int imageType,
                                                              PatternStyleEx patternStyle,
                                                              java.awt.Color background,
                                                              java.awt.Color foreground)

getSlide

public BaseSlideEx getSlide()
Returns the parent slide of a PatternFormatEx.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public PresentationEx getPresentation()
Returns the parent presentation of a PatternFormatEx.

Specified by:
getPresentation in interface IPresentationComponent