com.aspose.slides
Class PatternFormatEffectiveData

java.lang.Object
  extended by com.aspose.slides.PatternFormatEffectiveData
All Implemented Interfaces:
IPatternFormatEffectiveData

public class PatternFormatEffectiveData
extends java.lang.Object
implements IPatternFormatEffectiveData

Immutable object which represents a pattern to fill a shape.


Method Summary
 boolean equals(java.lang.Object obj)
           
 java.awt.Color getBackColor()
           Returns the background pattern color.
 java.awt.Color getForeColor()
           Returns the foreground pattern color.
 byte getPatternStyle()
           Returns the pattern style.
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPatternStyle

public byte getPatternStyle()

Returns the pattern style. Read-only PatternStyle.

Specified by:
getPatternStyle in interface IPatternFormatEffectiveData

getForeColor

public java.awt.Color getForeColor()

Returns the foreground pattern color. Read-only java.awt.Color.

Specified by:
getForeColor in interface IPatternFormatEffectiveData

getBackColor

public java.awt.Color getBackColor()

Returns the background pattern color. Read-only java.awt.Color.

Specified by:
getBackColor in interface IPatternFormatEffectiveData

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 IPatternFormatEffectiveData
Parameters:
background - The background System.Drawing.Color for the pattern.
foreground - The foreground System.Drawing.Color for the pattern.
Returns:
Tile Bitmap.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

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:
23454


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



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