public class ReportRTFObject extends ReportCell
Modifier and Type | Field and Description |
---|---|
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 |
---|
ReportRTFObject() |
ReportRTFObject(byte[] d) |
Modifier and Type | Method and Description |
---|---|
void |
addFormat(java.lang.String formatName,
IFormat format,
int type)
Add a format to the available list of formats that can be used by formulas.
|
void |
applyTemplate(ReportRTFObject _cell)
Does nothing
|
void |
copy(ReportRTFObject _source) |
void |
copyTemplate(ReportRTFObject _cell)
For internal use only.
|
static ReportRTFObject |
createReportRTFObject(java.io.DataInput in,
int version)
For internal use only.
|
static ReportRTFObject |
createReportRTFObject(org.w3c.dom.Node node,
int version)
For internal use only.
|
void |
deepCopy(ReportRTFObject _source) |
int |
getActualColumnCount()
For internal use only.
|
short |
getAlign()
Get the horizontal alignment of this element.
|
int |
getColumnCount() |
double |
getColumnSpacing() |
double |
getColumnWidth() |
byte[] |
getData()
Get the content as a byte array.
|
java.lang.Object[] |
getFormatMap() |
java.util.Vector<java.lang.Object[]> |
getFormats() |
java.lang.String |
getFullText(quadbase.reportdesigner.report.Report report,
ReportTable tbl) |
java.lang.String |
getSavedFileLocation() |
java.lang.String |
getSavedFileURL() |
boolean |
isBorderClosed() |
void |
read(java.io.DataInput in,
int version)
For internal use only.
|
void |
readXML(org.w3c.dom.Node node,
int version)
For internal use only
|
void |
removeFormat(java.lang.String formatName)
Remove the format with the specific name.
|
void |
setBorderClosed(boolean state) |
void |
setColumnCount(int columnC)
Set the number of columns to display the content.
|
void |
setColumnSpacing(double space)
Set the spacing between columns if there are more than one columns.
|
void |
setData(byte[] d)
Same as setData(d, (Vector)null).
|
void |
setData(byte[] d,
java.lang.Object[] fmap) |
void |
setData(byte[] d,
java.util.Vector<java.lang.Object> f)
Set the content of this rich text field.
|
void |
setFormats(java.util.Vector<java.lang.Object[]> f) |
void |
setHTMLParameters(java.lang.String dirLocation,
java.lang.String url,
java.lang.String prefix)
API only feature to set export location and reference URL for images.
|
void |
write(java.io.DataOutput out)
For internal use only.
|
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, 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 XMLTAG
public ReportRTFObject(byte[] d)
public ReportRTFObject()
public void setData(byte[] d, java.lang.Object[] fmap)
public java.lang.String getFullText(quadbase.reportdesigner.report.Report report, ReportTable tbl)
public void copy(ReportRTFObject _source)
public void deepCopy(ReportRTFObject _source)
public void copyTemplate(ReportRTFObject _cell)
public void applyTemplate(ReportRTFObject _cell)
_cell
- the SubReportObject object being emulatedpublic void write(java.io.DataOutput out) throws java.io.IOException
write
in class ReportCell
java.io.IOException
public void writeXML(java.io.Writer out, boolean writeElementTag) throws java.io.IOException
ReportCell
writeXML
in class ReportCell
java.io.IOException
public static ReportRTFObject createReportRTFObject(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
ReportCell
readXML
in class ReportCell
java.lang.Exception
public static ReportRTFObject createReportRTFObject(java.io.DataInput in, int version) 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 java.util.Vector<java.lang.Object[]> getFormats()
public void setFormats(java.util.Vector<java.lang.Object[]> f)
public void setData(byte[] d)
public void setData(byte[] d, java.util.Vector<java.lang.Object> f)
d
- The byte array from an RTF file or an RTF formated stream.f
- A vector of format names to be used for each formula in the embedded text.public void addFormat(java.lang.String formatName, IFormat format, int type)
formatName
- The name of the format. The user can associate this name to any formula.format
- The actual format.type
- The type of the formula. STRING, LOGICAL, NUMERIC or TIMESTAMP.public void removeFormat(java.lang.String formatName)
public byte[] getData()
public boolean isBorderClosed()
public void setBorderClosed(boolean state)
public void setColumnSpacing(double space) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public double getColumnSpacing()
public void setColumnCount(int columnC) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getColumnCount()
public int getActualColumnCount()
public double getColumnWidth()
public java.lang.Object[] getFormatMap()
public void setHTMLParameters(java.lang.String dirLocation, java.lang.String url, java.lang.String prefix)
dirLocation
- The directory for saving the images.url
- The URL directory to reference the images.prefix
- The prefix for the generated image file names.public java.lang.String getSavedFileLocation()
public java.lang.String getSavedFileURL()
public short getAlign()
ReportElement
getAlign
in class ReportElement
IAlignConstants