|
|||||||||
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.ScatterInfo
public class ScatterInfo
Contains the information of Scatter chart type in the file. The class extends chartTypeInfo
Field Summary | |
---|---|
static short |
BUBBLES
Specifies that it is a bubble chart. |
static short |
NORMAL
Specifies that it is a scatter chart. |
static short |
SHOWNEGBUBBLES
Specifies that it is bubble chart and the data points with negative values in the chart group are shown on the chart. |
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 | |
---|---|
ScatterInfo(short dataLabel,
boolean is3D,
Info3D info3D,
short style)
Constructs class ScatterInfo and sets its fields appropriately. |
Method Summary | |
---|---|
void |
addSeries(Series2VInfo seriesInfo)
Adds a Series2VInfo into the ArrayList series for normal scatter chart. |
void |
addSeries(Series3VInfo seriesInfo)
Adds a Series3VInfo into the ArrayList series for bubbles chart. |
void |
addSeries(SeriesInfo info)
If you add a SeriesInfo into the ArrayList series, JReport will return an exception information. |
short |
getBubbleRatio()
Gets the percent of the largest bubble compared to chart in general. |
short |
getBubbleSize()
Gets bubble size: 1=bubble size is area, 2=bubble size is width. |
int |
getChartType()
Gets the type of the chart. |
short |
getStyle()
Gets the style of the scatter chart. |
boolean |
hasLine()
Gets whether the data point of scatter is connected by line or not. |
boolean |
hasShadow()
Gets whether this bubble has a shadow or not. |
void |
insertSeries(int index,
Series2VInfo info)
Inserts a Series2VInfo into the ArrayList series for normal scatter chart. |
void |
insertSeries(int index,
Series3VInfo info)
Inserts a Series3VInfo into the ArrayList series for bubbles chart. |
void |
insertSerires(int index,
SeriesInfo info)
If you insert a SeriesInfo into the ArrayList series, JReport will return an exception information. |
boolean |
isSmoothLine()
Gets whether it is smooth line or not. |
void |
setBubbleRatio(short bubbleRatio)
Sets the percent of the largest bubble compared to chart in general. |
void |
setBubbleSize(short bubbleSize)
Sets bubble size: 1=bubble size is area, 2=bubble size is width. |
void |
setHasLine(boolean hasLine)
Sets whether the data point of scatter is connected by line or not. |
void |
setHasShadow(boolean b)
Sets whether this bubble has a shadow or not. |
void |
setSmoothLine(boolean isSmoothLine)
Sets whether it is smooth line or not. |
void |
setStyle(short style)
Sets the style of the scatter chart. |
Methods inherited from class jet.report.xls.ChartTypeInfo |
---|
getCatName, getCatNameRef, getDataLabel, 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 BUBBLES
public static final short SHOWNEGBUBBLES
Constructor Detail |
---|
public ScatterInfo(short dataLabel, boolean is3D, Info3D info3D, short style)
dataLabel
- type of the data label, ChartTypeInfo.SHOWNONE
for none, ChartTypeInfo.SHOWVALUE
for value,
ChartTypeInfo.SHOWLABEL
for showing label, ChartTypeInfo.SHOWBUBBLESIZE
for showing bubble size.is3D
- whether the chart is 3D chart or notinfo3D
- the 3D chart infostyle
- style of scatter chart, can be either NORMAL, BUBBLES or SHOWNEGBUBBLESNORMAL
,
BUBBLES
,
SHOWNEGBUBBLES
Method Detail |
---|
public int getChartType()
getChartType
in class ChartTypeInfo
public short getBubbleRatio()
public void setBubbleRatio(short bubbleRatio)
bubbleRatio
- percent of the largest bubble compared to chart in generalpublic short getBubbleSize()
public void setBubbleSize(short bubbleSize)
bubbleSize
- bubble size: 1=bubble size is area, 2=bubble size is widthpublic short getStyle()
getStyle
in class ChartTypeInfo
NORMAL
,
BUBBLES
,
SHOWNEGBUBBLES
public void setStyle(short style)
style
- style of the scatter chartNORMAL
,
BUBBLES
,
SHOWNEGBUBBLES
public boolean isSmoothLine()
public void setSmoothLine(boolean isSmoothLine)
isSmoothLine
- whether it is smooth line or notpublic boolean hasLine()
public void setHasLine(boolean hasLine)
hasLine
- has line or notpublic void addSeries(Series2VInfo seriesInfo)
seriesInfo
- the Series2VInfo to be addedpublic void addSeries(Series3VInfo seriesInfo)
seriesInfo
- the Series3VInfo to be addedpublic void addSeries(SeriesInfo info)
addSeries
in class ChartTypeInfo
info
- the SeriesInfo to be addedpublic void insertSeries(int index, Series2VInfo info)
info
- the SeriesInfo to be insertedindex
- The index of the seriesInfo to be inserted into the Arraylist.public void insertSeries(int index, Series3VInfo info)
info
- the Series3VInfo to be insertedindex
- The index of the seriesInfo to be inserted into the Arraylist.public void insertSerires(int index, SeriesInfo info)
info
- the SeriesInfo to be addedpublic boolean hasShadow()
hasShadow
in class ChartTypeInfo
public void setHasShadow(boolean b)
b
- - whether this bubble has a shadow or not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |