com.sencha.gxt.chart.client.chart.series
Class Slice

java.lang.Object
  extended by com.sencha.gxt.chart.client.chart.series.Slice

public class Slice
extends Object

Class that represents a pie slice in a series.


Constructor Summary
Slice(double value, double startAngle, double endAngle, double rho)
          Creates a slice.
Slice(Slice slice)
          Creates a copy of the given slice.
 
Method Summary
 double getEndAngle()
          Returns the ending angle of the slice.
 double getEndRho()
          Returns the ending point radius of the slice.
 double getMargin()
          Returns the margin of the slice.
 double getRho()
          Returns the radius of the slice.
 double getStartAngle()
          Returns the starting angle of the slice.
 double getStartRho()
          Returns the starting point radius of the slice.
 double getValue()
          Returns the value associated with the slice.
 void setEndAngle(double endAngle)
          Sets the ending angle of the slice.
 void setEndRho(double endRho)
          Sets the ending point radius of the slice.
 void setMargin(double margin)
          Sets the margin of the slice.
 void setRho(double rho)
          Sets the radius of the slice.
 void setStartAngle(double startAngle)
          Sets the starting angle of the slice.
 void setStartRho(double startRho)
          Sets the ending point radius of the slice.
 void setValue(double value)
          Sets the value associated with this slice.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Slice

public Slice(double value,
             double startAngle,
             double endAngle,
             double rho)
Creates a slice.

Parameters:
value - the value associated with the slice
startAngle - the starting angle of the slice
endAngle - the ending angle of the slice
rho - the radius of the slice

Slice

public Slice(Slice slice)
Creates a copy of the given slice.

Parameters:
slice - the slice to be copied
Method Detail

getEndAngle

public double getEndAngle()
Returns the ending angle of the slice.

Returns:
the ending angle of the slice

getEndRho

public double getEndRho()
Returns the ending point radius of the slice.

Returns:
the ending point radius of the slice

getMargin

public double getMargin()
Returns the margin of the slice.

Returns:
the margin of the slice

getRho

public double getRho()
Returns the radius of the slice.

Returns:
the radius of the slice

getStartAngle

public double getStartAngle()
Returns the starting angle of the slice.

Returns:
the starting angle of the slice

getStartRho

public double getStartRho()
Returns the starting point radius of the slice.

Returns:
the starting point radius of the slice

getValue

public double getValue()
Returns the value associated with the slice.

Returns:
the value associated with the slice

setEndAngle

public void setEndAngle(double endAngle)
Sets the ending angle of the slice.

Parameters:
endAngle - the ending angle of the slice

setEndRho

public void setEndRho(double endRho)
Sets the ending point radius of the slice.

Parameters:
endRho - the ending point radius of the slice

setMargin

public void setMargin(double margin)
Sets the margin of the slice.

Parameters:
margin - the margin of the slice

setRho

public void setRho(double rho)
Sets the radius of the slice.

Parameters:
rho - the radius of the slice

setStartAngle

public void setStartAngle(double startAngle)
Sets the starting angle of the slice.

Parameters:
startAngle - the starting angle of the slice

setStartRho

public void setStartRho(double startRho)
Sets the ending point radius of the slice.

Parameters:
startRho - the ending point radius of the slice

setValue

public void setValue(double value)
Sets the value associated with this slice.

Parameters:
value - the value associated with this slice

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.