com.aspose.slides
Class PatternFormat

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

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.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 byte getPatternStyle()
           Returns or sets the pattern style.
 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.
 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(byte value)
           Returns or sets the pattern style.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPatternStyle

public byte getPatternStyle()

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

Specified by:
getPatternStyle in interface IPatternFormat

setPatternStyle

public void setPatternStyle(byte value)

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

Specified by:
setPatternStyle in interface IPatternFormat

getForeColor

public IColorFormat getForeColor()

Returns the foreground pattern color. Read-only IColorFormat.

Specified by:
getForeColor in interface IPatternFormat

getBackColor

public IColorFormat getBackColor()

Returns the background pattern color. Read-only IColorFormat.

Specified by:
getBackColor in interface IPatternFormat

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.

Specified by:
getTileImage in interface IPatternFormat
Parameters:
background - The background System.Drawing.Color for the pattern.
foreground - The foreground System.Drawing.Color for the pattern.
Returns:
Tile Bitmap.

getTileImage

public java.awt.image.BufferedImage getTileImage(java.awt.Color styleColor)

Creates a tile image for the pattern fill.

Specified by:
getTileImage in interface IPatternFormat
Parameters:
styleColor - The default System.Drawing.Color, defined in Shape's StyleEx object. Fill's colors can depend on this.
Returns:
Tile Bitmap.

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.


getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.



Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.