|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jinsight.jetchart.Slice
This class implements the properties and methods of pie series slices. A Slice object is associated with a single value. Each slice angle is proportional to the value it represents, and the sum of all slices values is equivalent to a 360 degrees angle. The default value is zero.
PieSerie
Constructor Summary | |
Slice()
Default constructor of a Slice object. |
|
Slice(double value)
Constructor of a Slice object. |
|
Slice(double value,
java.lang.String title,
java.awt.Color color)
Constructor of a Slice object. |
Method Summary | |
protected void |
finalize()
|
java.awt.Color |
getColor()
Returns slice color. |
int |
getIndex()
Returns slice index. |
SliceLegend |
getSliceLegend()
Returns a reference to a SliceLegend object. |
double |
getValue()
Returns the Slice object value. |
void |
setColor(java.awt.Color color)
Sets slice color. |
void |
setPosition(int position)
Sets slice position. |
void |
setTitle(java.lang.String title)
Sets slice title. |
void |
setValue(double value)
Sets slice value. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Slice()
public Slice(double value)
value
- A double precision numberpublic Slice(double value, java.lang.String title, java.awt.Color color)
value
- A double precision numbertitle
- The slice title as a String objectcolor
- The slice color as a Color object. Default
color is Color.lightGray.Method Detail |
public void setValue(double value)
value
- A double precision numberpublic void setTitle(java.lang.String title)
title
- A String objectpublic void setColor(java.awt.Color color)
color
- A Color object.public void setPosition(int position)
position
- An integer number equal to or greater than zero.public SliceLegend getSliceLegend()
SliceLegend
public java.awt.Color getColor()
public int getIndex()
public double getValue()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |