|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.report.xls.ChartTypeInfo
public abstract class ChartTypeInfo
Contains the information of chart type in the file.
| Field Summary | |
|---|---|
static int |
AREA
Represents Area Chart. |
static int |
BAR
Represents Bar Chart. |
static int |
BAR_AREA
Represents bar area chart. |
static int |
BAR_LINE
Represents bar line combo chart. |
static int |
BOPPOP
Represents bar of pie chart or pie of pie chart. |
static int |
COLUMN
Represents Column Chart. |
static int |
CONE
Represents Cone Chart. |
static int |
CYLINDER
Represents Cylinder Chart. |
static int |
DROPBAR
Represents drop bar chart. |
static int |
LINE
Represents Line Chart. |
static int |
LINE_LINE
Represents line line combo chart. |
static int |
PIE
Represents Pie Chart. |
static int |
PYRAMID
Represents Pyramid Chart. |
static int |
RADAR
Represents Radar Chart. |
static int |
SCATTER
Represents Scatter Chart. |
static short |
SHOWBUBBLESIZE
Shows bubble size as the data label. |
static short |
SHOWLABEL
Shows category as the data label. |
static short |
SHOWLABPER
Shows category and percentage as the data label. |
static short |
SHOWNONE
Shows nothing about the data label. |
static short |
SHOWPERCENT
Shows percentage as the data label. |
static short |
SHOWVALUE
Shows value as the data label. |
static int |
STOCK
Represents Stock Chart. |
static int |
SURFACE
Represents Surface Chart. |
| Constructor Summary | |
|---|---|
ChartTypeInfo()
|
|
ChartTypeInfo(short dataLabel,
boolean is3D,
Info3D info3D)
Constructs class ChartTypeInfo and sets its fields appropriately. |
|
| Method Summary | |
|---|---|
void |
addSeries(SeriesInfo seriesInfo)
Adds a SeriesInfo into the ArrayList series. |
java.lang.String[] |
getCatName()
Gets the category names of chart. |
java.lang.String |
getCatNameRef()
Gets the category names reference of chart. |
abstract int |
getChartType()
Gets the type of the chart. |
short |
getDataLabel()
Gets the type of chart data label. |
Info3D |
getInfo3D()
Gets the chart 3D information. |
boolean |
getIs3D()
Gets whether the chart is 3D or not. |
SeriesInfo |
getSeries(int index)
Gets a SeriesInfo from the ArrayList series. |
int |
getSeriesSize()
Gets the size of the ArrayList series. |
abstract short |
getStyle()
Gets the style of the chart. |
abstract boolean |
hasShadow()
Gets whether the chart has shadow or not. |
void |
insertSeries(int index,
SeriesInfo seriesInfo)
Inserts a SeriesInfo into the ArrayList series. |
SeriesInfo |
removeSeries(int index)
Removes a SeriesInfo from the ArrayList series. |
void |
replace(int i,
SeriesInfo seriesInfo)
|
void |
setCatName(java.lang.String[] catName)
Sets the category names of chart. |
void |
setCatNameRef(java.lang.String catNameRef)
Sets the category names reference of chart. |
void |
setCatNameRef(java.lang.String catNameRef,
int catSize)
|
void |
setDataLabel(short dataLabel)
Sets the type of chart data label. |
void |
setInfo3D(Info3D info3D)
Sets the chart 3D information. |
void |
setIs3D(boolean is3D)
Sets whether the chart is 3D or not. |
void |
setIsPercentDataLabel(boolean firstAxisData,
boolean secondAxisData)
|
void |
setIsShowY2(boolean showy2)
|
void |
setIsShowYAxis(boolean showy1)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PIE
public static final int BAR
public static final int COLUMN
public static final int LINE
public static final int AREA
public static final int RADAR
public static final int SCATTER
public static final int SURFACE
public static final int BOPPOP
public static final int CYLINDER
public static final int CONE
public static final int PYRAMID
public static final int STOCK
public static final int DROPBAR
public static final int BAR_LINE
public static final int LINE_LINE
public static final int BAR_AREA
public static final short SHOWNONE
public static final short SHOWVALUE
public static final short SHOWPERCENT
public static final short SHOWLABPER
public static final short SHOWLABEL
public static final short SHOWBUBBLESIZE
| Constructor Detail |
|---|
public ChartTypeInfo()
public ChartTypeInfo(short dataLabel,
boolean is3D,
Info3D info3D)
dataLabel - type of the data label
SHOWNONE
SHOWVALUE
SHOWPERCENT
SHOWLABEL
SHOWLABPER
SHOWBUBBLESIZEis3D - true indicates the chart is a 3D chart| Method Detail |
|---|
public abstract int getChartType()
public abstract short getStyle()
public void setIsPercentDataLabel(boolean firstAxisData,
boolean secondAxisData)
public boolean getIs3D()
public void setIs3D(boolean is3D)
is3D - true specifies the chart is 3Dpublic Info3D getInfo3D()
public void setInfo3D(Info3D info3D)
info3D - the chart 3D informationpublic short getDataLabel()
SHOWNONE
SHOWVALUE
SHOWPERCENT
SHOWLABEL
SHOWLABPER
SHOWBUBBLESIZE
public void setDataLabel(short dataLabel)
SHOWNONE
SHOWVALUE
SHOWPERCENT
SHOWLABEL
SHOWLABPER
SHOWBUBBLESIZE
dataLabel - the type of chart data labelpublic java.lang.String[] getCatName()
public void setCatName(java.lang.String[] catName)
catName - the category names of chartpublic java.lang.String getCatNameRef()
public void setCatNameRef(java.lang.String catNameRef)
catNameRef - the category names reference of chart, such as sheet1!a1:a4 and so on
public void setCatNameRef(java.lang.String catNameRef,
int catSize)
public void addSeries(SeriesInfo seriesInfo)
seriesInfo - the SeriesInfo to be added
public void insertSeries(int index,
SeriesInfo seriesInfo)
seriesInfo - the SeriesInfo to be insertedindex - the index of the seriesInfo to be inserted into the Arraylistpublic SeriesInfo removeSeries(int index)
index - the index of the seriesInfo to be removedpublic int getSeriesSize()
public SeriesInfo getSeries(int index)
index - the index of the seriesInfo to be gottenpublic abstract boolean hasShadow()
public void replace(int i,
SeriesInfo seriesInfo)
public void setIsShowYAxis(boolean showy1)
public void setIsShowY2(boolean showy2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||