Class ReportChartObject
java.lang.Object
quadbase.reportdesigner.ReportElements.ReportElement
quadbase.reportdesigner.ReportElements.ReportCell
quadbase.reportdesigner.ReportElements.ReportImage
quadbase.reportdesigner.ReportElements.ReportChartObject
- All Implemented Interfaces:
Serializable,quadbase.common.util.internal.IReportImage
This class can be used to insert a QbChart object anywhere in the Report-- ReportSection, and
ReportTable.
- See Also:
-
Field Summary
FieldsFields inherited from class quadbase.reportdesigner.ReportElements.ReportImage
CENTER, DBImageDir, FIT, TILEFields inherited from class quadbase.reportdesigner.ReportElements.ReportElement
bgColor, borderColor, CHART, COLUMN, COLUMNHEADER, FORMULA, GRID, height, ID_TYPE, IMAGE, isLocked, LABEL, LINE, min_height, min_width, NONE, rotate_angle, ROTATE_CLOCKWISE, ROTATE_COUNTERCLOCKWISE, ROTATE_NONE, roundCornerRadius, roundCornersArray, RTFOBJECT, SECTION, securityMap, snap, SORT_X, SORT_Y, SORT_Z, SUBREPORT, TABLE, TABLEOFCONTENTS, TITLE, visible, vsnap, width, x -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a ReportChartObject with no labelReportChartObject(String name) Constructs a ReportChartObject with the specified name -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTemplate(ReportChartObject _chart) For internal use onlyvoidcopy(ReportChartObject _chart) internal use onlyvoidcopyTemplate(ReportChartObject _chart) For internal use onlystatic ReportChartObjectcreateChartObject(DataInput in, int version) For internal use onlystatic ReportChartObjectcreateChartObject(DataInput in, int version, boolean pack, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) internal use onlystatic ReportChartObjectcreateChartObject(Node node, int version) For internal use onlyvoiddeepCopy(ReportChartObject _chart) For internal use onlyquadbase.common.util.internal.IChartgetChart()Get the IChart object contained in this instance of ReportChartObject.Gets the path to the location of the chart.Get the implemented IChartModifier class object that has been set into this instance of ReportChartObject.quadbase.common.util.internal.IChartObtain an IChart object from this ReportChartObject.String[]For internal use only.intGet the dataSource Type of the Chart Object.Gets the domain path for this object.getNewChartName(quadbase.common.util.internal.FileInMemTable subFilesTable, String filename) This function determines where a new chart may be saved, given a filename.String[]For parameterized chart only, returns a String array of CELL_IDgetText()Get the text of this elementgetText(quadbase.common.util.internal.FileInMemTable subFilesTable) booleanReturns whether map files for chart images is included in HTML/DHTML exports.booleanReturns whether data from ReportTable are used for charts.booleanReturns whether data from Report Table header invalid input: '&' footer are used for charts.booleanReturns whether summary data is used for fixed-field report onlyvoidpackChart(DataOutput out) internal use onlyvoidFor internal use only.voidread(DataInput in, int version, boolean pack, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) internal use onlyvoidFor internal use only.voidvoidsetChart(quadbase.common.util.internal.IChart chartObject) Set the IChart object contained in this instance of ReportChartObject.voidsetChartModifier(IChartModifier chartMod) Set the implemented IChartModifier class object into this instance of ReportChartObject.voidsetColDataMapping(String[] map) For internal use only.voidset datasourceID of the chart, the id is originally from data registryvoidsetDomainPath(String path) Sets the domain path for this object.voidsetExportMapFile(boolean b) Specifies whether map files for chart images is included in HTML/DHTML exports.voidsetParameterMap(String[] p) For parameterized chart only, sets the specified String array as CELL_ID.voidsetReportDataUsed(boolean b) Specifies whether data from ReportTable are used for charts.voidsetSectionDataIncluded(boolean b) Specifies whether data from Report Table header invalid input: '&' footer are used for charts.voidsetSummaryDataUsed(boolean b) Specifies whether summary data is used for fixed-field report onlyvoidSet the text of this elementvoidwrite(DataOutput out) For internal use only.voidwrite(DataOutput out, boolean pack) For internal use only.voidwriteChartData(DataOutput out) internal use onlyvoidFor internal use only.Methods inherited from class quadbase.reportdesigner.ReportElements.ReportImage
applyTemplate, applyTemplate, copy, copyTemplate, createImage, createImage, createImage, createReportImage, deepCopy, equals, getBytes, getFlashFrameCount, getFlashFrameRate, getImageOption, getImagePath, getImageType, getImageURL, getJPEGQuality, getPdfImageType, getPNGCompression, getRelativePath, getSavedFileLocation, getSavedFileURL, isDBImage, isGIFTransparent, read, setBytes, setBytes, setDBImage, setFlashFrameCount, setFlashFrameRate, setGIFTransparent, setHTMLParameters, setImageOption, setImagePath, setImagePath, setImageType, setImageURL, setImageURL, setJPEGQuality, setPdfImageType, setPNGCompression, setRelativePath, toString, writeImageDataMethods inherited from class quadbase.reportdesigner.ReportElements.ReportCell
applyStyle, applyStyleButNotWH, applyStyleButNotWHCopyScripts, applyTemplate, applyTemplate, clone, copy, copyTemplate, createCell, createCell, createFormulaObject, createFormulaObjectFromName, createFormulaObjectFromText, deepCopy, equals, formulaReferenced, getColIndex, getColumn, getDataFormat, getEntry, getFormula, getFormulaName, getFormulaObj, getScriptedValue, getSQLType, setColumn, setDataFormat, setEntry, setFormula, setFormulaObj, setScriptedValueMethods inherited from class quadbase.reportdesigner.ReportElements.ReportElement
addSecurityLevel, applyImageTemplate, applyImageTemplateExceptBound, applySecurity, applyStyle, applyStyleButNotWH, applyTemplate, applyTemplate, applyTemplate, contains, contains, containsX, containsY, copy, copyStyleWithScriptsButNotWH, copyTemplate, createScriptObject, createScriptObjectFromName, deepCopy, doesElementSupportRoundCorners, equals, findElementsAbove, findElementsBelow, findElementsToLeft, findElementsToRight, findElementsToRight, findElementType, findGroupElementType, findMaxXr, findMaxYd, findMinX, findMinY, findSpecificElements, getAlign, getAllColors, getBgColor, getBookmark, getBorder, getBorderColor, getBorderThickness, getBottomBorder, getCustomID, getDrawX, getDrawX, getDrawY, getDrawY, getDrillDownName, getElementType, getElementTypeName, getFirst2RowOfColumns, getFirst2RowOfColumns, getFont, getFontColor, getHeight, getHeight, getHeightOfElement, getHeightOfElement, getHeightToPoints, getHint, getID, getLeftBorder, getLink, getMaxXr, getMin_Height, getMin_Width, getMinX, getRefFont, getRefFontToDraw, getRightBorder, getRotateAngle, getRoundCornerRadius, getRoundCornersArray, getScript, getScriptName, getScriptObj, getSecuredScripts, getSecurityLevel, getSecurityLevels, getSecurityMap, getSnap, getStyleName, getTarget, getTopBorder, getVAlign, getVSnap, getWidth, getWidth, getWidthOfElement, getWidthOfElement, getWidthToPoints, getX, getX, getXPos, getXPos, getXToPoints, getY, getY, getYPos, getYPos, getYToPoints, getZ, hasBorder, inBottomHalf, inLeftEnd, inLeftHalf, inRightEnd, inRightHalf, inTopHalf, isCrossTabElt, isDrawAgain, isLocked, isNoWrap, isResizeToFitContent, isSecurityLevelDefined, isSecurityTextScript, isShiftSecuredColX, isShiftSecuredColXIncludeHeaderAndFooter, isSnapToGrid, isUnderline, isVisible, moveForCrossTabFixedField, moveForCrossTabFixedField, newArrayX, newArrayY, removeScriptReferenced, removeSecurityLevel, renameSecurityLevel, resize, resizeForCrossTabFixedField, resizeForCrossTabFixedField, scriptReferenced, securityScriptReferenced, setAlign, setBgColor, setBookmark, setBorder, setBorderColor, setBorderThickness, setBorderThickness, setBorderThickness, setBorderThickness, setBottomBorder, setCustomID, setDrawAgain, setDrawX, setDrawX, setDrawY, setDrawY, setDrillDownName, setFont, setFontColor, setHeight, setHeight, setHint, setID, setID, setInchGridSpace, setLeftBorder, setLink, setLocked, setMinHeight, setMinWidth, setNoWrap, setResizeToFitContent, setRightBorder, setRotateAngle, setRotateAngle, setRoundCornerRadius, setRoundCornersArray, setScript, setScriptName, setScriptObj, setScriptObjNull, setSecurityLevelProperties, setSecurityMap, setSecurityTextScript, setShiftSecuredColX, setShiftSecuredColXIncludeHeaderAndFooter, setSnap, setSnapToGrid, setSnapToGrid, setStyleName, setTarget, setTopBorder, setUnderline, setVAlign, setVisible, setVSnap, setWidth, setWidth, setX, setX, setXX, setXX, setY, setY, setYY, setYY, setZ, shift, shiftObjectsOnMove, shiftOnMove, sortElement, sortElement, sortElementHorizontally, sortElementInXYOrder, sortElementVertically, swapElements, switchSecurityProperties
-
Field Details
-
XMLTAG
For internal use only- See Also:
-
-
Constructor Details
-
ReportChartObject
public ReportChartObject()Constructs a ReportChartObject with no label -
ReportChartObject
Constructs a ReportChartObject with the specified name
-
-
Method Details
-
setChart
public void setChart(quadbase.common.util.internal.IChart chartObject) Set the IChart object contained in this instance of ReportChartObject. -
getChart
public quadbase.common.util.internal.IChart getChart()Get the IChart object contained in this instance of ReportChartObject. This IChart object may be class casted to a QbChart object. NOTE: the IChart object is mainly used to retrieve information about the chart. To set properties at run time, please try to useIChartModifier- Returns:
- The chartObject that the ReportChartObject instance is currently using. It could be null.
- See Also:
-
setParameterMap
For parameterized chart only, sets the specified String array as CELL_ID. -
getParameterMap
For parameterized chart only, returns a String array of CELL_ID -
setChartModifier
Set the implemented IChartModifier class object into this instance of ReportChartObject. -
getChartModifier
Get the implemented IChartModifier class object that has been set into this instance of ReportChartObject. -
isSectionDataIncluded
public boolean isSectionDataIncluded()Returns whether data from Report Table header invalid input: '&' footer are used for charts. -
setSectionDataIncluded
public void setSectionDataIncluded(boolean b) Specifies whether data from Report Table header invalid input: '&' footer are used for charts. -
isReportDataUsed
public boolean isReportDataUsed()Returns whether data from ReportTable are used for charts. -
setReportDataUsed
public void setReportDataUsed(boolean b) Specifies whether data from ReportTable are used for charts. -
setSummaryDataUsed
public void setSummaryDataUsed(boolean b) Specifies whether summary data is used for fixed-field report only -
isSummaryDataUsed
public boolean isSummaryDataUsed()Returns whether summary data is used for fixed-field report only -
getColDataMapping
For internal use only. -
setColDataMapping
For internal use only. -
isExportMapFile
public boolean isExportMapFile()Returns whether map files for chart images is included in HTML/DHTML exports. -
setExportMapFile
public void setExportMapFile(boolean b) Specifies whether map files for chart images is included in HTML/DHTML exports. -
getChartLocation
Gets the path to the location of the chart. -
createChartObject
For internal use only- Throws:
Exception
-
createChartObject
public static ReportChartObject createChartObject(DataInput in, int version, boolean pack, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) throws Exception internal use only- Throws:
Exception
-
read
For internal use only.- Overrides:
readin classReportImage- Throws:
Exception
-
read
public void read(DataInput in, int version, boolean pack, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) throws Exception internal use only- Throws:
Exception
-
write
For internal use only.- Overrides:
writein classReportImage- Throws:
IOException
-
write
For internal use only.- Overrides:
writein classReportImage- Throws:
IOException
-
writeChartData
internal use only- Throws:
IOException
-
resetByteArray
public void resetByteArray() -
packChart
internal use only -
createChartObject
For internal use only- Throws:
Exception
-
deepCopy
For internal use only -
copy
internal use only -
copyTemplate
For internal use only -
applyTemplate
For internal use only -
writeXML
For internal use only.- Overrides:
writeXMLin classReportImage- Throws:
IOException
-
readXML
For internal use only.- Overrides:
readXMLin classReportImage- Throws:
Exception
-
setDomainPath
Sets the domain path for this object. -
getDomainPath
Gets the domain path for this object. -
getText
Description copied from class:ReportElementGet the text of this element- Overrides:
getTextin classReportElement- Returns:
- the text of this element
-
getText
-
setText
Description copied from class:ReportElementSet the text of this element- Overrides:
setTextin classReportElement- Parameters:
fn- the value of new text
-
getNewChartName
public String getNewChartName(quadbase.common.util.internal.FileInMemTable subFilesTable, String filename) This function determines where a new chart may be saved, given a filename. -
getChartObject
public quadbase.common.util.internal.IChart getChartObject()Obtain an IChart object from this ReportChartObject. The IChart object can be casted to QbChart NOTE: the IChart object is mainly used to retrieve information about the chart. To set properties at run time, please try to use -
getDataSourceType
public int getDataSourceType()Get the dataSource Type of the Chart Object. The return value is specified in the class ServerMessage Also the DataSourceType is consistent with the QbReport DataSource Type.- Returns:
- the DataSourceType specified in ServerMessage, returns -1 if the chart uses report data or its DataSource is set to NONE
- See Also:
-
getDataSourceID
- Returns:
- datasourceID(in data registry) of the chart return null if the chart uses report data
-
setDataSourceID
set datasourceID of the chart, the id is originally from data registry
-