public final class Ai extends GenericChartObject implements ChartObject
Formula,
Chart,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
AI_TYPE_BUBBLE |
protected static byte[] |
AI_TYPE_CATEGORY |
protected static byte[] |
AI_TYPE_LEGEND |
protected static byte[] |
AI_TYPE_NULL_LEGEND |
protected static byte[] |
AI_TYPE_SERIES |
protected int |
cce |
protected int |
id |
protected int |
ifmt |
static int |
TYPE_BUBBLES |
static int |
TYPE_CATEGORIES |
static int |
TYPE_TEXT |
static int |
TYPE_VALS |
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 |
|---|
Ai() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeAiLocation(Ptg p,
String newLoc)
simplified version of changeAiLocation which locates current Ptg and updates expression
NOTE: newLoc is expected to be a valid reference
|
boolean |
changeAiLocation(String loc,
String newLoc)
Takes a string as a current formula location, and changes
that pointer in the formula to the new string that is sent.
|
void |
close()
clear out object references in prep for closing workbook
|
protected void |
finalize() |
String |
getBoundName()
returns the bound sheet name - must be called after populateForTransfer
|
int |
getBoundXti()
returns the sheet reference index - must call after populateForTransfer
|
Ptg[] |
getCellRangePtgs() |
String |
getDefinition()
get the definition text
the definition is stored
in Excel parsed format
|
Stack |
getExpression() |
int |
getIfmt()
return the custom number format for this AI (category, series or bubble)
if 0, use default number format as specified by Axis or Chart |
static ChartObject |
getPrototype(byte[] aiType)
Get a prototype with the specified ai types.
|
List<Ptg> |
getPtgsByLocation(String loc) |
String |
getText() |
int |
getType()
Return the type (ID) of this Ai record
|
void |
init()
perform record initialization
|
boolean |
isfCustomIfmt() |
void |
populateForTransfer(String origSheetName)
Sets the boundsheet name for the data referenced in this AI.
|
void |
setExternsheetRef(int x)
set the Externsheet reference
for any associated PtgArea3d's
|
void |
setExternsheetRef(int oldRef,
int newRef)
set the Externsheet reference
for any associated PtgArea3d's that match the old reference.
|
void |
setfCustomIfmt(boolean fCustomIfmt) |
void |
setLegend(String newLegend) |
boolean |
setLocationPolicy(String loc,
int l)
locks the Ptg at the specified location
|
void |
setRt(int i)
set reference type(0=default,1=text in formula bar, 2=worksheet, 4=error)
|
void |
setSeriesText(SeriesText s) |
boolean |
setText(String txt)
Refer to the associated Series Text.
|
String |
toString() |
void |
updateRecord() |
void |
updateSheetRef(String newSheetName,
String origWorkBookName)
take the original boundSheet + boundSheet xti reference and update it to
the sheet reference in the new workbook (or same workbook but different ixti reference)
|
addChartRecord, getChartOption, getChartRecords, getOptionsXML, getParentChart, getRecordArray, getScript, hasShadow, is100Percent, isStacked, setChartOption, 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, setSheet, setStreamer, setStringVal, setValueForCell, setWorkBook, setXFRecord, setXFRecord, shouldEncrypt, toHexDumpequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChartRecord, getChartRecords, getParentChart, getRecordArray, setParentChartprotected int id
protected int ifmt
protected int cce
public static final int TYPE_TEXT
public static final int TYPE_VALS
public static final int TYPE_CATEGORIES
public static final int TYPE_BUBBLES
protected static byte[] AI_TYPE_LEGEND
protected static byte[] AI_TYPE_SERIES
protected static byte[] AI_TYPE_CATEGORY
protected static byte[] AI_TYPE_BUBBLE
protected static byte[] AI_TYPE_NULL_LEGEND
public String getBoundName()
public int getBoundXti()
public void populateForTransfer(String origSheetName)
updateSheetRefpublic void setLegend(String newLegend)
public boolean setText(String txt)
txt - public String getText()
public void setSeriesText(SeriesText s)
public void setExternsheetRef(int x)
throws WorkSheetNotFoundException
WorkSheetNotFoundExceptionpublic void setExternsheetRef(int oldRef,
int newRef)
throws WorkSheetNotFoundException
WorkSheetNotFoundExceptionpublic void updateSheetRef(String newSheetName, String origWorkBookName)
public String getDefinition()
public Ptg[] getCellRangePtgs() throws FormulaNotFoundException
FormulaNotFoundExceptionpublic int getType()
public int getIfmt()
public boolean setLocationPolicy(String loc, int l)
public boolean changeAiLocation(Ptg p, String newLoc)
p - newLoc - public boolean changeAiLocation(String loc, String newLoc)
String - - range of Cells within Formula to modifyString - - new range of Cells within Formulapublic void updateRecord()
public void init()
XLSRecordpublic void setRt(int i)
i - public static ChartObject getPrototype(byte[] aiType)
public Stack getExpression()
public void close()
GenericChartObjectclose in class GenericChartObjectpublic boolean isfCustomIfmt()
public void setfCustomIfmt(boolean fCustomIfmt)
fCustomIfmt - the fCustomIfmt to setCopyright © 2002–2019 Starter Inc.. All rights reserved.