Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class GradientStop

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

public class GradientStop
extends java.lang.Object

Represents one Gradient stop for Gradient Fill.


Constructor Summary
GradientStop()
           
 
Method Summary
 boolean equals(java.lang.Object another)
           
 Color getColor()
          Gets the Color of this gradient stop.
 float getPosition()
          Gets the stop position.
 float getTransparency()
          Gets the transparency of this gradient stop.
 void setColor(Color color)
          Sets the Color of this gradient stop.
 void setPosition(float val)
          Sets the stop position.
 void setTransparency(float val)
          Sets the transparency of this gradient stop.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientStop

public GradientStop()
Method Detail

equals

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

getColor

public Color getColor()
Gets the Color of this gradient stop.

Returns:
the Color of this gradient stop.

setColor

public void setColor(Color color)
Sets the Color of this gradient stop.

Parameters:
color - the Color of this gradient stop.

getPosition

public float getPosition()
Gets the stop position.

Returns:
stop position, 0~1.

setPosition

public void setPosition(float val)
Sets the stop position.

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

getTransparency

public float getTransparency()
Gets the transparency of this gradient stop.

Returns:
transparency, 0~1.

setTransparency

public void setTransparency(float val)
Sets the transparency of this gradient stop.

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