public class PieSegment extends Object
| Constructor and Description |
|---|
PieSegment(int dataIndex,
float value,
float startAngle,
float angle) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDataIndex() |
protected float |
getEndAngle() |
Shape |
getShape(float cX,
float cY,
float radius) |
protected float |
getStartAngle() |
protected float |
getValue() |
boolean |
isInSegment(double angle)
Checks if angle falls in segment.
|
String |
toString()
Returns a string representation of the object.
|
public PieSegment(int dataIndex,
float value,
float startAngle,
float angle)
public boolean isInSegment(double angle)
angle - protected float getStartAngle()
protected float getEndAngle()
protected int getDataIndex()
protected float getValue()
public String toString()
Objectpublic Shape getShape(float cX, float cY, float radius)