Class ReportElement
java.lang.Object
quadbase.reportdesigner.ReportElements.ReportElement
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ReportCell,ReportColumn,quadbase.reportdesigner.ReportElements.ReportTableElement
A quadbase report can be thought of as a collection of ReportElement(s), with each ReportElement
containing the information on how data is going to look in the report. In such a way, the
ReportElement Object provides a way to manipulate the contents as well as the look and feel of
the individual elements.
This class serves as a general class for all other report object (such as ReportCell,
ReportSection, ReportColumn, etc.) that extends it for controlling the formatting of the report.
Within each ReportElement object, properties such as font, color, data format, etc., can be
manipulated. You can also copy ReportElement objects or just apply the template of one
ReportElement object to another. When a template is applied, the data of the object does not
change. Only the look and feel of the ReportElement object is modified.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Colorstatic final intThe element type CHART.static final intThe element type COLUMN.static final intstatic final intThe element type FORMULA.static final intThe element type GRID.protected doublestatic final String[]static final intThe element type IMAGE.protected booleanstatic final intThe element type LABEL.static final intThe element type LINE.protected doubleprotected doublestatic final intprotected doublestatic final intstatic final intstatic final intprotected intprotected boolean[]static final intThe element type of ReportRTFObject *static final intThe element type SECTION.protected Hashtable<String, ReportElement> protected shortstatic final intfor sorting in X (horizontal) direction.static final intfor sorting in Y (vertical) direction.static final intfor sorting in Z (depth) direction.static final intThe element type SUBREPORT.static final intThe element type TABLE.static final intstatic final intprotected booleanprotected shortprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor to create an instance of ReportElementReportElement(String name) Creates a new instance of ReportElement with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionaddSecurityLevel(String levelName) Create a new security level for this element.voidFor internal use onlyvoidFor internal use onlyvoidapplySecurity(ReportElement _elt) voidapplyStyle(ReportElement _elt) Applies the style properties from ReportElement _elt onto this ReportElementvoidvoidapplyTemplate(ReportElement _elt) internal use onlyvoidapplyTemplate(ReportElement _elt, boolean applyScript) voidapplyTemplate(ReportElement _elt, boolean applyScript, boolean applyElementPosition, boolean copyDrillDownName) internal use onlybooleancontains(double cx, double cy) internal use onlystatic booleancontains(ReportElement elt, Vector<ReportElement> eltList) booleancontainsX(double cx, double w) internal use onlybooleancontainsY(double cy, double h) internal use onlyvoidcopy(ReportElement _elt) internal use onlyvoidcopyStyleWithScriptsButNotWH(ReportElement _elt, boolean copyScriptsAndDrillDownLinks) voidcopyTemplate(ReportElement _elt) For internal use only.voidcreateScriptObject(Vector<Script> scripts) For internal use only *voidcreateScriptObjectFromName(Vector<Script> scripts) For internal use only *voiddeepCopy(ReportElement _elt) For internal use onlystatic booleanbooleanequals(ReportElement _elt) Checks to see if the properties of this ReportElement object are the same as the properties of ReportElement object "_elt".static ReportElement[]findElementsAbove(ReportElement r, ReportElement[] ret) For internal use onlystatic Vector<ReportElement> findElementsBelow(ReportElement[] r, ReportElement[] ret) For internal use onlystatic ReportElement[]findElementsToLeft(ReportElement r, ReportElement[] ret) For internal use onlystatic Vector<ReportElement> findElementsToRight(ReportElement[] r, ReportElement[] ret) For internal use onlystatic ReportElement[]findElementsToRight(ReportElement r, ReportElement[] ret) For internal use onlystatic intFor internal use only.static intFor internal use only.static intfindMaxXr(ReportElement[] elt) For internal use onlystatic intfindMaxYd(ReportElement[] elt) For internal use onlystatic intfindMinX(ReportElement[] elt) For internal use onlystatic intfindMinY(ReportElement[] elt) For internal use onlystatic Vector<ReportElement> findSpecificElements(ReportElement[] ret, String type) For internal use only.shortgetAlign()Get the horizontal alignment of this element.getAllColors(Vector<Color> colors) for internal use only.Get the background color of this element.internal use onlyintgetBorder(quadbase.reportdesigner.ReportElements.BorderSide borderSide) Get the border color of this elementintDeprecated.intGet the custom ID of this elementdoublegetDrawX()internal use onlydoublegetDrawX(int i) internal use onlydoublegetDrawY()internal use onlydoublegetDrawY(int i) internal use onlyGet the web link of this elementstatic StringFor internal use onlystatic StringgetElementTypeName(int elementType) static Vector<ReportElement>[]static Vector<ReportElement>[]getFont()Get the font name of this elementGet the Font color of this element.doubleINCH Get the height of this elementdoublegetHeight(boolean isMetric) Gets the height.intGets the height of this element in pixel *intgetHeightOfElement(boolean forExport) For Internal use only.floatPOINTS This is for export to PDF format 1 inch = 72 pointsgetHint()Get the link hint of this elementgetID()Get the id of this elementintgetLink()Get the web link of this elementstatic doublegetMaxXr(ReportElement[] elt) For internal use only.doubledoublestatic doublegetMinX(ReportElement[] elt) For internal use only.INTERNAL USE ONLYgetRefFontToDraw(boolean adjust) INTERNAL USE ONLY ONLY FOR VIEWER.intdoubleintboolean[]Gets the scripting text of this ReportElement, if available.Gets the script name.Gets the Script Object.String[]internal use only *getSecurityLevel(String levelName) Get the secured ReportElement associated with the specified Security level name.String[]gets the security levels associated with this ReportElement.protected Hashtable<String, ReportElement> For internal use only.shortgetSnap()for internal use only.Get the external style name of this elementGet the link target of this elementgetText()Get the text of this elementintshortGet the vertical alignment of this element.shortgetVSnap()for internal use only.doublegetWidth()INCH Get the width of this elementdoublegetWidth(boolean isMetric) Get the width of this elementintThis is used for the export of the DHTMLintgetWidthOfElement(boolean forExport) For Internal use only.floatPOINTS This is for export to PDF format 1 inch = 72 pointsdoublegetX()Get the X-coordinate value of the upper left corner of this elementdoublegetX(boolean isMetric) Get the X-coordinate value of the upper left corner of this element in inches/cmsintgetXPos()Get the X-coordinate value as the pixelintgetXPos(boolean forExport) For Internal use only.floatFor Internal use only.doublegetY()INCH Get the Y-coordinate value of the upper left corner of this elementdoublegetY(boolean isMetric) INCH/CM Get the Y-coordinate value of the upper left corner of this elementintgetYPos()Get the X-coordinate value as the pixelintgetYPos(boolean forExport) For Internal use only.floatFor internal use only *intgetZ()Gets the z-index of this report element.booleanbooleaninBottomHalf(double cy) For internal use onlybooleaninLeftEnd(double cx) For internal use onlybooleaninLeftHalf(double cx) For internal use onlybooleaninRightEnd(double cx, double w) For internal use onlybooleaninRightHalf(double cx) For internal use onlybooleaninTopHalf(double cy) For internal use onlystatic booleanbooleaninternal use onlybooleanisLocked()internal use onlybooleanisNoWrap()For HTML use Check the status of html text wrappingbooleanGets whether this ReportElement should be resized to fit all of its content.booleanIs any security level defined for this element.booleanFor internal use only.booleanFor internal use only.booleanFor internal use only.booleaninternal use only *booleanCheck the status of underline textbooleanGets the status of the display of this ReportElement.static voidmoveForCrossTabFixedField(Vector<ReportElement> groupFormat, ReportElement[] elts, boolean isHorizontal, double change) static voidmoveForCrossTabFixedField(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only Shift surrounding report elements after moving onevoidnewArrayX(int nRow) internal use onlyvoidnewArrayY(int nRow) internal use onlyvoidFor internal use only.voidFor internal use only.voidinternal use only.voidremoveSecurityLevel(String levelName) Remove the security level associated with the specific name.voidrenameSecurityLevel(String oldName, String newName) internal use onlyvoidresize(double xratio, double yratio) Resizes this ReportElement.static voidresizeForCrossTabFixedField(Vector<ReportElement> resizeItems, ReportElement[] elts, double ratioW, double ratioH, double startXD, double startYD) internal use only Shift surrounding report elements after moving onestatic voidresizeForCrossTabFixedField(ReportElement resizeItem, ReportElement[] elts, double newW, double newH) internal use only Shift surrounding report elements after moving onebooleaninternal use only.booleaninternal use only.voidsetAlign(short newAlign) Set the horizontal alignment of this element.voidsetBgColor(Color newColorBg) Set the background color of this element.voidsetBookmark(String bookmark) internal use onlyvoidsetBorder(int b) Deprecated.voidsetBorderColor(Color newBorderColor) Set the border color of this elementvoidsetBorderThickness(int borderThickness) Set the border thickness of this elementvoidsetBorderThickness(int topBorder, int rightBorder, int bottomBorder, int leftBorder) voidsetBorderThickness(int borderThickness, quadbase.reportdesigner.ReportElements.BorderSide borderSide) voidvoidsetBottomBorder(int bottomBorder) voidsetCustomID(String newID) Set the custom ID of this elementvoidsetDrawAgain(boolean b) internal use onlyvoidsetDrawX(double drawX) internal use onlyvoidsetDrawX(int i, double x) internal use onlyvoidsetDrawY(double drawY) internal use onlyvoidsetDrawY(int i, double y) internal use onlyvoidsetDrillDownName(String name) Set the drilldown name of this elementvoidSet the font name of this elementvoidsetFontColor(Color newColorFt) Set the Font color of this element.voidsetHeight(double height) INCH Set the height of this elementvoidsetHeight(double height, boolean isMetric) INCH/CM Set the height of this elementvoidSet the link hint of this elementvoidSet the id of this elementvoidFor internal use only.voidsetInchGridSpace(double space) internal use only *voidsetLeftBorder(int leftBorder) voidSet the web link of this elementvoidsetLocked(boolean state) internal use onlyvoidsetMinHeight(double mH) voidsetMinWidth(double mW) voidsetNoWrap(boolean w) For HTML use Set the status of html text wrappingvoidsetResizeToFitContent(boolean b) Sets whether this ReportElement should be resized to fit all of its content.voidsetRightBorder(int rightBorder) voidsetRotateAngle(double rotate_angle) voidsetRotateAngle(double rotate_angle, boolean resizeCell) voidsetRoundCornerRadius(int roundCornerRadius) voidsetRoundCornersArray(boolean[] roundCorners) voidSets the scripting text of the ReportElement.voidSets the Script name.voidsetScriptObj(Script scriptObj) Sets the Script Object.voidsetScriptObjNull(Script scriptObj) set the script Object to nullvoidsetSecurityLevelProperties(String levelName, ReportElement level) For internal use only.voidsetSecurityMap(Hashtable<String, ReportElement> table) For internal use only.voidsetSecurityTextScript(boolean state) For internal use only.voidsetShiftSecuredColX(boolean state) For internal use only.voidsetShiftSecuredColXIncludeHeaderAndFooter(boolean state) For internal use only.voidsetSnap(short snap) for internal use only.voidsetSnapToGrid(boolean snapToGrid, boolean metric, double stepSize) internal use only *voidsetSnapToGrid(boolean snapToGrid, double stepSize, double cmStepSize) internal use only *voidsetStyleName(String newStyleName) Set the style name of this elementvoidSet the link target of this elementvoidSet the text of this elementvoidsetTopBorder(int topBorder) voidsetUnderline(boolean underline) set the status of underline textvoidsetVAlign(short newVAlign) Set the vertical alignment of this element.voidsetVisible(boolean b) Sets the status of the display of this ReportElement.voidsetVSnap(short vsnap) for internal use only.voidsetWidth(double width) INCH Set the width of this elementvoidsetWidth(double width, boolean isMetric) INCH/CM Set the width of this elementvoidsetX(double x) INCHES Set the X-coordinate value of the upper left corner of this elementvoidsetX(double x, boolean isMetric) INCH/CM Set the X-coordinate value of the upper left corner of this elementvoidsetXX(double x) internal use onlyvoidsetXX(double x, boolean doNotReCal) voidsetY(double y) INCH Set the Y-coordinate value of the upper left corner of this elementvoidsetY(double y, boolean isMetric) INCH/CM Set the Y-coordinate value of the upper left corner of this elementvoidsetYY(double y) internal use only *voidsetYY(double y, boolean doNotReCal) voidsetZ(int z) Sets the z-index of this report element.static voidshift(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only Shift surrounding report elements after resizing onestatic voidshiftObjectsOnMove(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only For internal use only--move only surrounding objectsstatic voidshiftOnMove(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only Shift surrounding report elements after moving onestatic Vector<ReportElement[]> sortElement(ReportElement[] areportcell) internal use only *static ReportElement[]sortElement(ReportElement[] elemsToSort, int order, boolean asc) sort elements R using insertion sort according to ORDER destructively.static Vector<ReportElement[]> sortElementHorizontally(ReportElement[] areportcell) For internal use only.static Vector<ReportElement> sortElementInXYOrder(ReportElement[] areportCell) static Vector<ReportElement[]> sortElementVertically(ReportElement[] areportcell) For internal use only.static voidswapElements(ReportElement elt1, ReportElement elt2, ReportElement[] cells) internal use onlyvoidswitchSecurityProperties(ReportElement element) For internal use only.voidwrite(DataOutput out) For internal use only.voidFor internal use only.
-
Field Details
-
bgColor
-
x
protected double x -
width
protected double width -
height
protected double height -
min_width
protected double min_width -
min_height
protected double min_height -
rotate_angle
protected double rotate_angle -
borderColor
-
isLocked
protected boolean isLocked -
snap
protected short snap -
vsnap
protected short vsnap -
visible
protected boolean visible -
securityMap
-
roundCornerRadius
protected int roundCornerRadius -
roundCornersArray
protected boolean[] roundCornersArray -
SORT_Y
public static final int SORT_Yfor sorting in Y (vertical) direction. *- See Also:
-
SORT_X
public static final int SORT_Xfor sorting in X (horizontal) direction. *- See Also:
-
SORT_Z
public static final int SORT_Zfor sorting in Z (depth) direction. *- See Also:
-
CHART
public static final int CHARTThe element type CHART. *- See Also:
-
GRID
public static final int GRIDThe element type GRID. *- See Also:
-
LINE
public static final int LINEThe element type LINE. *- See Also:
-
IMAGE
public static final int IMAGEThe element type IMAGE. *- See Also:
-
COLUMN
public static final int COLUMNThe element type COLUMN. *- See Also:
-
FORMULA
public static final int FORMULAThe element type FORMULA. *- See Also:
-
LABEL
public static final int LABELThe element type LABEL. *- See Also:
-
SECTION
public static final int SECTIONThe element type SECTION. *- See Also:
-
TABLE
public static final int TABLEThe element type TABLE. *- See Also:
-
SUBREPORT
public static final int SUBREPORTThe element type SUBREPORT. *- See Also:
-
RTFOBJECT
public static final int RTFOBJECTThe element type of ReportRTFObject *- See Also:
-
TABLEOFCONTENTS
public static final int TABLEOFCONTENTS- See Also:
-
COLUMNHEADER
public static final int COLUMNHEADER- See Also:
-
TITLE
public static final int TITLE- See Also:
-
NONE
public static final int NONE- See Also:
-
ID_TYPE
-
ROTATE_NONE
public static final int ROTATE_NONE- See Also:
-
ROTATE_CLOCKWISE
public static final int ROTATE_CLOCKWISE- See Also:
-
ROTATE_COUNTERCLOCKWISE
public static final int ROTATE_COUNTERCLOCKWISE- See Also:
-
-
Constructor Details
-
ReportElement
public ReportElement()Default constructor to create an instance of ReportElement -
ReportElement
Creates a new instance of ReportElement with the specified name.
-
-
Method Details
-
copy
internal use only Specifies the properties of this ReportElement object to be the same as the properties of ReportElement object "_elt".- Parameters:
_elt- The ReportElement object to be copied
-
deepCopy
For internal use only -
copyTemplate
For internal use only. -
applyTemplate
internal use only Specifies the look and feel of the ReportElement.- Parameters:
_elt- The ReportElement template to be applied
-
applyTemplate
-
applyTemplate
public void applyTemplate(ReportElement _elt, boolean applyScript, boolean applyElementPosition, boolean copyDrillDownName) internal use only -
applyStyle
Applies the style properties from ReportElement _elt onto this ReportElement -
applyStyleButNotWH
-
copyStyleWithScriptsButNotWH
-
equals
Checks to see if the properties of this ReportElement object are the same as the properties of ReportElement object "_elt".- Parameters:
_elt- The ReportElement being compared to
-
contains
public boolean contains(double cx, double cy) internal use only Check whether a coordinate point (cx,cy) is contained within this element.- Returns:
- false otherwise
-
containsX
public boolean containsX(double cx, double w) internal use only For Excel report: Export the Report line and Grid as Cell Border- Returns:
- true if the x coordinate is contained, false otherwisw
-
containsY
public boolean containsY(double cy, double h) internal use only For Excel report: Export the Report line and Grid as Cell Border- Returns:
- true if the y coordinate is contained, false otherwisw
-
inTopHalf
public boolean inTopHalf(double cy) For internal use only -
inBottomHalf
public boolean inBottomHalf(double cy) For internal use only -
inLeftHalf
public boolean inLeftHalf(double cx) For internal use only -
inRightHalf
public boolean inRightHalf(double cx) For internal use only -
inLeftEnd
public boolean inLeftEnd(double cx) For internal use only -
inRightEnd
public boolean inRightEnd(double cx, double w) For internal use only -
isSecurityTextScript
public boolean isSecurityTextScript()For internal use only. -
setSecurityTextScript
public void setSecurityTextScript(boolean state) For internal use only. -
isShiftSecuredColX
public boolean isShiftSecuredColX()For internal use only. -
setShiftSecuredColX
public void setShiftSecuredColX(boolean state) For internal use only. -
applySecurity
-
getScript
Gets the scripting text of this ReportElement, if available. * -
setScript
Sets the scripting text of the ReportElement. * -
getScriptName
Gets the script name. * -
setScriptName
Sets the Script name. * -
getScriptObj
Gets the Script Object. * -
setScriptObj
Sets the Script Object. * -
setScriptObjNull
set the script Object to null -
getAlign
public short getAlign()Get the horizontal alignment of this element. Returns alignment constants as listed in IAlignConstants.- See Also:
-
setAlign
public void setAlign(short newAlign) Set the horizontal alignment of this element. Takes alignment constants listed in IAlignConstants.- See Also:
-
getVAlign
public short getVAlign()Get the vertical alignment of this element. Returns alignment constants as listed in IAlignConstants.- See Also:
-
setVAlign
public void setVAlign(short newVAlign) Set the vertical alignment of this element. Takes alignment constants listed in IAlignConstants.- See Also:
-
setSnap
public void setSnap(short snap) for internal use only. * -
getSnap
public short getSnap()for internal use only. * -
setVSnap
public void setVSnap(short vsnap) for internal use only. * -
getVSnap
public short getVSnap()for internal use only. * -
getBgColor
Get the background color of this element.- Returns:
- Color java.awt.Color object
-
setBgColor
Set the background color of this element.- Parameters:
newColorBg- the new background Color
-
getFontColor
Get the Font color of this element.- Returns:
- Color java.awt.Color object
-
setFontColor
Set the Font color of this element.- Parameters:
newColorFt- the new Font Color
-
getAllColors
for internal use only. * -
isUnderline
public boolean isUnderline()Check the status of underline text- Returns:
- the status of underline text
-
setUnderline
public void setUnderline(boolean underline) set the status of underline text- Parameters:
underline- the new status of underline text
-
getFont
Get the font name of this element- Returns:
- Font name of this element
-
getRefFont
INTERNAL USE ONLY -
setFont
Set the font name of this element- Parameters:
Font- font name of this element
-
getRefFontToDraw
INTERNAL USE ONLY ONLY FOR VIEWER. when true, adjust the font based on the resolution of the server -
getText
Get the text of this element- Returns:
- the text of this element
-
setText
Set the text of this element- Parameters:
newText- the value of new text
-
getID
Get the id of this element- Returns:
- the id of this element
-
setID
Set the id of this element- Parameters:
newID- the value of new id
-
getCustomID
Get the custom ID of this element- Returns:
- the custom ID of this element
-
setCustomID
Set the custom ID of this element- Parameters:
newID- the value of new custom ID
-
isNoWrap
public boolean isNoWrap()For HTML use Check the status of html text wrapping- Returns:
- the status of html text wrapping
-
setNoWrap
public void setNoWrap(boolean w) For HTML use Set the status of html text wrapping- Parameters:
w- the new status of html text wrapping
-
isResizeToFitContent
public boolean isResizeToFitContent()Gets whether this ReportElement should be resized to fit all of its content. * -
setResizeToFitContent
public void setResizeToFitContent(boolean b) Sets whether this ReportElement should be resized to fit all of its content. * -
isLocked
public boolean isLocked()internal use only Gets whether this ReportElement position is locked -
setLocked
public void setLocked(boolean state) internal use only Sets whether the ReportElement position should be locked. If this element is snap to guideline, then it cann't be locked. -
getStyleName
Get the external style name of this element- Returns:
- the external style name of this element
-
setStyleName
Set the style name of this element- Parameters:
newStyleName- the value of new style name
-
getLink
Get the web link of this element- Returns:
- the web link of this element
-
setLink
Set the web link of this element- Parameters:
newLink- the value of new web link
-
getHint
Get the link hint of this element- Returns:
- the link hint of this element
-
setHint
Set the link hint of this element- Parameters:
newhint- the value of new link hint
-
getTarget
Get the link target of this element- Returns:
- the link target of this element
-
setTarget
Set the link target of this element- Parameters:
newtarget- the value of new link target
-
getDrillDownName
Get the web link of this element- Returns:
- the drilldown name of this element
-
setDrillDownName
Set the drilldown name of this element- Parameters:
name- the drilldown value of the drilldown report
-
getX
public double getX()Get the X-coordinate value of the upper left corner of this element- Returns:
- X-coordinate value of the upper left corner of this element In INCHES **
-
getXPos
public int getXPos()Get the X-coordinate value as the pixel -
getXPos
public int getXPos(boolean forExport) For Internal use only. to convert inch to pixel regardless of the resolution. -
getXToPoints
public float getXToPoints()For Internal use only. -
getYToPoints
public float getYToPoints()For internal use only * -
getX
public double getX(boolean isMetric) Get the X-coordinate value of the upper left corner of this element in inches/cms- Parameters:
isMetric- If true, the result is in cm, inches otherwise.- Returns:
- X-coordinate value of the upper left corner of this element in inches/cms
-
setX
public void setX(double x) INCHES Set the X-coordinate value of the upper left corner of this element- Parameters:
x- x-coordinate value of the upper left corner of this element
-
setXX
public void setXX(double x, boolean doNotReCal) -
setX
public void setX(double x, boolean isMetric) INCH/CM Set the X-coordinate value of the upper left corner of this element- Parameters:
x- x-coordinate value of the upper left corner of this element
-
setXX
public void setXX(double x) internal use only -
getY
public double getY()INCH Get the Y-coordinate value of the upper left corner of this element- Returns:
- Y-coordinate value of the upper left corner of this element
-
getYPos
public int getYPos()Get the X-coordinate value as the pixel -
getYPos
public int getYPos(boolean forExport) For Internal use only. to convert inch to pixel regardless of the resolution. -
getY
public double getY(boolean isMetric) INCH/CM Get the Y-coordinate value of the upper left corner of this element- Parameters:
isMetric- If true, the result is in cm, inches otherwise.- Returns:
- Y-coordinate value of the upper left corner of this element
-
setY
public void setY(double y) INCH Set the Y-coordinate value of the upper left corner of this element- Parameters:
y- y-coordinate value of the upper left corner of this element
-
setYY
public void setYY(double y, boolean doNotReCal) -
setYY
public void setYY(double y) internal use only * -
setY
public void setY(double y, boolean isMetric) INCH/CM Set the Y-coordinate value of the upper left corner of this element- Parameters:
y- y-coordinate value of the upper left corner of this element
-
getWidth
public double getWidth()INCH Get the width of this element- Returns:
- width value of this element
-
getWidthOfElement
public int getWidthOfElement()This is used for the export of the DHTML -
getWidthOfElement
public int getWidthOfElement(boolean forExport) For Internal use only. to convert inch to pixel regardless of the resolution. -
getWidthToPoints
public float getWidthToPoints()POINTS This is for export to PDF format 1 inch = 72 points -
getWidth
public double getWidth(boolean isMetric) Get the width of this element- Returns:
- width value of this element in CM if and only if isMetric, otherwise returns the value in INCH
-
setWidth
public void setWidth(double width) INCH Set the width of this element- Parameters:
width- width of this element
-
setWidth
public void setWidth(double width, boolean isMetric) INCH/CM Set the width of this element- Parameters:
width- width of this elementisMetric- if using metric system
-
setMinWidth
public void setMinWidth(double mW) -
setMinHeight
public void setMinHeight(double mH) -
getMin_Width
public double getMin_Width() -
getMin_Height
public double getMin_Height() -
getHeight
public double getHeight()INCH Get the height of this element- Returns:
- height value of this element
-
getHeightOfElement
public int getHeightOfElement()Gets the height of this element in pixel * -
getHeightOfElement
public int getHeightOfElement(boolean forExport) For Internal use only. to convert inch to pixel regardless of the resolution. -
getHeightToPoints
public float getHeightToPoints()POINTS This is for export to PDF format 1 inch = 72 points -
getHeight
public double getHeight(boolean isMetric) Gets the height.- Parameters:
isMetric- is it metric (cm) or no (INCH)
-
setHeight
public void setHeight(double height) INCH Set the height of this element- Parameters:
height- height of this element
-
setHeight
public void setHeight(double height, boolean isMetric) INCH/CM Set the height of this element- Parameters:
height- height of this elementisMetric- if using metric system
-
resize
public void resize(double xratio, double yratio) Resizes this ReportElement. * -
getBorderThickness
Deprecated.Get the border thickness of this element. DEPRECATED: please use getTopBorderThickness(), getRightBorderThickness(), getBottomBorderThickness() and getLeftBorderThickness() methods instead.- Returns:
- border thickness of this element
-
setBorderThickness
public void setBorderThickness(int borderThickness) Set the border thickness of this element- Parameters:
newBorder- new border thickness of this element
-
setBorderThickness
public void setBorderThickness(int borderThickness, quadbase.reportdesigner.ReportElements.BorderSide borderSide) -
setBorderThickness
public void setBorderThickness(int topBorder, int rightBorder, int bottomBorder, int leftBorder) -
setBorder
Deprecated. -
getBorderColor
Get the border color of this element- Returns:
- color of the border of this element
-
setBorderColor
Set the border color of this element- Parameters:
newBorderColor- new border color of this element
-
sortElement
sort elements R using insertion sort according to ORDER destructively. -
sortElementInXYOrder
-
sortElementHorizontally
For internal use only.- Returns:
- vector with RE[] ordered by the X coordinate vector elements ordered by Y
-
sortElement
internal use only * -
sortElementVertically
For internal use only. return vector with RE[] ordered by the Y coordinate -
getFirst2RowOfColumns
-
getFirst2RowOfColumns
-
write
For internal use only.- Throws:
IOException
-
writeXML
For internal use only.- Throws:
IOException
-
readXML
For internal use only.- Throws:
Exception
-
read
For internal use only.- Throws:
Exception
-
getElementType
For internal use only -
findElementType
For internal use only. -
findGroupElementType
For internal use only. For Group selection. -
setID
For internal use only. -
findSpecificElements
For internal use only. -
swapElements
internal use only Swap 2 elements -
shift
public static void shift(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only Shift surrounding report elements after resizing one -
shiftOnMove
public static void shiftOnMove(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only Shift surrounding report elements after moving one -
resizeForCrossTabFixedField
public static void resizeForCrossTabFixedField(Vector<ReportElement> resizeItems, ReportElement[] elts, double ratioW, double ratioH, double startXD, double startYD) internal use only Shift surrounding report elements after moving one -
contains
-
resizeForCrossTabFixedField
public static void resizeForCrossTabFixedField(ReportElement resizeItem, ReportElement[] elts, double newW, double newH) internal use only Shift surrounding report elements after moving one -
moveForCrossTabFixedField
public static void moveForCrossTabFixedField(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only Shift surrounding report elements after moving one -
moveForCrossTabFixedField
public static void moveForCrossTabFixedField(Vector<ReportElement> groupFormat, ReportElement[] elts, boolean isHorizontal, double change) -
isCrossTabElt
-
shiftObjectsOnMove
public static void shiftObjectsOnMove(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change) internal use only For internal use only--move only surrounding objects -
findMinX
For internal use only -
findMaxXr
For internal use only -
getMinX
For internal use only. -
getMaxXr
For internal use only. -
findMinY
For internal use only -
findMaxYd
For internal use only -
findElementsToRight
For internal use only -
findElementsToRight
For internal use only -
findElementsToLeft
For internal use only -
findElementsAbove
For internal use only -
findElementsBelow
For internal use only -
applyImageTemplate
For internal use only -
applyImageTemplateExceptBound
For internal use only -
setBorderThickness
-
scriptReferenced
internal use only. * -
securityScriptReferenced
internal use only. * -
removeScriptReferenced
internal use only. * -
createScriptObject
For internal use only * -
createScriptObjectFromName
For internal use only * -
isSnapToGrid
public boolean isSnapToGrid()internal use only * -
setSnapToGrid
public void setSnapToGrid(boolean snapToGrid, double stepSize, double cmStepSize) internal use only * -
setSnapToGrid
public void setSnapToGrid(boolean snapToGrid, boolean metric, double stepSize) internal use only * -
setInchGridSpace
public void setInchGridSpace(double space) internal use only * -
isVisible
public boolean isVisible()Gets the status of the display of this ReportElement. -
setVisible
public void setVisible(boolean b) Sets the status of the display of this ReportElement. -
isSecurityLevelDefined
public boolean isSecurityLevelDefined()Is any security level defined for this element. -
addSecurityLevel
Create a new security level for this element. The new level is associated with the name specified. Although a security level is encapsulated in a ReportElement object, the only significant attributes are visibility, text and script. All other attributes are referenced from the base element.- Parameters:
levelName- the name of the security level to add to this ReportElement- Returns:
- the secured ReportElement if the report is opened/exported with the specified security level name. Modify (set it to be visible, use script, etc.) this ReportElement for the behavior when the specified security level name is used.
-
getSecurityLevel
Get the secured ReportElement associated with the specified Security level name.- Parameters:
levelName- the name of the security level to get the secured ReportElement- Returns:
- the secured ReportElement if the report is opened/exported with the specified security level name. Modify (set it to be visible, use script, etc.) this ReportElement for the behavior when the specified security level name is used. Returns NULL if none is found.
-
removeSecurityLevel
Remove the security level associated with the specific name. -
getSecurityLevels
gets the security levels associated with this ReportElement. * -
getSecuredScripts
internal use only * -
setSecurityLevelProperties
For internal use only. -
setSecurityMap
For internal use only. This method is only called by ReportMain. -
getSecurityMap
For internal use only. This method is only called by ReportMain. -
switchSecurityProperties
For internal use only. Switch the security properties between this element and the argument. -
setBookmark
internal use only For exporting the report to a PDF format, you can set a bookmark that will be associated with this ReportElement to provide the user a link from a boookmark with the specified name to the location of this ReportElement.- Parameters:
bookmark- name of the bookmark.
-
getBookmark
internal use only Gets the bookmark associated with this ReportElement.- See Also:
-
getZ
public int getZ()Gets the z-index of this report element. Z-index controls the depth of an element, or the order in which they are drawn on a 2D report. This integer can be arbitrarily assigned so that if two elements A (with z-index 3) and B (with z-index 2), A would be drawn after or on top of B.- Returns:
- the z-index, from the range of 0 invalid input: '<'= z invalid input: '<' sizeof(int)
-
setZ
public void setZ(int z) Sets the z-index of this report element. Z-index controls the depth of an element, or the order in which they are drawn on a 2D report. This integer can be arbitrarily assigned so that if two elements A (with z-index 3) and B (with z-index 2), A would be drawn after or on top of B.- Parameters:
z- the z-index, from the range of 0 invalid input: '<'= z invalid input: '<' sizeof(int), negative values are truncated to 0.
-
setDrawAgain
public void setDrawAgain(boolean b) internal use only -
isDrawAgain
public boolean isDrawAgain()internal use only -
getDrawX
public double getDrawX()internal use only -
setDrawX
public void setDrawX(double drawX) internal use only -
getDrawY
public double getDrawY()internal use only -
setDrawY
public void setDrawY(double drawY) internal use only -
newArrayY
public void newArrayY(int nRow) internal use only -
newArrayX
public void newArrayX(int nRow) internal use only -
getDrawY
public double getDrawY(int i) internal use only -
getDrawX
public double getDrawX(int i) internal use only -
setDrawY
public void setDrawY(int i, double y) internal use only -
setDrawX
public void setDrawX(int i, double x) internal use only -
renameSecurityLevel
internal use only -
getRotateAngle
public double getRotateAngle() -
setRotateAngle
public void setRotateAngle(double rotate_angle) -
setRotateAngle
public void setRotateAngle(double rotate_angle, boolean resizeCell) -
setRoundCornerRadius
public void setRoundCornerRadius(int roundCornerRadius) - Parameters:
roundCornerRadius- the roundCornerRadius to set
-
getRoundCornerRadius
public int getRoundCornerRadius()- Returns:
- the roundCornerRadius
-
setRoundCornersArray
public void setRoundCornersArray(boolean[] roundCorners) - Parameters:
roundCorners- the roundCorners to set
-
getRoundCornersArray
public boolean[] getRoundCornersArray()- Returns:
- the roundCorners
-
doesElementSupportRoundCorners
-
getElementTypeName
-
getBorder
public int getBorder(quadbase.reportdesigner.ReportElements.BorderSide borderSide) -
getTopBorder
public int getTopBorder() -
setTopBorder
public void setTopBorder(int topBorder) -
getBottomBorder
public int getBottomBorder() -
setBottomBorder
public void setBottomBorder(int bottomBorder) -
getLeftBorder
public int getLeftBorder() -
setLeftBorder
public void setLeftBorder(int leftBorder) -
getRightBorder
public int getRightBorder() -
setRightBorder
public void setRightBorder(int rightBorder) -
hasBorder
public boolean hasBorder()
-