org.achartengine.chart
Class PieSegment

java.lang.Object
  extended by org.achartengine.chart.PieSegment
All Implemented Interfaces:
java.io.Serializable

public class PieSegment
extends java.lang.Object
implements java.io.Serializable

Holds An PieChart Segment

See Also:
Serialized Form

Constructor Summary
PieSegment(int dataIndex, float value, float startAngle, float angle)
           
 
Method Summary
protected  int getDataIndex()
           
protected  float getEndAngle()
           
protected  float getStartAngle()
           
protected  float getValue()
           
 boolean isInSegment(double angle)
          Checks if angle falls in segment.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PieSegment

public PieSegment(int dataIndex,
                  float value,
                  float startAngle,
                  float angle)
Method Detail

isInSegment

public boolean isInSegment(double angle)
Checks if angle falls in segment.

Parameters:
angle -
Returns:
true if in segment, false otherwise.

getStartAngle

protected float getStartAngle()

getEndAngle

protected float getEndAngle()

getDataIndex

protected int getDataIndex()

getValue

protected float getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.