public class ChartSeriesHandle extends Object
ChartHandle| Constructor and Description |
|---|
ChartSeriesHandle(Series series,
WorkBookHandle wbk)
Constructor, used internally.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBubbleSizes()
returns the Cell Range String representing Bubble Size for this Series (Bubble Charts only)
|
int |
getCategoryDataType()
gets the Chart Category Data Type
|
String |
getCategoryRange()
returns the Cell Range String representing the Categories (usually the X Axis) for the Chart
Note that Category typically stays constant for all Series in the Chart |
int |
getPieChartSliceColor(int slice)
Deprecated.
See getPieChartSliceColorStr
|
String |
getPieChartSliceColorStr(int slice)
returns the desired Pie chart slice color hex string
|
int |
getSeriesColor()
Deprecated.
|
String |
getSeriesColorStr()
returns the Series (bar or line) color hex string
NOTE: for Pie charts, use getPieChartSliceColor |
int |
getSeriesDataType()
gets the Series Data Type
|
String |
getSeriesLegend()
returns the Legend text for this Series
|
String |
getSeriesLegendReference()
returns the Legend Cell Reference, if any
|
String |
getSeriesRange()
returns the Cell Range String representing the Data in this Series Object.
|
int |
getShape()
returns a constant that represents the bar shape for this Series
This is an internal method that is not useful to the end user. |
boolean |
hasBubbleSizes()
returns true if this chart has Bubble Sizes
|
void |
setBubbleRange(String bubbleSizes)
set the Cell Range for the Bubbles in this Seeries (Bubble Chart Only)
|
void |
setCategoryDataType(int i)
sets the Chart Category Data Type
|
void |
setCategoryRange(String categoryRange)
sets the Category from a new Cell Range.
|
void |
setPieChartSliceColor(int clr,
int slice)
sets the color for a particular Pie Chart slice or wedge
|
void |
setSeries(String legendRef,
String series,
String cat,
String bubble)
defines this Series with Cell References for the Legend, Data Points, Category and Bubble Sizes,
if applicable.
|
void |
setSeriesColor(int clr)
sets the color for this Series (bar or line)
NOTE: for Pie Charts, use setPieChartSliceColor |
void |
setSeriesColor(int seriesNumber,
int clr)
Deprecated.
use setSeriesColor(int clr) instead
|
void |
setSeriesColor(String clr)
sets the color for this Series (bar or line)
NOTE: for Pie Charts, use setPieChartSliceColor |
void |
setSeriesDataType(int i)
sets the Series Data Type
|
void |
setSeriesLegend(String legend)
Set the Legend text for this Series
note: series legend will then not be linked to a particular cell. |
void |
setSeriesLegendRef(String legendCell)
sets Cell Address for the Series Legend
|
void |
setSeriesRange(String seriesRange)
sets the data for this Series to be obtained from a new Cell Range.
|
void |
setShape(int shape)
sets the constant that represents the bar shape for this Series
This is an internal method that is not useful to the end user. |
public ChartSeriesHandle(Series series, WorkBookHandle wbk)
Series - seriesWorkBook - wbk - WorkBook the Chart is attached topublic String getSeriesRange()
public String getCategoryRange()
public String getBubbleSizes()
public boolean hasBubbleSizes()
public void setSeriesRange(String seriesRange)
String - seriesRange - a Cell Range representing Series Data e.g. Sheet1!A1:A12public void setCategoryRange(String categoryRange)
IMPORTANT! In most cases, the category should be set to the same Cell Range for all Series in the chart.
This method is available for complex charts, but in most cases the ideal way to handle this call is through
chartHandle.changeCategoryRange.
String - categoryRange - new Category Cell Rangepublic void setBubbleRange(String bubbleSizes)
String - bubbleSizes - Cell Range for Bubble Sizespublic void setSeriesLegend(String legend)
String - legend - Legend TextsetSeriesLegendRefpublic String getSeriesLegend()
getSeriesLegendReferencepublic String getSeriesLegendReference()
public void setSeriesLegendRef(String legendCell)
String - legendCell - Cell Address for Legendpublic int getCategoryDataType()
public int getSeriesDataType()
public void setCategoryDataType(int i)
int - i - Category Data Typepublic void setSeriesDataType(int i)
int - i - Series Data Typepublic int getShape()
public void setShape(int shape)
int - shape - DataPoint shape for this Series (3d Bar, Pyramid ...)public void setSeries(String legendRef, String series, String cat, String bubble)
String - legendRef - Cell Address representing the Legend for this SeriesString - series - Cell Range representing the Data Points for this SeriesString - cat - Cell Range representing the Category for this Series
(NOTE: The Category Cell Range is typically the same for every Series in the Chart)String - bubble - Cell Range representing the Bubble Sizes for this Series (Bubble Chart only) or null if nonepublic void setSeriesColor(int seriesNumber,
int clr)
int - seriesNumber - series indexint - clr - color constantsetSeriesColor(int clr)public void setSeriesColor(int clr)
int - clr - color constantsetPieChartSliceColor,
constantspublic void setSeriesColor(String clr)
String - color hex stringsetPieChartSliceColor,
constantspublic void setPieChartSliceColor(int clr,
int slice)
int - clr - color constantint - slice - 0-based slice or point numberconstantspublic int getSeriesColor()
constants,
getSeriesColorStrpublic String getSeriesColorStr()
constants,
getPieChartSliceColorpublic int getPieChartSliceColor(int slice)
int - slice - 0-based slice or wedge indexconstantspublic String getPieChartSliceColorStr(int slice)
int - slice - 0-based slice or wedge indexCopyright © 2002–2019 Starter Inc.. All rights reserved.