Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class PatternFill

java.lang.Object
  extended by com.aspose.cells.Fill
      extended by com.aspose.cells.PatternFill
All Implemented Interfaces:
java.lang.Cloneable

public class PatternFill
extends Fill

Fill format of type PATTERN


Constructor Summary
PatternFill()
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object another)
           
 Color getBackgroundColor()
          Gets the background Color.
 float getBackgroundTransparency()
          Gets the transparency of background color.
 Color getForegroundColor()
          Gets the foreground Color.
 float getForegroundTransparency()
          Gets the transparency of foreground color.
 short getPattern()
          Gets an area's display pattern.
 void setBackgroundColor(Color color)
          Sets the background Color.
 void setBackgroundTransparency(float val)
          Sets the transparency of background color.
 void setForegroundColor(Color color)
          Sets the foreground Color.
 void setForegroundTransparency(float val)
          Sets the transparency of foreground color.
 void setPattern(short pattern)
          Sets an area's display pattern.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternFill

public PatternFill()
Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in class Fill

equals

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

getPattern

public short getPattern()
Gets an area's display pattern.

Returns:
an area's display pattern.
See Also:
setPattern(short)

setPattern

public void setPattern(short pattern)
Sets an area's display pattern.

Parameters:
pattern - an area's display pattern.
See Also:
FillPatternType

getBackgroundColor

public Color getBackgroundColor()
Gets the background Color.

Returns:
the background Color.

setBackgroundColor

public void setBackgroundColor(Color color)
Sets the background Color.

Parameters:
color - the background Color.

getForegroundColor

public Color getForegroundColor()
Gets the foreground Color.

Returns:
the foreground Color.

setForegroundColor

public void setForegroundColor(Color color)
Sets the foreground Color.

Parameters:
color - the foreground Color.

getBackgroundTransparency

public float getBackgroundTransparency()
Gets the transparency of background color.

Returns:
transparency, 0~1.

setBackgroundTransparency

public void setBackgroundTransparency(float val)
Sets the transparency of background color.

Parameters:
val - transparency. Can only be a value from 0 to 1.

getForegroundTransparency

public float getForegroundTransparency()
Gets the transparency of foreground color.

Returns:
transparency, 0~1.

setForegroundTransparency

public void setForegroundTransparency(float val)
Sets the transparency of foreground color.

Parameters:
val - transparency. Can only be a value from 0 to 1.