public abstract class ReportElement
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
bgColor |
protected java.awt.Color |
borderColor |
static int |
CHART
The element type CHART.
|
static int |
COLUMN
The element type COLUMN.
|
static int |
COLUMNHEADER |
static int |
FORMULA
The element type FORMULA.
|
static int |
GRID
The element type GRID.
|
protected double |
height |
static java.lang.String[] |
ID_TYPE |
static int |
IMAGE
The element type IMAGE.
|
protected boolean |
isLocked |
static int |
LABEL
The element type LABEL.
|
static int |
LINE
The element type LINE.
|
protected double |
min_height |
protected double |
min_width |
static int |
NONE |
protected double |
rotate_angle |
static int |
ROTATE_CLOCKWISE |
static int |
ROTATE_COUNTERCLOCKWISE |
static int |
ROTATE_NONE |
protected int |
roundCornerRadius |
protected boolean[] |
roundCornersArray |
static int |
RTFOBJECT
The element type of ReportRTFObject *
|
static int |
SECTION
The element type SECTION.
|
protected java.util.Hashtable<java.lang.String,ReportElement> |
securityMap |
protected short |
snap |
static int |
SORT_X
for sorting in X (horizontal) direction.
|
static int |
SORT_Y
for sorting in Y (vertical) direction.
|
static int |
SORT_Z
for sorting in Z (depth) direction.
|
static int |
SUBREPORT
The element type SUBREPORT.
|
static int |
TABLE
The element type TABLE.
|
static int |
TABLEOFCONTENTS |
static int |
TITLE |
protected boolean |
visible |
protected short |
vsnap |
protected double |
width |
protected double |
x |
Constructor and Description |
---|
ReportElement()
Default constructor to create an instance of ReportElement
|
ReportElement(java.lang.String name)
Creates a new instance of ReportElement with the specified name.
|
Modifier and Type | Method and Description |
---|---|
ReportElement |
addSecurityLevel(java.lang.String levelName)
Create a new security level for this element.
|
void |
applyImageTemplate(ReportElement _elt)
For internal use only
|
void |
applyImageTemplateExceptBound(ReportElement _elt)
For internal use only
|
void |
applySecurity(ReportElement _elt) |
void |
applyStyle(ReportElement _elt)
Applies the style properties from ReportElement _elt onto this ReportElement
|
void |
applyStyleButNotWH(ReportElement _elt) |
void |
applyTemplate(ReportElement _elt)
internal use only
Specifies the look and feel of the ReportElement.
|
void |
applyTemplate(ReportElement _elt,
boolean applyScript) |
void |
applyTemplate(ReportElement _elt,
boolean applyScript,
boolean applyElementPosition,
boolean copyDrillDownName)
internal use only
|
boolean |
contains(double cx,
double cy)
internal use only
Check whether a coordinate point (cx,cy) is contained within this element.
|
static boolean |
contains(ReportElement elt,
java.util.Vector<ReportElement> eltList) |
boolean |
containsX(double cx,
double w)
internal use only
For Excel report: Export the Report line and Grid as Cell Border
|
boolean |
containsY(double cy,
double h)
internal use only
For Excel report: Export the Report line and Grid as Cell Border
|
void |
copy(ReportElement _elt)
internal use only
Specifies the properties of this ReportElement object to be the same as the properties of
ReportElement object "_elt".
|
void |
copyStyleWithScriptsButNotWH(ReportElement _elt,
boolean copyScriptsAndDrillDownLinks) |
void |
copyTemplate(ReportElement _elt)
For internal use only.
|
void |
createScriptObject(java.util.Vector<Script> scripts)
For internal use only *
|
void |
createScriptObjectFromName(java.util.Vector<Script> scripts)
For internal use only *
|
void |
deepCopy(ReportElement _elt)
For internal use only
|
static boolean |
doesElementSupportRoundCorners(ReportElement elt) |
boolean |
equals(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 only
|
static java.util.Vector<ReportElement> |
findElementsBelow(ReportElement[] r,
ReportElement[] ret)
For internal use only
|
static ReportElement[] |
findElementsToLeft(ReportElement r,
ReportElement[] ret)
For internal use only
|
static java.util.Vector<ReportElement> |
findElementsToRight(ReportElement[] r,
ReportElement[] ret)
For internal use only
|
static ReportElement[] |
findElementsToRight(ReportElement r,
ReportElement[] ret)
For internal use only
|
static int |
findElementType(ReportElement elt)
For internal use only.
|
static int |
findGroupElementType(ReportElement elt)
For internal use only.
|
static int |
findMaxXr(ReportElement[] elt)
For internal use only
|
static int |
findMaxYd(ReportElement[] elt)
For internal use only
|
static int |
findMinX(ReportElement[] elt)
For internal use only
|
static int |
findMinY(ReportElement[] elt)
For internal use only
|
static java.util.Vector<ReportElement> |
findSpecificElements(ReportElement[] ret,
java.lang.String type)
For internal use only.
|
short |
getAlign()
Get the horizontal alignment of this element.
|
java.util.Vector<java.awt.Color> |
getAllColors(java.util.Vector<java.awt.Color> colors)
for internal use only.
|
java.awt.Color |
getBgColor()
Get the background color of this element.
|
java.lang.String |
getBookmark()
internal use only
Gets the bookmark associated with this ReportElement.
|
int |
getBorder(quadbase.reportdesigner.ReportElements.BorderSide borderSide) |
java.awt.Color |
getBorderColor()
Get the border color of this element
|
int |
getBorderThickness()
Deprecated.
|
int |
getBottomBorder() |
java.lang.String |
getCustomID()
Get the custom ID of this element
|
double |
getDrawX()
internal use only
|
double |
getDrawX(int i)
internal use only
|
double |
getDrawY()
internal use only
|
double |
getDrawY(int i)
internal use only
|
java.lang.String |
getDrillDownName()
Get the web link of this element
|
static java.lang.String |
getElementType(ReportElement elt)
For internal use only
|
static java.lang.String |
getElementTypeName(int elementType) |
static java.util.Vector<ReportElement>[] |
getFirst2RowOfColumns(ReportElement[] elt) |
static java.util.Vector<ReportElement>[] |
getFirst2RowOfColumns(java.util.Vector<ReportElement> vec) |
java.awt.Font |
getFont()
Get the font name of this element
|
java.awt.Color |
getFontColor()
Get the Font color of this element.
|
double |
getHeight()
INCH Get the height of this element
|
double |
getHeight(boolean isMetric)
Gets the height.
|
int |
getHeightOfElement()
Gets the height of this element in pixel *
|
int |
getHeightOfElement(boolean forExport)
For Internal use only.
|
float |
getHeightToPoints()
POINTS This is for export to PDF format 1 inch = 72 points
|
java.lang.String |
getHint()
Get the link hint of this element
|
java.lang.String |
getID()
Get the id of this element
|
int |
getLeftBorder() |
java.lang.String |
getLink()
Get the web link of this element
|
static double |
getMaxXr(ReportElement[] elt)
For internal use only.
|
double |
getMin_Height() |
double |
getMin_Width() |
static double |
getMinX(ReportElement[] elt)
For internal use only.
|
java.awt.Font |
getRefFont()
INTERNAL USE ONLY
|
java.awt.Font |
getRefFontToDraw(boolean adjust)
INTERNAL USE ONLY ONLY FOR VIEWER.
|
int |
getRightBorder() |
double |
getRotateAngle() |
int |
getRoundCornerRadius() |
boolean[] |
getRoundCornersArray() |
java.lang.String |
getScript()
Gets the scripting text of this ReportElement, if available.
|
java.lang.String |
getScriptName()
Gets the script name.
|
Script |
getScriptObj()
Gets the Script Object.
|
java.lang.String[] |
getSecuredScripts()
internal use only *
|
ReportElement |
getSecurityLevel(java.lang.String levelName)
Get the secured ReportElement associated with the specified Security level name.
|
java.lang.String[] |
getSecurityLevels()
gets the security levels associated with this ReportElement.
|
protected java.util.Hashtable<java.lang.String,ReportElement> |
getSecurityMap()
For internal use only.
|
short |
getSnap()
for internal use only.
|
java.lang.String |
getStyleName()
Get the external style name of this element
|
java.lang.String |
getTarget()
Get the link target of this element
|
java.lang.String |
getText()
Get the text of this element
|
int |
getTopBorder() |
short |
getVAlign()
Get the vertical alignment of this element.
|
short |
getVSnap()
for internal use only.
|
double |
getWidth()
INCH Get the width of this element
|
double |
getWidth(boolean isMetric)
Get the width of this element
|
int |
getWidthOfElement()
This is used for the export of the DHTML
|
int |
getWidthOfElement(boolean forExport)
For Internal use only.
|
float |
getWidthToPoints()
POINTS This is for export to PDF format 1 inch = 72 points
|
double |
getX()
Get the X-coordinate value of the upper left corner of this element
|
double |
getX(boolean isMetric)
Get the X-coordinate value of the upper left corner of this element in inches/cms
|
int |
getXPos()
Get the X-coordinate value as the pixel
|
int |
getXPos(boolean forExport)
For Internal use only.
|
float |
getXToPoints()
For Internal use only.
|
double |
getY()
INCH Get the Y-coordinate value of the upper left corner of this element
|
double |
getY(boolean isMetric)
INCH/CM Get the Y-coordinate value of the upper left corner of this element
|
int |
getYPos()
Get the X-coordinate value as the pixel
|
int |
getYPos(boolean forExport)
For Internal use only.
|
float |
getYToPoints()
For internal use only *
|
int |
getZ()
Gets the z-index of this report element.
|
boolean |
hasBorder() |
boolean |
inBottomHalf(double cy)
For internal use only
|
boolean |
inLeftEnd(double cx)
For internal use only
|
boolean |
inLeftHalf(double cx)
For internal use only
|
boolean |
inRightEnd(double cx,
double w)
For internal use only
|
boolean |
inRightHalf(double cx)
For internal use only
|
boolean |
inTopHalf(double cy)
For internal use only
|
static boolean |
isCrossTabElt(ReportElement elt) |
boolean |
isDrawAgain()
internal use only
|
boolean |
isLocked()
internal use only
Gets whether this ReportElement position is locked
|
boolean |
isNoWrap()
For HTML use Check the status of html text wrapping
|
boolean |
isResizeToFitContent()
Gets whether this ReportElement should be resized to fit all of its content.
|
boolean |
isSecurityLevelDefined()
Is any security level defined for this element.
|
boolean |
isSecurityTextScript()
For internal use only.
|
boolean |
isShiftSecuredColX()
For internal use only.
|
boolean |
isShiftSecuredColXIncludeHeaderAndFooter()
For internal use only.
|
boolean |
isSnapToGrid()
internal use only *
|
boolean |
isUnderline()
Check the status of underline text
|
boolean |
isVisible()
Gets the status of the display of this ReportElement.
|
static void |
moveForCrossTabFixedField(ReportElement elt,
ReportElement[] elts,
boolean isHorizontal,
double change)
internal use only Shift surrounding report elements after moving one
|
static void |
moveForCrossTabFixedField(java.util.Vector<ReportElement> groupFormat,
ReportElement[] elts,
boolean isHorizontal,
double change) |
void |
newArrayX(int nRow)
internal use only
|
void |
newArrayY(int nRow)
internal use only
|
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 |
removeScriptReferenced(Script s)
internal use only.
|
void |
removeSecurityLevel(java.lang.String levelName)
Remove the security level associated with the specific name.
|
void |
renameSecurityLevel(java.lang.String oldName,
java.lang.String newName)
internal use only
|
void |
resize(double xratio,
double yratio)
Resizes this ReportElement.
|
static void |
resizeForCrossTabFixedField(ReportElement resizeItem,
ReportElement[] elts,
double newW,
double newH)
internal use only Shift surrounding report elements after moving one
|
static void |
resizeForCrossTabFixedField(java.util.Vector<ReportElement> resizeItems,
ReportElement[] elts,
double ratioW,
double ratioH,
double startXD,
double startYD)
internal use only Shift surrounding report elements after moving one
|
boolean |
scriptReferenced(Script s)
internal use only.
|
boolean |
securityScriptReferenced(Script s)
internal use only.
|
void |
setAlign(short newAlign)
Set the horizontal alignment of this element.
|
void |
setBgColor(java.awt.Color newColorBg)
Set the background color of this element.
|
void |
setBookmark(java.lang.String bookmark)
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.
|
void |
setBorder(int b)
Deprecated.
|
void |
setBorderColor(java.awt.Color newBorderColor)
Set the border color of this element
|
void |
setBorderThickness(int borderThickness)
Set the border thickness of this element
|
void |
setBorderThickness(int borderThickness,
quadbase.reportdesigner.ReportElements.BorderSide borderSide) |
void |
setBorderThickness(int topBorder,
int rightBorder,
int bottomBorder,
int leftBorder) |
void |
setBorderThickness(ReportElement elt) |
void |
setBottomBorder(int bottomBorder) |
void |
setCustomID(java.lang.String newID)
Set the custom ID of this element
|
void |
setDrawAgain(boolean b)
internal use only
|
void |
setDrawX(double drawX)
internal use only
|
void |
setDrawX(int i,
double x)
internal use only
|
void |
setDrawY(double drawY)
internal use only
|
void |
setDrawY(int i,
double y)
internal use only
|
void |
setDrillDownName(java.lang.String name)
Set the drilldown name of this element
|
void |
setFont(java.awt.Font newFont)
Set the font name of this element
|
void |
setFontColor(java.awt.Color newColorFt)
Set the Font color of this element.
|
void |
setHeight(double height)
INCH Set the height of this element
|
void |
setHeight(double height,
boolean isMetric)
INCH/CM Set the height of this element
|
void |
setHint(java.lang.String newHint)
Set the link hint of this element
|
void |
setID(java.lang.String newID)
Set the id of this element
|
void |
setID(java.lang.String prefix,
java.lang.Object[] elts)
For internal use only.
|
void |
setInchGridSpace(double space)
internal use only *
|
void |
setLeftBorder(int leftBorder) |
void |
setLink(java.lang.String newLink)
Set the web link of this element
|
void |
setLocked(boolean state)
internal use only
Sets whether the ReportElement position should be locked.
|
void |
setMinHeight(double mH) |
void |
setMinWidth(double mW) |
void |
setNoWrap(boolean w)
For HTML use Set the status of html text wrapping
|
void |
setResizeToFitContent(boolean b)
Sets whether this ReportElement should be resized to fit all of its content.
|
void |
setRightBorder(int rightBorder) |
void |
setRotateAngle(double rotate_angle) |
void |
setRotateAngle(double rotate_angle,
boolean resizeCell) |
void |
setRoundCornerRadius(int roundCornerRadius) |
void |
setRoundCornersArray(boolean[] roundCorners) |
void |
setScript(java.lang.String s)
Sets the scripting text of the ReportElement.
|
void |
setScriptName(java.lang.String s)
Sets the Script name.
|
void |
setScriptObj(Script scriptObj)
Sets the Script Object.
|
void |
setScriptObjNull(Script scriptObj)
set the script Object to null
|
void |
setSecurityLevelProperties(java.lang.String levelName,
ReportElement level)
For internal use only.
|
void |
setSecurityMap(java.util.Hashtable<java.lang.String,ReportElement> table)
For internal use only.
|
void |
setSecurityTextScript(boolean state)
For internal use only.
|
void |
setShiftSecuredColX(boolean state)
For internal use only.
|
void |
setShiftSecuredColXIncludeHeaderAndFooter(boolean state)
For internal use only.
|
void |
setSnap(short snap)
for internal use only.
|
void |
setSnapToGrid(boolean snapToGrid,
boolean metric,
double stepSize)
internal use only *
|
void |
setSnapToGrid(boolean snapToGrid,
double stepSize,
double cmStepSize)
internal use only *
|
void |
setStyleName(java.lang.String newStyleName)
Set the style name of this element
|
void |
setTarget(java.lang.String newTarget)
Set the link target of this element
|
void |
setText(java.lang.String newText)
Set the text of this element
|
void |
setTopBorder(int topBorder) |
void |
setUnderline(boolean underline)
set the status of underline text
|
void |
setVAlign(short newVAlign)
Set the vertical alignment of this element.
|
void |
setVisible(boolean b)
Sets the status of the display of this ReportElement.
|
void |
setVSnap(short vsnap)
for internal use only.
|
void |
setWidth(double width)
INCH Set the width of this element
|
void |
setWidth(double width,
boolean isMetric)
INCH/CM Set the width of this element
|
void |
setX(double x)
INCHES Set the X-coordinate value of the upper left corner of this element
|
void |
setX(double x,
boolean isMetric)
INCH/CM Set the X-coordinate value of the upper left corner of this element
|
void |
setXX(double x)
internal use only
|
void |
setXX(double x,
boolean doNotReCal) |
void |
setY(double y)
INCH Set the Y-coordinate value of the upper left corner of this element
|
void |
setY(double y,
boolean isMetric)
INCH/CM Set the Y-coordinate value of the upper left corner of this element
|
void |
setYY(double y)
internal use only *
|
void |
setYY(double y,
boolean doNotReCal) |
void |
setZ(int z)
Sets the z-index of this report element.
|
static void |
shift(ReportElement elt,
ReportElement[] elts,
boolean isHorizontal,
double change)
internal use only Shift surrounding report elements after resizing one
|
static void |
shiftObjectsOnMove(ReportElement elt,
ReportElement[] elts,
boolean isHorizontal,
double change)
internal use only For internal use only--move only surrounding objects
|
static void |
shiftOnMove(ReportElement elt,
ReportElement[] elts,
boolean isHorizontal,
double change)
internal use only Shift surrounding report elements after moving one
|
static java.util.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 java.util.Vector<ReportElement[]> |
sortElementHorizontally(ReportElement[] areportcell)
For internal use only.
|
static java.util.Vector<ReportElement> |
sortElementInXYOrder(ReportElement[] areportCell) |
static java.util.Vector<ReportElement[]> |
sortElementVertically(ReportElement[] areportcell)
For internal use only.
|
static void |
swapElements(ReportElement elt1,
ReportElement elt2,
ReportElement[] cells)
internal use only
Swap 2 elements
|
void |
switchSecurityProperties(ReportElement element)
For internal use only.
|
void |
write(java.io.DataOutput out)
For internal use only.
|
void |
writeXML(java.io.Writer out,
boolean writeElementTag)
For internal use only.
|
protected java.awt.Color bgColor
protected double x
protected double width
protected double height
protected double min_width
protected double min_height
protected double rotate_angle
protected java.awt.Color borderColor
protected boolean isLocked
protected short snap
protected short vsnap
protected boolean visible
protected java.util.Hashtable<java.lang.String,ReportElement> securityMap
protected int roundCornerRadius
protected boolean[] roundCornersArray
public static final int SORT_Y
public static final int SORT_X
public static final int SORT_Z
public static final int CHART
public static final int GRID
public static final int LINE
public static final int IMAGE
public static final int COLUMN
public static final int FORMULA
public static final int LABEL
public static final int SECTION
public static final int TABLE
public static final int SUBREPORT
public static final int RTFOBJECT
public static final int TABLEOFCONTENTS
public static final int COLUMNHEADER
public static final int TITLE
public static final int NONE
public static final java.lang.String[] ID_TYPE
public static final int ROTATE_NONE
public static final int ROTATE_CLOCKWISE
public static final int ROTATE_COUNTERCLOCKWISE
public ReportElement()
public ReportElement(java.lang.String name)
public void copy(ReportElement _elt)
_elt
- The ReportElement object to be copiedpublic void deepCopy(ReportElement _elt)
public void copyTemplate(ReportElement _elt)
public void applyTemplate(ReportElement _elt)
_elt
- The ReportElement template to be appliedpublic void applyTemplate(ReportElement _elt, boolean applyScript)
public void applyTemplate(ReportElement _elt, boolean applyScript, boolean applyElementPosition, boolean copyDrillDownName)
public void applyStyle(ReportElement _elt)
public void applyStyleButNotWH(ReportElement _elt)
public void copyStyleWithScriptsButNotWH(ReportElement _elt, boolean copyScriptsAndDrillDownLinks)
public boolean equals(ReportElement _elt)
_elt
- The ReportElement being compared topublic boolean contains(double cx, double cy)
public boolean containsX(double cx, double w)
public boolean containsY(double cy, double h)
public boolean inTopHalf(double cy)
public boolean inBottomHalf(double cy)
public boolean inLeftHalf(double cx)
public boolean inRightHalf(double cx)
public boolean inLeftEnd(double cx)
public boolean inRightEnd(double cx, double w)
public boolean isSecurityTextScript()
public void setSecurityTextScript(boolean state)
public boolean isShiftSecuredColX()
public boolean isShiftSecuredColXIncludeHeaderAndFooter()
public void setShiftSecuredColX(boolean state)
public void setShiftSecuredColXIncludeHeaderAndFooter(boolean state)
public void applySecurity(ReportElement _elt)
public java.lang.String getScript()
public void setScript(java.lang.String s)
public java.lang.String getScriptName()
public void setScriptName(java.lang.String s)
public Script getScriptObj()
public void setScriptObj(Script scriptObj)
public void setScriptObjNull(Script scriptObj)
public short getAlign()
IAlignConstants
public void setAlign(short newAlign)
IAlignConstants
public short getVAlign()
IAlignConstants
public void setVAlign(short newVAlign)
IAlignConstants
public void setSnap(short snap)
public short getSnap()
public void setVSnap(short vsnap)
public short getVSnap()
public java.awt.Color getBgColor()
public void setBgColor(java.awt.Color newColorBg)
newColorBg
- the new background Colorpublic java.awt.Color getFontColor()
public void setFontColor(java.awt.Color newColorFt)
newColorFt
- the new Font Colorpublic java.util.Vector<java.awt.Color> getAllColors(java.util.Vector<java.awt.Color> colors)
public boolean isUnderline()
public void setUnderline(boolean underline)
underline
- the new status of underline textpublic java.awt.Font getFont()
public java.awt.Font getRefFont()
public void setFont(java.awt.Font newFont)
Font
- font name of this elementpublic java.awt.Font getRefFontToDraw(boolean adjust)
public java.lang.String getText()
public void setText(java.lang.String newText)
newText
- the value of new textpublic java.lang.String getID()
public void setID(java.lang.String newID)
newID
- the value of new idpublic java.lang.String getCustomID()
public void setCustomID(java.lang.String newID)
newID
- the value of new custom IDpublic boolean isNoWrap()
public void setNoWrap(boolean w)
w
- the new status of html text wrappingpublic boolean isResizeToFitContent()
public void setResizeToFitContent(boolean b)
public boolean isLocked()
public void setLocked(boolean state)
public java.lang.String getStyleName()
public void setStyleName(java.lang.String newStyleName)
newStyleName
- the value of new style namepublic java.lang.String getLink()
public void setLink(java.lang.String newLink)
newLink
- the value of new web linkpublic java.lang.String getHint()
public void setHint(java.lang.String newHint)
newhint
- the value of new link hintpublic java.lang.String getTarget()
public void setTarget(java.lang.String newTarget)
newtarget
- the value of new link targetpublic java.lang.String getDrillDownName()
public void setDrillDownName(java.lang.String name)
name
- the drilldown value of the drilldown reportpublic double getX()
public int getXPos()
public int getXPos(boolean forExport)
public float getXToPoints()
public float getYToPoints()
public double getX(boolean isMetric)
isMetric
- If true, the result is in cm, inches otherwise.public void setX(double x)
x
- x-coordinate value of the upper left corner of this elementpublic void setXX(double x, boolean doNotReCal)
public void setX(double x, boolean isMetric)
x
- x-coordinate value of the upper left corner of this elementpublic void setXX(double x)
public double getY()
public int getYPos()
public int getYPos(boolean forExport)
public double getY(boolean isMetric)
isMetric
- If true, the result is in cm, inches otherwise.public void setY(double y)
y
- y-coordinate value of the upper left corner of this elementpublic void setYY(double y, boolean doNotReCal)
public void setYY(double y)
public void setY(double y, boolean isMetric)
y
- y-coordinate value of the upper left corner of this elementpublic double getWidth()
public int getWidthOfElement()
public int getWidthOfElement(boolean forExport)
public float getWidthToPoints()
public double getWidth(boolean isMetric)
public void setWidth(double width)
width
- width of this elementpublic void setWidth(double width, boolean isMetric)
width
- width of this elementisMetric
- if using metric systempublic void setMinWidth(double mW)
public void setMinHeight(double mH)
public double getMin_Width()
public double getMin_Height()
public double getHeight()
public int getHeightOfElement()
public int getHeightOfElement(boolean forExport)
public float getHeightToPoints()
public double getHeight(boolean isMetric)
isMetric
- is it metric (cm) or no (INCH)public void setHeight(double height)
height
- height of this elementpublic void setHeight(double height, boolean isMetric)
height
- height of this elementisMetric
- if using metric systempublic void resize(double xratio, double yratio)
@Deprecated public int getBorderThickness()
public void setBorderThickness(int borderThickness)
newBorder
- new border thickness of this elementpublic void setBorderThickness(int borderThickness, quadbase.reportdesigner.ReportElements.BorderSide borderSide)
public void setBorderThickness(int topBorder, int rightBorder, int bottomBorder, int leftBorder)
@Deprecated public void setBorder(int b)
public java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color newBorderColor)
newBorderColor
- new border color of this elementpublic static ReportElement[] sortElement(ReportElement[] elemsToSort, int order, boolean asc)
public static java.util.Vector<ReportElement> sortElementInXYOrder(ReportElement[] areportCell)
public static java.util.Vector<ReportElement[]> sortElementHorizontally(ReportElement[] areportcell)
public static java.util.Vector<ReportElement[]> sortElement(ReportElement[] areportcell)
public static java.util.Vector<ReportElement[]> sortElementVertically(ReportElement[] areportcell)
public static java.util.Vector<ReportElement>[] getFirst2RowOfColumns(java.util.Vector<ReportElement> vec)
public static java.util.Vector<ReportElement>[] getFirst2RowOfColumns(ReportElement[] elt)
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void writeXML(java.io.Writer out, boolean writeElementTag) throws java.io.IOException
java.io.IOException
public void readXML(org.w3c.dom.Node node, int version) throws java.lang.Exception
java.lang.Exception
public void read(java.io.DataInput in, int version) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getElementType(ReportElement elt)
public static int findElementType(ReportElement elt)
public static int findGroupElementType(ReportElement elt)
public void setID(java.lang.String prefix, java.lang.Object[] elts)
public static java.util.Vector<ReportElement> findSpecificElements(ReportElement[] ret, java.lang.String type)
public static void swapElements(ReportElement elt1, ReportElement elt2, ReportElement[] cells)
public static void shift(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change)
public static void shiftOnMove(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change)
public static void resizeForCrossTabFixedField(java.util.Vector<ReportElement> resizeItems, ReportElement[] elts, double ratioW, double ratioH, double startXD, double startYD)
public static boolean contains(ReportElement elt, java.util.Vector<ReportElement> eltList)
public static void resizeForCrossTabFixedField(ReportElement resizeItem, ReportElement[] elts, double newW, double newH)
public static void moveForCrossTabFixedField(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change)
public static void moveForCrossTabFixedField(java.util.Vector<ReportElement> groupFormat, ReportElement[] elts, boolean isHorizontal, double change)
public static boolean isCrossTabElt(ReportElement elt)
public static void shiftObjectsOnMove(ReportElement elt, ReportElement[] elts, boolean isHorizontal, double change)
public static int findMinX(ReportElement[] elt)
public static int findMaxXr(ReportElement[] elt)
public static double getMinX(ReportElement[] elt)
public static double getMaxXr(ReportElement[] elt)
public static int findMinY(ReportElement[] elt)
public static int findMaxYd(ReportElement[] elt)
public static ReportElement[] findElementsToRight(ReportElement r, ReportElement[] ret)
public static java.util.Vector<ReportElement> findElementsToRight(ReportElement[] r, ReportElement[] ret)
public static ReportElement[] findElementsToLeft(ReportElement r, ReportElement[] ret)
public static ReportElement[] findElementsAbove(ReportElement r, ReportElement[] ret)
public static java.util.Vector<ReportElement> findElementsBelow(ReportElement[] r, ReportElement[] ret)
public void applyImageTemplate(ReportElement _elt)
public void applyImageTemplateExceptBound(ReportElement _elt)
public void setBorderThickness(ReportElement elt)
public boolean scriptReferenced(Script s)
public boolean securityScriptReferenced(Script s)
public void removeScriptReferenced(Script s)
public void createScriptObject(java.util.Vector<Script> scripts)
public void createScriptObjectFromName(java.util.Vector<Script> scripts)
public boolean isSnapToGrid()
public void setSnapToGrid(boolean snapToGrid, double stepSize, double cmStepSize)
public void setSnapToGrid(boolean snapToGrid, boolean metric, double stepSize)
public void setInchGridSpace(double space)
public boolean isVisible()
public void setVisible(boolean b)
public boolean isSecurityLevelDefined()
public ReportElement addSecurityLevel(java.lang.String levelName)
levelName
- the name of the security level to add to this ReportElementpublic ReportElement getSecurityLevel(java.lang.String levelName)
levelName
- the name of the security level to get the secured ReportElementpublic void removeSecurityLevel(java.lang.String levelName)
public java.lang.String[] getSecurityLevels()
public java.lang.String[] getSecuredScripts()
public void setSecurityLevelProperties(java.lang.String levelName, ReportElement level)
public void setSecurityMap(java.util.Hashtable<java.lang.String,ReportElement> table)
protected java.util.Hashtable<java.lang.String,ReportElement> getSecurityMap()
public void switchSecurityProperties(ReportElement element)
public void setBookmark(java.lang.String bookmark)
bookmark
- name of the bookmark.public java.lang.String getBookmark()
for more detail.
public int getZ()
public void setZ(int z)
z
- the z-index, from the range of 0 <= z < sizeof(int), negative values are truncated
to 0.public void setDrawAgain(boolean b)
public boolean isDrawAgain()
public double getDrawX()
public void setDrawX(double drawX)
public double getDrawY()
public void setDrawY(double drawY)
public void newArrayY(int nRow)
public void newArrayX(int nRow)
public double getDrawY(int i)
public double getDrawX(int i)
public void setDrawY(int i, double y)
public void setDrawX(int i, double x)
public void renameSecurityLevel(java.lang.String oldName, java.lang.String newName)
public double getRotateAngle()
public void setRotateAngle(double rotate_angle)
public void setRotateAngle(double rotate_angle, boolean resizeCell)
public void setRoundCornerRadius(int roundCornerRadius)
roundCornerRadius
- the roundCornerRadius to setpublic int getRoundCornerRadius()
public void setRoundCornersArray(boolean[] roundCorners)
roundCorners
- the roundCorners to setpublic boolean[] getRoundCornersArray()
public static boolean doesElementSupportRoundCorners(ReportElement elt)
public static java.lang.String getElementTypeName(int elementType)
public int getBorder(quadbase.reportdesigner.ReportElements.BorderSide borderSide)
public int getTopBorder()
public void setTopBorder(int topBorder)
public int getBottomBorder()
public void setBottomBorder(int bottomBorder)
public int getLeftBorder()
public void setLeftBorder(int leftBorder)
public int getRightBorder()
public void setRightBorder(int rightBorder)
public boolean hasBorder()