Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class ShapeFill

java.lang.Object
  extended by com.aspose.cells.ShapeFill

public class ShapeFill
extends java.lang.Object

Encapsulates the object that contains fill formatting properties for the specified shape.


Method Summary
 Color getColor()
          Gets the fill color of the shape.
 int getTransparence()
          Gets the degree of transparency of the specified fill as a value from 0 (opaque) through 100 (clear).
 boolean isVisible()
          Indicates whether shape is filled.
 void setColor(Color color)
          Sets the fill color of the shape.
 void setTransparence(int transparence)
          Sets the degree of transparency of the specified fill as a value from 0 (opaque) through 100 (clear).
 void setVisible(boolean visible)
          Sets whether shape is filled.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isVisible

public boolean isVisible()
Indicates whether shape is filled.

Returns:
whether shape is filled.

setVisible

public void setVisible(boolean visible)
Sets whether shape is filled.

Parameters:
visible - whether shape is filled.

getTransparence

public int getTransparence()
Gets the degree of transparency of the specified fill as a value from 0 (opaque) through 100 (clear).

Returns:
the degree of transparency of the specified fill.

setTransparence

public void setTransparence(int transparence)
Sets the degree of transparency of the specified fill as a value from 0 (opaque) through 100 (clear).

Parameters:
transparence - the degree of transparency of the specified fill.
Throws:
java.lang.IllegalArgumentException

getColor

public Color getColor()
Gets the fill color of the shape.

Returns:
the fill color of the shape.

setColor

public void setColor(Color color)
Sets the fill color of the shape.

Parameters:
color - the fill color of the shape.