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() |
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 Shape getShape(float cX, float cY, float radius)
Copyright © 2021. All rights reserved.