public class ReportImage extends ReportCell implements quadbase.common.util.internal.IReportImage, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CENTER
This constant is only used for the background image.
|
static java.lang.String |
DBImageDir |
static int |
FIT
This constant is only used for the background image.
|
static int |
TILE
This constant is only used for the background image.
|
static java.lang.String |
XMLTAG |
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 and Description |
---|
ReportImage()
Constructs a ReportImage with no label
|
ReportImage(java.lang.String name)
Constructs a ReportImage with the specified label
|
Modifier and Type | Method and Description |
---|---|
void |
applyTemplate(ReportImage _cell)
Specifies the look & feel to be the same as another ReportImage object.
|
void |
applyTemplate(ReportImage _cell,
boolean applyScript)
Specifies the look & feel to be the same as another ReportImage object.
|
void |
copy(ReportImage _cell)
Specifies this ReportImage to be the same as "_cell"
|
void |
copyTemplate(ReportImage _cell)
For internal use only.
|
static ReportImage |
createImage(java.io.DataInput in,
int version)
For internal use only.
|
static ReportImage |
createImage(java.io.DataInput in,
int version,
boolean pack,
quadbase.common.util.internal.FileInMemTable subFilesTable)
For internal use only.
|
static ReportImage |
createImage(org.w3c.dom.Node node,
int version)
For internal use only.
|
quadbase.common.util.internal.IReportImage |
createReportImage(java.lang.String name)
internal use only
Constructs a ReportImage with the specified label
|
void |
deepCopy(ReportImage _cell)
internal use only
|
boolean |
equals(ReportImage _cell)
internal use only
Checks if this ReportImage object's properties are the same as "_cell"
|
byte[] |
getBytes()
Get the this image's data in bytes.
|
int |
getFlashFrameCount() |
float |
getFlashFrameRate() |
int |
getImageOption()
This method is only used for the background image.
|
java.lang.String |
getImagePath()
Gets the image PATH
|
int |
getImageType()
Gets the image format of this image (GIF, PNG, JPEG, etc...) See
IExportConstants for possible returned
values. |
java.net.URL |
getImageURL()
Gets the URL associated with this image.
|
int |
getJPEGQuality()
Since JPEG uses compression, which decimates the quality of the image, this method gets the
JPEG quality index, default is 99.
|
int |
getPdfImageType()
Gets the image format of this image (GIF, PNG, JPEG, etc...) when the report is exported as a
PDF file.
|
int |
getPNGCompression()
Gets the PNG compression index, default is 0.
|
java.lang.String |
getRelativePath()
internal use only Gets the relative path to where the image can be found iff it is an DB
image (one that resides in the DBImages directory of the ER installation)
|
java.lang.String |
getSavedFileLocation()
Gets the path to the image on disk
|
java.lang.String |
getSavedFileURL()
gets the URL location to the image.
|
boolean |
isDBImage()
internal use only Returns whether this image is stored in the database.
|
boolean |
isGIFTransparent()
Gets the state of GIF transparent mode.
|
void |
read(java.io.DataInput in,
int version)
For internal use only.
|
void |
read(java.io.DataInput in,
int version,
boolean pack,
quadbase.common.util.internal.FileInMemTable subFilesTable)
internal use only.
|
void |
readXML(org.w3c.dom.Node node,
int version)
For internal use only.
|
void |
setBytes(byte[] b)
Set the bytes to be used as this image's data.
|
void |
setBytes(java.lang.String filename) |
void |
setDBImage(boolean fdb)
internal use only Sets this image as a Database image, it will be stored as an array of bytes
on a database system.
|
void |
setFlashFrameCount(int ct) |
void |
setFlashFrameRate(float rate) |
void |
setGIFTransparent(boolean b)
Sets the state of GIF transparent mode.
|
void |
setHTMLParameters(java.lang.String dirLocation,
java.lang.String url,
java.lang.String fileName)
Sets some options for outputting in HTML
|
void |
setImageOption(int i)
This method is only used for the background image.
|
void |
setImagePath(java.lang.String path)
Sets the image PATH
|
void |
setImagePath(java.lang.String path,
boolean setBytes) |
void |
setImageType(int type)
Sets the image format of this image (GIF, PNG, JPEG, etc...) See
IExportConstants for possible parameter
values. |
void |
setImageURL(java.net.URL url)
Sets the image URL
|
void |
setImageURL(java.net.URL url,
boolean setBytes) |
void |
setJPEGQuality(int q)
Since JPEG uses compression, which decimates the quality of the image, this method sets the
JPEG quality index, default is 99.
|
void |
setPdfImageType(int type)
Sets the image format of this image (GIF, PNG, JPEG, etc...) when the report is exported as a
PDF file.
|
void |
setPNGCompression(int q)
Sets the PNG compression index, default is 0.
|
void |
setRelativePath(java.lang.String rpath)
internal use only Sets the relative path to where the image can be found iff it is an DB
image (one that resides in the DBImages directory of the ER installation)
|
java.lang.String |
toString()
internal use only
|
void |
write(java.io.DataOutput out)
For internal use only.
|
void |
write(java.io.DataOutput out,
boolean pack)
internal use only
|
protected void |
writeImageData(java.io.DataOutput out,
boolean pack)
Writes image data to a file specified in the imageURL field.
|
void |
writeXML(java.io.Writer out,
boolean writeElementTag)
For internal use only.
|
applyStyle, applyStyleButNotWH, 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, setScriptedValue
addSecurityLevel, applyImageTemplate, applyImageTemplateExceptBound, applySecurity, applyStyle, applyStyleButNotWH, applyTemplate, applyTemplate, applyTemplate, contains, contains, containsX, containsY, copy, 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, getText, 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, 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, setText, 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
public static final java.lang.String DBImageDir
public static final java.lang.String XMLTAG
public static final int CENTER
public static final int FIT
public static final int TILE
public ReportImage()
public ReportImage(java.lang.String name)
name
- name of the new ReportImage objectpublic void copy(ReportImage _cell)
_cell
- the ReportImage object being emulatedpublic void deepCopy(ReportImage _cell)
public void copyTemplate(ReportImage _cell)
public void applyTemplate(ReportImage _cell)
_cell
- the ReportImage object being emulatedpublic void applyTemplate(ReportImage _cell, boolean applyScript)
applyScript
- If true, the script text of the object will also be applied.public boolean equals(ReportImage _cell)
_cell
- the ReportImage object being compared topublic int getImageType()
IExportConstants
for possible returned
values.public void setImageType(int type)
IExportConstants
for possible parameter
values. public int getPdfImageType()
IExportConstants
for
possible returned values.public void setPdfImageType(int type)
IExportConstants
for
possible parameter values. public int getJPEGQuality()
public void setJPEGQuality(int q)
public int getPNGCompression()
quadbase.ChartAPI.IExportConstants
for possible values (eg.
quadbase.ChartAPI.IExportConstants.PNG_COMPRESSION_FAST).public void setPNGCompression(int q)
quadbase.ChartAPI.IExportConstants
for possible values (eg.
quadbase.ChartAPI.IExportConstants.PNG_COMPRESSION_FAST).public boolean isGIFTransparent()
public void setGIFTransparent(boolean b)
public int getFlashFrameCount()
public void setFlashFrameCount(int ct)
public float getFlashFrameRate()
public void setFlashFrameRate(float rate)
public void setImageOption(int i)
public int getImageOption()
public java.net.URL getImageURL()
public void setImageURL(java.net.URL url)
setImageURL
in interface quadbase.common.util.internal.IReportImage
url
- the URL location of the image.public void setImageURL(java.net.URL url, boolean setBytes)
setImageURL
in interface quadbase.common.util.internal.IReportImage
public java.lang.String getImagePath()
public void setImagePath(java.lang.String path)
path
- image the path to this imagepublic void setImagePath(java.lang.String path, boolean setBytes)
public void setBytes(java.lang.String filename)
public void setHTMLParameters(java.lang.String dirLocation, java.lang.String url, java.lang.String fileName)
dirLocation
- path to the image on diskurl
- URL location to the imagefileName
- the name of the image file.public java.lang.String getSavedFileLocation()
public java.lang.String getSavedFileURL()
public void setDBImage(boolean fdb)
setDBImage
in interface quadbase.common.util.internal.IReportImage
public boolean isDBImage()
public void setRelativePath(java.lang.String rpath)
setRelativePath
in interface quadbase.common.util.internal.IReportImage
public java.lang.String getRelativePath()
getRelativePath
in interface quadbase.common.util.internal.IReportImage
public void setBytes(byte[] b)
b
- the image in bytespublic byte[] getBytes()
public void write(java.io.DataOutput out) throws java.io.IOException
write
in class ReportCell
java.io.IOException
public void write(java.io.DataOutput out, boolean pack) throws java.io.IOException
java.io.IOException
protected void writeImageData(java.io.DataOutput out, boolean pack) throws java.io.IOException
pack
- If true, the image is written in 2KB blocksjava.io.IOException
public void writeXML(java.io.Writer out, boolean writeElementTag) throws java.io.IOException
writeXML
in class ReportCell
java.io.IOException
public static ReportImage createImage(org.w3c.dom.Node node, int version) throws java.lang.Exception
java.lang.Exception
public void readXML(org.w3c.dom.Node node, int version) throws java.lang.Exception
readXML
in class ReportCell
java.lang.Exception
public static ReportImage createImage(java.io.DataInput in, int version) throws java.lang.Exception
java.lang.Exception
public static ReportImage createImage(java.io.DataInput in, int version, boolean pack, quadbase.common.util.internal.FileInMemTable subFilesTable) throws java.lang.Exception
java.lang.Exception
public void read(java.io.DataInput in, int version) throws java.lang.Exception
read
in class ReportCell
java.lang.Exception
public void read(java.io.DataInput in, int version, boolean pack, quadbase.common.util.internal.FileInMemTable subFilesTable) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public quadbase.common.util.internal.IReportImage createReportImage(java.lang.String name)
createReportImage
in interface quadbase.common.util.internal.IReportImage
name
- name of the new ReportImage object