public class Chart extends GenericChartObject implements ChartObject
Note that all these values are split up 2 bytes integer and 2 bytes fractional
offset name size contents
---
4 x 4 x pos of upper left corner
8 y 4 y pos of upper left corner
12 dx 4 x-size
16 dy 4 y-size
notes on implementation:
Ai,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected ChartAxes |
chartaxes |
protected ArrayList<ChartType> |
chartgroup |
protected ArrayList |
chartRecs |
protected ChartSeries |
chartseries |
protected TextDisp |
charttitle |
protected Ai |
currentAi |
protected Dimensions |
dimensions |
protected boolean |
dirtyflag |
protected int |
hierarchyDepth |
protected ArrayList |
initobs |
protected boolean |
metricsDirty |
protected MSODrawing |
msodrawobj |
protected int |
nCharts |
protected Obj |
obj |
protected AbstractList |
postRecs |
protected AbstractList |
preRecs |
WorkBookHandle |
wbh |
chartArr, chartType, parentChartcol, continues, DEBUGLEVEL, hyperlink, idx, isBlank, isBoolean, isContinueMerged, isString, lastidx, myxf, offset, rw, streamer, wkbook, worksheetAREACHART, BARCHART, BUBBLECHART, COLCHART, CONEBARCHART, CONECHART, CYLINDERBARCHART, CYLINDERCHART, DOUGHNUTCHART, LINECHART, OFPIECHART, PIECHART, PYRAMIDBARCHART, PYRAMIDCHART, RADARAREACHART, RADARCHART, SCATTERCHART, SHAPECOLUMN, SHAPECONE, SHAPECONETOMAX, SHAPECYLINDER, SHAPEDEFAULT, SHAPEPYRAMID, SHAPEPYRAMIDTOMAX, STOCKCHART, SURFACECHART, XAXIS, XVALAXIS, YAXIS, ZAXISAI, ALLOWDUPES, ALRUNS, AREA, AREAFORMAT, ARRAY, ATTACHEDLABEL, AUTOFILTER, AXCENT, AXESUSED, AXIS, AXISLINEFORMAT, AXISPARENT, BACKUP, BAR, BEGIN, BLANK, BOF, BOOKBOOL, BOOLERR, BOPPOP, BOPPOPCUSTOM, BOTTOM_MARGIN, BOTTOMMARGIN, BOUNDSHEET, CALC_MODE_PROP, CALCCOUNT, CALCMODE, CALCULATE_ALWAYS, CALCULATE_AUTO, CALCULATE_EXPLICIT, CATLAB, CATSERRANGE, CF, CF12, CHART, CHART3DBARSHAPE, CHARTFORMAT, CHARTFORMATLINK, CHARTFRTINFO, CHARTLINE, CODENAME, COLINFO, CONDFMT, CONDFMT12, CONTINUE, COUNTRY, CRN, CRTLAYOUT12, CRTLAYOUT12A, DAT, DATAFORMAT, DATALABEXT, DATALABEXTCONTENTS, DATE1904, DBCELL, DCON, DCONBIN, DCONNAME, DCONREF, DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM, DEFAULTENCODING, DEFAULTROWHEIGHT, DEFAULTTEXT, DEFCOLWIDTH, DELTA, DIMENSIONS, DROPBAR, DSF, DV, DVAL, END, ENDBLOCK, ENDEXTSST, ENDOBJECT, EOF, EXCEL2K, EXTERNCOUNT, EXTERNNAME, EXTERNSHEET, EXTSST, FBI, FEATHEADR, FILE_LOCK, FILEPASS, FONT, FONTBASIS, FONTX, FOOTERREC, FORMAT, FORMULA, FRAME, FRTFONTLIST, FRTWRAPPER, GARBAGE, GELFRAME, GUTS, HCENTER, HEADERREC, HLINK, HORIZONTAL_PAGE_BREAKS, IFMT, INDEX, INTERFACE_HDR, ITERATION, LABEL, LABELSST, LEFT_MARGIN, LEFTMARGIN, LEGEND, LEGENDXN, LINE, LINEFORMAT, MARKERFORMAT, MAXCOLS, MAXCOLS_BIFF8, MAXRECLEN, MAXROWS, MAXROWS_BIFF8, MERGEDCELLS, MSODRAWING, MSODRAWINGGROUP, MSODRAWINGSELECTION, MULBLANK, MULRK, NAME, NOTE, NUMBER, OBJ, OBJECTLINK, OBJPROTECT, OBPROJ, PALETTE, PANE, PASSWORD, PHONETIC, PICF, PIE, PIEFORMAT, PIVOTCHARTBITS, PIVOTCHARTLINK, PLOTAREA, PLOTGROWTH, PLS, PLV, POS, PRECISION, PRINT_GRIDLINES, PRINT_ROW_HEADERS, PRINTGRID, PRINTROWCOL, PROT4REV, PROTECT, QSISXTAG, RADAR, RADARAREA, RANGEPROTECTION, REFMODE, REFTRACK_PROP, RIGHT_MARGIN, RIGHTMARGIN, RK, ROW, RRD_HEAD, RRD_INFO, RSTRING, RTENTEXU, RTMERGECELLS, SBASEREF, SCATTER, SCENPROTECT, SCL, SELECTION, SERAUXERRBAR, SERAUXTREND, SERFMT, SERIES, SERIESLIST, SERIESTEXT, SERPARENT, SERTOCRT, SETUP, SHAREDUPES, SHEETLAYOUT, SHEETPROTECTION, SHRFMLA, SHTPROPS, SIIINDEX, SST, STARTBLOCK, STARTOBJECT, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE, STRINGREC, STYLE, SUPBOOK, SURFACE, SXADDL, SXBOOL, SXDB, SXDBB, SXDBEX, SXDI, SXEX, SXFDB, SXFDBTYPE, SXFORMAT, SXIVD, SXLI, SXNUM, SXPI, SXSTREAMID, SXSTRING, SXVD, SXVDEX, SXVI, SXVIEW, SXVIEWEX9, SXVIEWLINK, SXVS, TABID, TABLE, TABLESTYLES, TEXTDISP, THREED, TICK, TOP_MARGIN, TOPMARGIN, TXO, TYPE_BLANK, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_FORMULA, TYPE_FP, TYPE_INT, TYPE_STRING, UNICODEENCODING, UNITS, USERBVIEW, USERSVIEWBEGIN, USERSVIEWEND, USETEMPFILE_PROP, USR_EXCL, VALIDATEWORKBOOK, VALUERANGE, VB_MODULE, VCENTER, VERTICAL_PAGE_BREAKS, WINDOW_PROTECT, WINDOW1, WINDOW2, WK_CHART, WK_FILE, WK_GLOBALS, WK_MACROSHEET, WK_WORKSHEET, WSBOOL, XCT, XF, XLS_MAX_COLS, YMULT| Constructor and Description |
|---|
Chart() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChartType(ChartType ct,
int nChart)
adds a new Chart Type to the group of Chart Type Objects, or replaces one at existing index
|
boolean |
addInitialChartRecord(BiffRec br)
Adds chart records to the chartRecs array.
|
Series |
addSeries(String seriesRange,
String categoryRange,
String bubbleRange,
String legendRange,
String legendText,
int nChart)
Add a series object to the array.
|
List |
assembleChartRecords()
put together the chart records for output to the streamer
|
boolean |
changeCategoryRange(String originalrange,
String newrange) |
boolean |
changeSeriesRange(String originalrange,
String newrange)
Change series ranges for ALL matching series
|
boolean |
changeTextValue(String originalval,
String newval) |
static BiffRec |
findRec(ArrayList chartArr,
Class c)
generic method to find a specific record in the list of recs in chartarr
|
static int |
findRecPosition(ArrayList chartArr,
Class c)
generic method to find a specific record in the list of recs in chartArr
|
int[] |
getAllChartTypes()
returns an array of all chart types found in this chart
0= default, 1-9 (max) are overlay charts
|
Vector |
getAllSeries()
get all the series objects for ALL charts
(i.e.
|
Vector |
getAllSeries(int nChart)
get all the series objects in the specified chart (-1 for ALL)
|
ChartAxes |
getAxes()
Return the Chart Axes object
|
boolean |
getAxisAutomaticScale()
Returns true if the Y Axis (Value axis) is set to automatic scale
|
short[] |
getBounds()
return bounds relative to row/cols including their respective offsets
|
String[] |
getCategories(int nChart)
Return an array of strings, one for each category
|
byte[] |
getChartBytes()
Returns a serialized copy of this Chart
|
String |
getChartFontRecsXML()
Return all the Chart-specific font recs in XML form
These include the default fonts + title font + axis fonts ...
|
String |
getChartFontsXML()
return the fontid for non-axis chart fonts (title, default ...)
|
ChartType |
getChartObject()
return the default Chart Object associated with this chart
|
ChartType |
getChartObject(int nChart)
return the nth Chart Object associated with this chart (default=0, overlay=1 thru 9)
|
protected ChartFormat |
getChartOjectParent(int nChart)
retrieves the parent of the chart type object (==ChartFormat) at index nChart, or creates a new Chart Type Parent
|
String |
getChartOption(String op)
get the value of *almost* any chart option (axis options are in Axis)
for the default chart
|
String |
getChartOptionsXML(int nChart)
return chart-type-specific options in XML form
|
int |
getChartOrder(ChartType ct)
gets the integral order of the specific chart obect in question
|
ChartSeries |
getChartSeries()
return the Chart Series object
|
int |
getChartType()
returns the chart type for the default chart
|
int |
getChartType(int nChart)
returns the chart type for the desired chart
|
int |
getCol0()
return the left col of the chart
|
short |
getColOffset()
returns the offset within the column in pixels
|
short[] |
getCoords()
return int[4] representing the coordinates (L, T, W, H) of this chart in pixels
|
protected int |
getDataLabel()
return the default data label setting for the chart, if any
NOTE: each series can override the default data label fo the chart can be one or more of: VALUELABEL= 0x1; VALUEPERCENT= 0x2; CATEGORYPERCENT= 0x4; CATEGORYLABEL= 0x10; BUBBLELABEL= 0x20; SERIESLABEL= 0x40; |
protected int[] |
getDataLabelsPerSeries(int defaultDL)
return data label options for each series as an int array
each can be one or more of: VALUELABEL= 0x1; VALUEPERCENT= 0x2; CATEGORYPERCENT= 0x4; CATEGORYLABEL= 0x10; BUBBLELABEL= 0x20; SERIESLABEL= 0x40; |
Font |
getDefaultFont()
return the default font for the chart
|
ArrayList |
getFontxRecs()
Get all of the Fontx records in this chart.
|
int |
getHeight()
return the height of this chart
|
int |
getId()
returns the unique Obj Id # of this chart as seen in Vb macros et.
|
Legend |
getLegend()
return the Data Legend for this chart, if any
|
String[] |
getLegends(int nChart)
return an array of legend text
|
protected int[] |
getMarkerFormats(int nChart)
return an array of the type of markers for each series:
0 = no marker 1 = square 2 = diamond 3 = triangle 4 = X 5 = star 6 = Dow-Jones 7 = standard deviation 8 = circle 9 = plus sign |
int |
getMaxCol() |
int |
getMaxRow() |
HashMap |
getMetrics(WorkBookHandle wbh) |
int |
getMinCol() |
double[] |
getMinMax(WorkBookHandle wbh)
returns the minimum and maximum values by examining all series on the chart
|
int |
getMinRow()
Dimensions rec holds the datarange for the chart; must update ...
|
MSODrawing |
getMsodrawobj() |
int |
getNumberOfCharts()
returns the number of charts in this chart -
1= default, can have up to 9 overlay charts as well
|
Obj |
getObj() |
String |
getPlotAreaBgColor()
returns the plot area background color string (hex)
|
float[] |
getPlotAreaCoords(float w,
float h)
return the coordinates of the outer plot area (plot + axes + labels) in pixels
|
String |
getPlotAreaLnColor()
returns the plot area line color string (hex)
|
int |
getRow0()
return the top row of the chart
|
byte[] |
getSerialBytes() |
String[] |
getSeries(int nChart)
Return a string representing all series in this chart
|
Series |
getSeries(String seriesName,
int nChart)
get a chart series handle based off the series name
|
org.json.JSONArray |
getSeriesJSON()
retrieve the current Series JSON for comparisons
|
HashMap |
getSeriesPtgs()
Returns a map of series ==> series ptgs
Ranges can either be in the format "C5" or "Sheet1!C4:D9"
|
ThreeD |
getThreeDRec(int nChart)
return the 3d rec for this chart or null if it doesn't exist
|
String |
getThreeDXML()
return ThreeD settings for this chart in XML form
|
String |
getThreeDXML(int nChart)
return ThreeD settings for this chart in XML form
|
String |
getTitle()
Get the title of the Chart
|
Font |
getTitleFont()
return the font associated with the chart title
|
TextDisp |
getTitleTd()
return the title TextDisp element
|
List |
getXLSrecs()
Gets the records for the chart, including the global references, ie the MSODrawing and Obj records
|
boolean |
hasDataLegend()
return truth if Chart has a data legend key showing
|
boolean |
hasMarkers(int nChart)
returns true if this chart has data markers (line, scatter and radar charts only)
|
void |
init()
perform record initialization
|
void |
initChartRecords()
Take the initial array of records for the chart, and create a
hierarchial array of objects for the chart.
|
ThreeD |
initThreeD()
returns the 3d record of the desired chart
|
ThreeD |
initThreeD(int nChart,
int chartType)
returns the 3d record of the desired chart
|
boolean |
is100PercentStacked()
return truth of "Chart is 100% Stacked"
|
boolean |
is100PercentStacked(int nChart)
return truth of "Chart is 100% Stacked"
|
boolean |
isClustered() |
boolean |
isClustered(int nChart) |
boolean |
isStacked() |
boolean |
isStacked(int nChart) |
boolean |
isThreeD() |
boolean |
isThreeD(int nChart) |
void |
populateForTransfer()
Utilized by external chart copy, this
sets references internally in this chart which allows cross-workbook
identification of worksheets
to occur.
|
void |
removeLegend()
remove the legend from the chart
|
void |
removeSeries(int index)
specialty method to take absoulte index of series and remove it
only used in WorkSheetHandle |
void |
removeSeries(Series seriestodelete)
remove desired series from chart
|
void |
resetFonts()
resets all fonts in the chart to the default font of the workbook Useful
for OOXML charts which are based upon default chart
|
void |
setBounds(short[] bounds)
set the bounds relative to row/col and their offsets into them
|
void |
setChartFont(String type,
String val)
Set the specific chart font (title, default ...)
NOTE: Axis fonts are handled separately
|
boolean |
setChartOption(String op,
String val)
interface for setting chart-type-specific options
in a generic fashion
|
boolean |
setChartOption(String op,
String val,
int nChart)
interface for setting chart-type-specific options
in a generic fashion
|
void |
setChartType(int chartType,
int nChart,
EnumSet<ChartHandle.ChartOptions> options)
changes this chart to be a specific chart type with specific display options
for multiple charts, specify nChart 1-9, for the default chart, nChart= 0 |
void |
setCoords(short[] coords)
set the coordinates of ths chart in pixels
|
void |
setDefaultFont(int type,
int fontId)
Set the default font for the specific DefaultText rec
|
void |
setDimensions(Dimensions d) |
void |
setDimensionsRecord() |
void |
setDimensionsRecord(int r0,
int r1,
int c0,
int c1) |
void |
setDirtyFlag(boolean b) |
void |
setHeight(int h)
set the height of this chart
|
void |
setId(int id)
sets the unique id # for this chart
used upon addChart
|
void |
setMetricsDirty()
flags chart metrics should
to be recalculated
|
void |
setPlotAreaBgColor(int bg)
sets the plot area background color
|
void |
setPreRecords(AbstractList recs)
This handles setting the records external to, but supporting the chart object hierarchy.
|
void |
setRow(int r)
set the top row for this chart
|
void |
setSeriesJSON(org.json.JSONArray s)
set the current Series JSON
|
void |
setSheet(Sheet b)
set the sheet for this chart plus its subrecords as well
|
void |
setTitle(String str)
Set the title of the Chart
|
void |
setTitleFont(int fontId)
set the fontId for the chart title rec
|
void |
setVaryColor(boolean vary,
int nChart)
sets bar colors to vary or not
|
void |
showDataTable(boolean bShow)
Show or remove Data Table for Chart
NOTE: METHOD IS STILL EXPERIMENTAL
|
void |
showLegend(boolean bShow,
boolean vertical)
show or hide chart legend key
|
String |
toString()
return the textdisp object that defines the chart title
|
void |
updateSheetRefs(String newSheetName,
String origWorkBook)
update Sheet References contained in associated Series/Category Ai's
using saved Original Sheet References
|
void |
writeChartRecs(String fName) |
addChartRecord, close, getChartRecords, getOptionsXML, getParentChart, getRecordArray, getScript, hasShadow, is100Percent, setIs100Percent, setIsStacked, setParentChartaddContinue, clone, copyFormat, getBooleanVal, getByteAt, getByteReader, getBytes, getBytesAt, getCellAddress, getCellAddressWithSheet, getCellType, getColNumber, getColorTable, getContinueVect, getData, getDataType, getDblVal, getDefaultVal, getEncryptedByteReader, getFirstBlock, getFloatVal, getFont, getFormatPattern, getFormulaRec, getHyperlink, getInternalVal, getIntLocation, getIntVal, getIxfe, getLastBlock, getLength, getMergeRange, getOffset, getOpcode, getPrototype, getRealRecordIndex, getRecDesc, getRecordIndex, getRow, getRowNumber, getSheet, getStreamer, getStringVal, getStringVal, getWorkBook, getXfRec, hasContinues, initRowCol, isFormula, isNumber, isReadOnly, isValueForCell, mergeContinues, postStream, preStream, remove, removeContinues, resetCacheBytes, setBooleanVal, setByteReader, setCol, setData, setDebugLevel, setDoubleVal, setEncryptedByteReader, setFirstBlock, setFloatVal, setHyperlink, setIndex, setIntVal, setIsValueForCell, setIxfe, setLastBlock, setLength, setMergeRange, setOffset, setOpcode, setRow, setRowCol, setRowNumber, setStreamer, setStringVal, setValueForCell, setWorkBook, setXFRecord, setXFRecord, shouldEncrypt, toHexDumpequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChartRecord, getChartRecords, getParentChart, getRecordArray, setParentChartprotected int nCharts
protected ChartAxes chartaxes
protected ChartSeries chartseries
protected TextDisp charttitle
protected Dimensions dimensions
protected Obj obj
protected MSODrawing msodrawobj
public transient WorkBookHandle wbh
protected ArrayList chartRecs
protected AbstractList preRecs
protected AbstractList postRecs
protected boolean dirtyflag
protected boolean metricsDirty
protected Ai currentAi
protected int hierarchyDepth
protected ArrayList initobs
public void init()
XLSRecordpublic boolean addInitialChartRecord(BiffRec br)
br - - a chart recordpublic void setDirtyFlag(boolean b)
public void initChartRecords()
public List assembleChartRecords()
public void setPreRecords(AbstractList recs)
recs - public HashMap getSeriesPtgs()
public byte[] getChartBytes()
public byte[] getSerialBytes()
public List getXLSrecs()
public int getMinRow()
public int getMaxRow()
public int getMinCol()
public int getMaxCol()
public void setDimensionsRecord(int r0,
int r1,
int c0,
int c1)
public void setDimensions(Dimensions d)
public void setDimensionsRecord()
public int getId()
public void setId(int id)
id - public void setMetricsDirty()
public boolean changeSeriesRange(String originalrange, String newrange)
originalrange - newrange - public String[] getSeries(int nChart)
nChart - 0=default, 1-9= overlay charts -1 for ALL chartspublic String[] getCategories(int nChart)
nChart - 0=default, 1-9= overlay charts -1 for Allpublic Vector getAllSeries()
public Vector getAllSeries(int nChart)
nChart - 0=default, 1-9= overlay charts -1 for ALL seriespublic Series addSeries(String seriesRange, String categoryRange, String bubbleRange, String legendRange, String legendText, int nChart)
seriesRange - = one row range, expressed as (Sheet1!A1:A12);categoryRange - = category rangebubbleRange= - bubble range, if any 20070731 KSCseriesText - = label for the series;nChart - 0=default, 1-9= overlay charts
s * @returnpublic String[] getLegends(int nChart)
nChart - 0=default, 1-9= overlay charts -1 for ALLpublic void removeSeries(int index)
index - public void removeSeries(Series seriestodelete)
index - public Series getSeries(String seriesName, int nChart)
seriesName - nChart - 0=default, 1-9= overlay chartspublic boolean changeCategoryRange(String originalrange, String newrange)
originalrange - newrange - public String getPlotAreaBgColor()
public void setPlotAreaBgColor(int bg)
bg - color intpublic String getPlotAreaLnColor()
public String getTitle()
public TextDisp getTitleTd()
public String toString()
public Font getDefaultFont()
public void setDefaultFont(int type,
int fontId)
type - fontId - public ArrayList getFontxRecs()
public void resetFonts()
public Font getTitleFont()
public void populateForTransfer()
public void updateSheetRefs(String newSheetName, String origWorkBook)
public void setTitle(String str)
str - title of the Chartpublic int getChartType()
public int getChartType(int nChart)
nChart - 0=default, 1-9= overlay chartspublic int[] getAllChartTypes()
public int getNumberOfCharts()
public ChartType getChartObject()
public ChartType getChartObject(int nChart)
public int getChartOrder(ChartType ct)
ct - Chart Type rwobjectprotected void addChartType(ChartType ct, int nChart)
ct - Chart Type ObjectnChart - indexprotected ChartFormat getChartOjectParent(int nChart)
nChart - public void setChartType(int chartType,
int nChart,
EnumSet<ChartHandle.ChartOptions> options)
chartType - chart type one of: BARCHART, LINECHART, AREACHART, COLCHART, PIECHART,
DONUGHTCHART, RADARCHART, RADARAREACHART, PYRAMIDCHART, CONECHART, CYLINDERCHART,
SURFACTCHARTnChart - chart # 0 is defaultEnumSet - 0 or more chart options (Such as Stacked, Exploded ...)ChartHandle.ChartOptionspublic boolean isThreeD()
public boolean isThreeD(int nChart)
nChart - 0=default, 1-9= overlay chartspublic ThreeD getThreeDRec(int nChart)
nChart - 0=default, 1-9= overlay chartspublic boolean isStacked()
isStacked in class GenericChartObjectpublic boolean isStacked(int nChart)
nChart - 0=default, 1-9= overlay chartspublic boolean is100PercentStacked()
public boolean is100PercentStacked(int nChart)
nChart - 0=default, 1-9= overlay chartspublic boolean isClustered()
public boolean isClustered(int nChart)
nChart - 0=default, 1-9= overlay chartspublic String getChartOptionsXML(int nChart)
nChart - 0=default, 1-9= overlay chartspublic boolean setChartOption(String op, String val)
setChartOption in class GenericChartObjectop - optionval - valueOpenXLS.handleChartElement,
ChartHandle.getXMLpublic boolean setChartOption(String op, String val, int nChart)
op - optionval - valuenChart - 0=default, 1-9= overlay chartsOpenXLS.handleChartElement,
ChartHandle.getXMLpublic String getChartOption(String op)
getChartOption in class GenericChartObjectop - String option e.g. Shadow or Percentagepublic String getThreeDXML()
public String getThreeDXML(int nChart)
nChart - 0=default, 1-9= overlay chartspublic ThreeD initThreeD()
nChart - 0=default, 1-9= overlay chartspublic ThreeD initThreeD(int nChart, int chartType)
nChart - 0=default, 1-9= overlay chartschartType - one of the chart type constantspublic ChartAxes getAxes()
public ChartSeries getChartSeries()
public boolean getAxisAutomaticScale()
The default setting for charts is known as Automatic Scaling
When data changes, the chart automatically adjusts the scale (minimum, maximum values
plus major and minor tick units) as necessary
getAxisAutomaticScale(int axisType)public double[] getMinMax(WorkBookHandle wbh)
bk - public String getChartFontRecsXML()
public String getChartFontsXML()
public void setChartFont(String type, String val)
type - val - Axis.setChartOption, TextDisp.setChartOptionpublic void setTitleFont(int fontId)
fontId - public void writeChartRecs(String fName)
public void setSheet(Sheet b)
public short[] getCoords()
public float[] getPlotAreaCoords(float w,
float h)
public void setCoords(short[] coords)
coords - int[4]: L, T, W, Hpublic short[] getBounds()
public short getColOffset()
public void setBounds(short[] bounds)
bounds - short[]public int getRow0()
public void setRow(int r)
r - public int getCol0()
public int getHeight()
public void setHeight(int h)
h - public org.json.JSONArray getSeriesJSON()
public void setSeriesJSON(org.json.JSONArray s)
throws org.json.JSONException
s - JSONArrayorg.json.JSONExceptionpublic void showDataTable(boolean bShow)
bShow - public void showLegend(boolean bShow,
boolean vertical)
bShow - boolean show or hidevertical - boolean show as vertical or horizontalpublic void removeLegend()
public Legend getLegend()
protected int getDataLabel()
protected int[] getDataLabelsPerSeries(int defaultDL)
AttachedLabelprotected int[] getMarkerFormats(int nChart)
public boolean hasMarkers(int nChart)
public boolean hasDataLegend()
public MSODrawing getMsodrawobj()
public Obj getObj()
public void setVaryColor(boolean vary,
int nChart)
vary - nChart - public static BiffRec findRec(ArrayList chartArr, Class c)
chartArr - c - class of record to findpublic static int findRecPosition(ArrayList chartArr, Class c)
c - class of record to findpublic HashMap getMetrics(WorkBookHandle wbh)
Copyright © 2002–2019 Starter Inc.. All rights reserved.