|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.report.xls.ChartTypeInfo jet.report.xls.PieInfo
public class PieInfo
Contains the information of pie chart type in the file. The class extends chartTypeInfo.
Field Summary | |
---|---|
static short |
NORMAL
not show leader line |
static short |
SHOWLDRLINES
show the leader line |
Fields inherited from class jet.report.xls.ChartTypeInfo |
---|
AREA, BAR, BAR_AREA, BAR_LINE, BOPPOP, COLUMN, CONE, CYLINDER, DROPBAR, LINE, LINE_LINE, PIE, PYRAMID, RADAR, SCATTER, SHOWBUBBLESIZE, SHOWLABEL, SHOWLABPER, SHOWNONE, SHOWPERCENT, SHOWVALUE, STOCK, SURFACE |
Constructor Summary | |
---|---|
PieInfo(boolean is3D,
Info3D info3D,
short style,
short explodedPercent)
Constructs a PieInfo object with these parameters |
|
PieInfo(short dataLabel,
boolean is3D,
Info3D info3D,
short style,
short explodedPercent)
Deprecated. please use @see #PieInfo(boolean, Info3D, short, short) Note: The dataLabel parameter does not take affect. |
Method Summary | |
---|---|
short |
getAnStart()
Gets the angle of the first pie slice expressed in degrees. |
int |
getChartType()
Gets the type of the chart. |
short |
getDataLabel()
Gets the type of chart data label. |
short |
getExplodedPercent()
Gets the distance of pie slice from center of pie. |
short |
getPcDonut()
Gets the size of the center hole in a donut chart. |
short |
getStyle()
Gets the style of the pie chart. |
boolean |
hasShadow()
Gets whether this pie has a shadow or not. |
void |
setAnstart(short anStart)
Sets the angle of the first pie slice expressed in degrees. |
void |
setExplodedPercent(short explodedPercent)
Sets the distance of pie slice from center of pie. |
void |
setHasShadow(boolean b)
Sets whether this pie has a shadow or not. |
void |
setPcDonut(short pcDonut)
Sets the size of the center hole in a donut chart. |
void |
setShowCategoryName(boolean isShowCategory)
Sets the flag which specifies whether to show the category or not. |
void |
setShowPercent(boolean isShowPercent)
Sets the flag which specifies whether to show the percentage or not. |
void |
setShowSeriesName(boolean isShowSeries)
Sets the flag which specifies whether to show the series name or not. |
void |
setShowValue(boolean isShowValue)
Sets the flag which specifies whether to show the value or not. |
void |
setStyle(short style)
Sets the style of the pie chart. |
Methods inherited from class jet.report.xls.ChartTypeInfo |
---|
addSeries, getCatName, getCatNameRef, getInfo3D, getIs3D, getSeries, getSeriesSize, insertSeries, removeSeries, replace, setCatName, setCatNameRef, setCatNameRef, setDataLabel, setInfo3D, setIs3D, setIsPercentDataLabel, setIsShowY2, setIsShowYAxis |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short NORMAL
public static final short SHOWLDRLINES
Constructor Detail |
---|
public PieInfo(short dataLabel, boolean is3D, Info3D info3D, short style, short explodedPercent)
PieInfo object with these parameters:
- Parameters:
dataLabel
- type of the data label, ChartTypeInfo.SHOWNONE
for none, ChartTypeInfo.SHOWVALUE
for value,
ChartTypeInfo.SHOWPERCENT
for showing percent, ChartTypeInfo.SHOWLABPER
for showing the percent and label, ChartTypeInfo.SHOWLABEL
for showing labelis3D
- whether the chart is 3D chart or notstyle
- style of pie chart, can be NORMAL or SHOWLDRLINESexplodedPercent
- distance of pie slice counting from center of pie
public PieInfo(boolean is3D, Info3D info3D, short style, short explodedPercent)
PieInfo object with these parameters
- Parameters:
is3D
- whether the chart is 3D chart or notstyle
- style of pie chart, can be NORMAL or SHOWLDRLINESexplodedPercent
- distance of pie slice from center of pie- See Also:
NORMAL
,
SHOWLDRLINES
Method Detail |
---|
public void setShowSeriesName(boolean isShowSeries)
isShowSeries
- true shows the series name as the datalabelpublic void setShowCategoryName(boolean isShowCategory)
isShowCategory
- true shows the category as the datalabelpublic void setShowValue(boolean isShowValue)
isShowValue
- true shows the value as the datalabelpublic void setShowPercent(boolean isShowPercent)
isShowPercent
- true shows the percentage as the datalabelpublic short getDataLabel()
ChartTypeInfo
ChartTypeInfo.SHOWNONE
ChartTypeInfo.SHOWVALUE
ChartTypeInfo.SHOWPERCENT
ChartTypeInfo.SHOWLABEL
ChartTypeInfo.SHOWLABPER
ChartTypeInfo.SHOWBUBBLESIZE
getDataLabel
in class ChartTypeInfo
public int getChartType()
getChartType
in class ChartTypeInfo
public short getAnStart()
public void setAnstart(short anStart)
anStart
- angle of the first pie slice expressed in degreespublic short getPcDonut()
public void setPcDonut(short pcDonut)
pcDonut
- 0=true pie chart, non-zero=size of center hole in a donut chartpublic short getStyle()
getStyle
in class ChartTypeInfo
NORMAL
,
SHOWLDRLINES
public void setStyle(short style)
style
- style of the pie chartNORMAL
,
SHOWLDRLINES
public short getExplodedPercent()
public void setExplodedPercent(short explodedPercent)
explodedPercent
- distance of pie slice from center of piepublic boolean hasShadow()
hasShadow
in class ChartTypeInfo
public void setHasShadow(boolean b)
b
- - whether this pie has a shadow or not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |