|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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| Field Summary | |
static int |
FOUR_COLUMNS
Constant used to set the layout of stacked slice legends to four columns. |
static int |
SIX_COLUMNS
Constant used to set the layout of stacked slice legends to six columns. |
static int |
TWO_COLUMNS
Constant used to set the layout of stacked slice legends to two columns. |
| 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 |
setHorizontalConnectorLength(int horizontalConnectorLength)
Sets the length of the horizontal segments of the line that connects the middle point of a slice arc to its respective slice legend. |
void |
setPercentageFormat(java.lang.String percentageFormat)
Sets the format of percentages displayed inside slice legends. |
void |
setSliceLegendMatchingColorEnabled(boolean isSliceLegendMatchingColorEnabled)
Enables/disables color matching of slices and respective legends. |
void |
setSortedSlicesEnabled(boolean isSortedSlicesEnabled)
Enables/disables sorted slices. |
void |
setStackedSliceLegendsEnabled(boolean isStackedSliceLegendsEnabled)
Enables/disables stacked slice legends. |
void |
setStackedSliceLegendsGap(int stackedSliceLegendsGap)
Sets the gap between stacked slice legends and the pie series area. |
void |
setStackedSliceLegendsLayout(int stackedSliceLegendsLayout)
Sets the column layout of stacked 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 |
addMultipleValues, addValue, 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 |
| Field Detail |
public static final int TWO_COLUMNS
public static final int FOUR_COLUMNS
public static final int SIX_COLUMNS
| Constructor Detail |
public PieSerie()
| Method Detail |
public void addSlice(Slice slice)
slice - A Slice object.Slicepublic void removeSlice(Slice slice)
slice - A Slice object.Slicepublic void removeAllSlices()
Slicepublic java.util.Vector getSlices()
Slicepublic 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 setStackedSliceLegendsEnabled(boolean isStackedSliceLegendsEnabled)
isStackedSliceLegendsEnabled - A boolean value(true/false)SliceLegend,
setStackedSliceLegendsLayout(int)public void setStackedSliceLegendsGap(int stackedSliceLegendsGap)
stackedSliceLegendsGap - An integer number, greater than or equal to zero.setStackedSliceLegendsEnabled(boolean)public void setStackedSliceLegendsLayout(int stackedSliceLegendsLayout)
stackedSliceLegendsLayout - An integer numberTWO_COLUMNS,
FOUR_COLUMNS,
SIX_COLUMNS,
setStackedSliceLegendsEnabled(boolean)public void setHorizontalConnectorLength(int horizontalConnectorLength)
horizontalConnectorLength - An integer number, greater than or equal to zero.setStackedSliceLegendsEnabled(boolean)public void setSliceLegendMatchingColorEnabled(boolean isSliceLegendMatchingColorEnabled)
isSliceLegendMatchingColorEnabled - A boolean value(true/false)Slice,
SliceLegendpublic 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 void setSortedSlicesEnabled(boolean isSortedSlicesEnabled)
isSortedSlicesEnabled - A boolean value(true/false)
public final Slice getSlice(int x,
int y)
Slice,
SerieEvent,
SerieListenerpublic 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 AbstractSerieurls - 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 AbstractSeriejava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||