|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jinsight.jetchart.AbstractSerie | +--com.jinsight.jetchart.PieSerie
This class paints a pie series.
A pie series is made up of a sequence of slices disposed counterclockwise.
Each slice is an object whose properties can be individually configured.
Three basic steps must be taken in order to create a pie series:
PieGraph
,
Slice
Fields inherited from class com.jinsight.jetchart.AbstractSerie |
CLIENT_SIDE, SERVER_SIDE_CERN, SERVER_SIDE_NCSA |
Constructor Summary | |
PieSerie()
Default constructor. |
Method Summary | |
void |
addSlice(Slice slice)
Adds a Slice object to a pie series. |
protected void |
finalize()
|
java.lang.String |
getSerieMap(java.lang.String[] urls,
int type,
java.lang.String target)
Creates a chart image map. |
java.lang.String |
getSerieMap(java.lang.String[] urls,
java.lang.String target,
boolean addLabels)
|
java.lang.String |
getSerieMap(java.lang.String[] urls,
java.lang.String target,
java.lang.String[] labels)
|
Slice |
getSlice(int index)
Returns a Slice object, given its index number. |
Slice |
getSlice(int x,
int y)
Returns a Slice object, given its x,y coordinates. |
java.util.Vector |
getSlices()
Returns an array with references to all Slice objects. |
void |
removeAllSlices()
Removes all Slice objects from a pie series. |
void |
removeSlice(Slice slice)
Removes a Slice object from a pie series. |
void |
set3DDepth(int pieDepth)
Sets 3D depth. |
void |
setAngleOffset(int offset)
Sets the angle offset of each Slice object. |
void |
setBorderEnabled(boolean hasBorder)
Enables/disables a border around pie chart slices. |
void |
setCircledEnabled(boolean isCircled)
Enables/disables circular pie charts. |
void |
setPercentageFormat(java.lang.String percentageFormat)
Sets the format of percentages displayed inside slice legends. |
void |
setXRadiusInset(int xRadiusInset)
Sets an inset to be added to the left and right pie chart margins. |
void |
setYRadiusInset(int yRadiusInset)
Sets an inset to be added to the top and bottom pie chart margins. |
Methods inherited from class com.jinsight.jetchart.AbstractSerie |
getId, getMultipleValues, getValues, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setMultipleValues, setSVGURLs, setToolTipContent, setToolTipEnabled, setValueFormat, setValues, setValues, setValuesQuery |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PieSerie()
Method Detail |
public void addSlice(Slice slice)
slice
- A Slice object.Slice
public void removeSlice(Slice slice)
slice
- A Slice object.Slice
public void removeAllSlices()
Slice
public java.util.Vector getSlices()
Slice
public void setXRadiusInset(int xRadiusInset)
xRadiusInset
- An integer number representing the left and right insets, in pixels.public void setYRadiusInset(int yRadiusInset)
yRadiusInset
- An integer number representing the top and bottom insets, in pixels.public void setCircledEnabled(boolean isCircled)
isCircled
- A boolean value(true/false).public void setBorderEnabled(boolean hasBorder)
hasBorder
- A boolean value(true/false).public void setPercentageFormat(java.lang.String percentageFormat)
percentageFormat
- A String objectpublic void setAngleOffset(int offset)
offset
- An integer number representing an angle offset.public void set3DDepth(int pieDepth)
pieDepth
- An integer number representing pie depth, in pixels.GenericGraph.set3DEnabled(boolean)
public final Slice getSlice(int x, int y)
Slice
,
SerieEvent
,
SerieListener
public Slice getSlice(int index)
index
- An integer number representing the slice index.Slice
public java.lang.String getSerieMap(java.lang.String[] urls, int type, java.lang.String target)
AbstractSerie
getSerieMap
in class AbstractSerie
com.jinsight.jetchart.AbstractSerie
urls
- An array of strings containing valid urls.type
- An integer representing the format type.target
- A string object.AbstractSerie.CLIENT_SIDE
,
AbstractSerie.SERVER_SIDE_NCSA
,
AbstractSerie.SERVER_SIDE_CERN
public java.lang.String getSerieMap(java.lang.String[] urls, java.lang.String target, boolean addLabels)
public java.lang.String getSerieMap(java.lang.String[] urls, java.lang.String target, java.lang.String[] labels)
protected void finalize() throws java.lang.Throwable
finalize
in class AbstractSerie
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |