com.aspose.slides
Class PatternFormat

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

public class PatternFormat
extends java.lang.Object
implements IPatternFormat

Represents a pattern to fill a shape.


Method Summary
 boolean equals(java.lang.Object obj)
           Determines whether the two PatternFormat instances are equal.
 IColorFormat getBackColor()
           Returns the background pattern color.
 IColorFormat getForeColor()
           Returns the foreground pattern color.
 int getPatternStyle()
           Returns or sets the pattern style.
 IPresentation getPresentation()
           Returns the parent presentation of a PatternFormat.
 IBaseSlide getSlide()
           Returns the parent slide of a PatternFormat.
 java.awt.image.BufferedImage getTileImage(java.awt.Color styleColor)
           
 java.awt.image.BufferedImage getTileImage(java.awt.Color background, java.awt.Color foreground)
           
 int hashCode()
           Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 void setPatternStyle(int value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPatternStyle

public int getPatternStyle()

Returns or sets the pattern style. Read/write PatternStyle.

Specified by:
getPatternStyle in interface IPatternFormat

setPatternStyle

public void setPatternStyle(int value)
Specified by:
setPatternStyle in interface IPatternFormat

getForeColor

public IColorFormat getForeColor()

Returns the foreground pattern color. Read-only ColorFormat.

Specified by:
getForeColor in interface IPatternFormat

getBackColor

public IColorFormat getBackColor()

Returns the background pattern color. Read-only ColorFormat.

Specified by:
getBackColor in interface IPatternFormat

getTileImage

public java.awt.image.BufferedImage getTileImage(java.awt.Color background,
                                                 java.awt.Color foreground)
Specified by:
getTileImage in interface IPatternFormat

getTileImage

public java.awt.image.BufferedImage getTileImage(java.awt.Color styleColor)
Specified by:
getTileImage in interface IPatternFormat

equals

public boolean equals(java.lang.Object obj)

Determines whether the two PatternFormat instances are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The PatternFormat to compare with the current PatternFormat.
Returns:
<b>true</b> if the specified PatternFormat is equal to the current PatternFormat; otherwise, <b>false</b>.

hashCode

public int hashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Overrides:
hashCode in class java.lang.Object
Returns:


Overriden to make compiler happy. Always returns constant because object is mutable.


getSlide

public IBaseSlide getSlide()

Returns the parent slide of a PatternFormat. Read-only BaseSlide.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

Returns the parent presentation of a PatternFormat. Read-only Presentation.

Specified by:
getPresentation in interface IPresentationComponent