com.sencha.gxt.chart.client.draw
Class Stop

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.Stop

public class Stop
extends Object

Represents a gradient stop.


Constructor Summary
Stop()
          Creates a stop with the default values.
Stop(int offset, Color color)
          Creates a stop using the given offset and color.
Stop(int offset, Color color, double opacity)
          Creates a stop using the given offset, color and opacity.
 
Method Summary
 Color getColor()
          Returns the color of the stop.
 int getOffset()
          Returns the offset of the stop.
 double getOpacity()
          Returns the opacity of the stop.
 void setColor(Color color)
          Sets the color of the stop.
 void setOffset(int offset)
          Sets the offset of the stop.
 void setOpacity(double opacity)
          Sets the opacity of the stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stop

public Stop()
Creates a stop with the default values.


Stop

public Stop(int offset,
            Color color)
Creates a stop using the given offset and color.

Parameters:
offset - the offset of the stop
color - the color of the stop

Stop

public Stop(int offset,
            Color color,
            double opacity)
Creates a stop using the given offset, color and opacity.

Parameters:
offset - the offset of the stop
color - the color of the stop
opacity - the opacity of the stop
Method Detail

getColor

public Color getColor()
Returns the color of the stop.

Returns:
the color of the stop

getOffset

public int getOffset()
Returns the offset of the stop.

Returns:
the offset of the stop

getOpacity

public double getOpacity()
Returns the opacity of the stop.

Returns:
the opacity of the stop

setColor

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

Parameters:
color - the color of the stop

setOffset

public void setOffset(int offset)
Sets the offset of the stop.

Parameters:
offset - the offset of the stop

setOpacity

public void setOpacity(double opacity)
Sets the opacity of the stop

Parameters:
opacity - the opacity of the stop


Copyright © 2011. All Rights Reserved.