EspressReport 6.6

quadbase.reportdesigner.ReportElements
Class ReportGrid

java.lang.Object
  extended by quadbase.reportdesigner.ReportElements.ReportElement
      extended by quadbase.reportdesigner.ReportElements.ReportCell
          extended by quadbase.reportdesigner.ReportElements.ReportImage
              extended by quadbase.reportdesigner.ReportElements.ReportGrid
All Implemented Interfaces:
java.io.Serializable, quadbase.common.util.internal.IReportImage

public class ReportGrid
extends ReportImage

This class can be used to insert grid anywhere in the Report--in the ReportSection, or ReportTable.

See Also:
Serialized Form

Field Summary
static int DASH
           
static int DOUBLE
           
static int SOLID
           
static java.lang.String XMLTAG
           
 
Fields inherited from class quadbase.reportdesigner.ReportElements.ReportImage
CENTER, DBImageDir, FIT, TILE
 
Fields inherited from class quadbase.reportdesigner.ReportElements.ReportElement
bgColor, borderColor, CHART, COLUMN, COLUMNHEADER, FORMULA, GRID, height, ID_TYPE, IMAGE, isLocked, LABEL, LINE, min_height, min_width, NONE, rotate_angle, ROTATE_CLOCKWISE, ROTATE_COUNTERCLOCKWISE, ROTATE_NONE, roundCornerRadius, roundCornersArray, RTFOBJECT, SECTION, securityMap, snap, SORT_X, SORT_Y, SORT_Z, SUBREPORT, TABLE, TABLEOFCONTENTS, TITLE, visible, vsnap, width, x
 
Constructor Summary
ReportGrid()
          Constructs a ReportGrid with no label
 
Method Summary
 void applyTemplate(ReportGrid _grid)
           
 void applyTemplate(ReportGrid _grid, boolean applyScript)
           
 void copy(ReportGrid _grid)
          for internal use only
 void copyTemplate(ReportGrid _grid)
           
static ReportGrid createGrid(java.io.DataInput in, int version)
          For internal use only.
static ReportGrid createGrid(org.w3c.dom.Node node, int version)
          For internal use only.
 void deepCopy(ReportGrid _grid)
          for internal use only
 int getBorder(quadbase.reportdesigner.ReportElements.BorderSide borderSide)
           
 int getGridStyle()
           
 ReportGrid getHeadNode()
           
 java.lang.String getPreviousID()
           
 boolean isCrossSection()
           
 boolean isMatchColumnWidths()
          POINTS This is for export to PDF format 1 inch = 72 points
 ReportGrid next()
           
 ReportGrid previous()
           
 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 setBgColor(java.awt.Color c)
          public void setHeight(double h) { this.height = h; }
 void setBorder(int b)
          Deprecated. 
 void setBorderColor(java.awt.Color c)
          Set the border color of this element
 void setBorderThickness(int b)
          Set the border thickness of this element
 void setBorderThickness(int borderThickness, quadbase.reportdesigner.ReportElements.BorderSide borderSide)
           
 void setGridStyle(int style)
           
 void setLocked(boolean b)
          internal use only

Sets whether the ReportElement position should be locked.

 void setMatchColumnWidths(boolean b)
           
 void setNext(ReportGrid n)
           
 void setNextGrid(ReportGrid _grid)
           
 void setPrevious(ReportGrid p)
           
 void setRoundCornerRadius(int radius)
           
 void setRoundCornersArray(boolean[] roundCornersArray)
           
 void setSnap(short snap)
          for internal use only.
 void setVSnap(short vsnap)
          for internal use only.
 void setWidth(double width)
          INCH 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 write(java.io.DataOutput out)
          For internal use only.
 void writeXML(java.io.Writer out, boolean writeElementTag)
          For internal use only.
 
Methods inherited from class quadbase.reportdesigner.ReportElements.ReportImage
applyTemplate, applyTemplate, copy, copyTemplate, createImage, createImage, createImage, createReportImage, deepCopy, equals, getBytes, getFlashFrameCount, getFlashFrameRate, getImageOption, getImagePath, getImageType, getImageURL, getJPEGQuality, getPdfImageType, getPNGCompression, getRelativePath, getSavedFileLocation, getSavedFileURL, isDBImage, isGIFTransparent, read, setBytes, setBytes, setDBImage, setFlashFrameCount, setFlashFrameRate, setGIFTransparent, setHTMLParameters, setImageOption, setImagePath, setImagePath, setImageType, setImageURL, setImageURL, setJPEGQuality, setPdfImageType, setPNGCompression, setRelativePath, toString, write, writeImageData
 
Methods inherited from class quadbase.reportdesigner.ReportElements.ReportCell
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
 
Methods inherited from class quadbase.reportdesigner.ReportElements.ReportElement
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, 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, setBookmark, setBorderThickness, setBottomBorder, setCustomID, setDrawAgain, setDrawX, setDrawX, setDrawY, setDrawY, setDrillDownName, setFont, setFontColor, setHeight, setHeight, setHint, setID, setID, setInchGridSpace, setLeftBorder, setLink, setMinHeight, setMinWidth, setNoWrap, setResizeToFitContent, setRightBorder, setRotateAngle, setRotateAngle, setScript, setScriptName, setScriptObj, setScriptObjNull, setSecurityLevelProperties, setSecurityMap, setSecurityTextScript, setShiftSecuredColX, setShiftSecuredColXIncludeHeaderAndFooter, setSnapToGrid, setSnapToGrid, setStyleName, setTarget, setText, setTopBorder, setUnderline, setVAlign, setVisible, setWidth, setX, setXX, setXX, setY, setY, setYY, setYY, setZ, shift, shiftObjectsOnMove, shiftOnMove, sortElement, sortElement, sortElementHorizontally, sortElementInXYOrder, sortElementVertically, swapElements, switchSecurityProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOLID

public static final int SOLID
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

DASH

public static final int DASH
See Also:
Constant Field Values

XMLTAG

public static final java.lang.String XMLTAG
See Also:
Constant Field Values
Constructor Detail

ReportGrid

public ReportGrid()
Constructs a ReportGrid with no label

Method Detail

next

public ReportGrid next()

previous

public ReportGrid previous()

setNext

public void setNext(ReportGrid n)

setPrevious

public void setPrevious(ReportGrid p)

setNextGrid

public void setNextGrid(ReportGrid _grid)

getPreviousID

public java.lang.String getPreviousID()

isCrossSection

public boolean isCrossSection()

setX

public void setX(double x)
Description copied from class: ReportElement
INCHES Set the X-coordinate value of the upper left corner of this element

Overrides:
setX in class ReportElement
Parameters:
x - x-coordinate value of the upper left corner of this element

setWidth

public void setWidth(double width)
Description copied from class: ReportElement
INCH Set the width of this element

Overrides:
setWidth in class ReportElement
Parameters:
width - width of this element

setBgColor

public void setBgColor(java.awt.Color c)
public void setHeight(double h) { this.height = h; }

Overrides:
setBgColor in class ReportElement
Parameters:
c - the new background Color

setBorderColor

public void setBorderColor(java.awt.Color c)
Description copied from class: ReportElement
Set the border color of this element

Overrides:
setBorderColor in class ReportElement
Parameters:
c - new border color of this element

setBorderThickness

public void setBorderThickness(int b)
Description copied from class: ReportElement
Set the border thickness of this element

Overrides:
setBorderThickness in class ReportElement

setBorderThickness

public void setBorderThickness(int borderThickness,
                               quadbase.reportdesigner.ReportElements.BorderSide borderSide)
Overrides:
setBorderThickness in class ReportElement

getBorder

public int getBorder(quadbase.reportdesigner.ReportElements.BorderSide borderSide)
Overrides:
getBorder in class ReportElement

setRoundCornerRadius

public void setRoundCornerRadius(int radius)
Overrides:
setRoundCornerRadius in class ReportElement
Parameters:
radius - the roundCornerRadius to set

setRoundCornersArray

public void setRoundCornersArray(boolean[] roundCornersArray)
Overrides:
setRoundCornersArray in class ReportElement
Parameters:
roundCornersArray - the roundCorners to set

setBorder

@Deprecated
public void setBorder(int b)
Deprecated. 

Overrides:
setBorder in class ReportElement

setLocked

public void setLocked(boolean b)
Description copied from class: ReportElement
internal use only

Sets whether the ReportElement position should be locked. If this element is snap to guideline, then it cann't be locked.

Overrides:
setLocked in class ReportElement

getHeadNode

public ReportGrid getHeadNode()

getGridStyle

public int getGridStyle()

setGridStyle

public void setGridStyle(int style)

setSnap

public void setSnap(short snap)
for internal use only.

Overrides:
setSnap in class ReportElement

setVSnap

public void setVSnap(short vsnap)
for internal use only.

Overrides:
setVSnap in class ReportElement

isMatchColumnWidths

public boolean isMatchColumnWidths()
POINTS This is for export to PDF format 1 inch = 72 points


setMatchColumnWidths

public void setMatchColumnWidths(boolean b)

copy

public void copy(ReportGrid _grid)
for internal use only


deepCopy

public void deepCopy(ReportGrid _grid)
for internal use only


applyTemplate

public void applyTemplate(ReportGrid _grid)

applyTemplate

public void applyTemplate(ReportGrid _grid,
                          boolean applyScript)

copyTemplate

public void copyTemplate(ReportGrid _grid)

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
For internal use only.

Overrides:
write in class ReportImage
Throws:
java.io.IOException

writeXML

public void writeXML(java.io.Writer out,
                     boolean writeElementTag)
              throws java.io.IOException
For internal use only.

Overrides:
writeXML in class ReportImage
Throws:
java.io.IOException

createGrid

public static ReportGrid createGrid(org.w3c.dom.Node node,
                                    int version)
                             throws java.lang.Exception
For internal use only.

Throws:
java.lang.Exception

readXML

public void readXML(org.w3c.dom.Node node,
                    int version)
             throws java.lang.Exception
For internal use only.

Overrides:
readXML in class ReportImage
Throws:
java.lang.Exception

createGrid

public static ReportGrid createGrid(java.io.DataInput in,
                                    int version)
                             throws java.lang.Exception
For internal use only.

Throws:
java.lang.Exception

read

public void read(java.io.DataInput in,
                 int version)
          throws java.lang.Exception
For internal use only.

Overrides:
read in class ReportImage
Throws:
java.lang.Exception

EspressReport 6.6