Class ReportGrid

All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • ReportGrid

      public ReportGrid()
      Constructs a ReportGrid with no label
  • Method Details

    • next

      public ReportGrid next()
    • previous

      public ReportGrid previous()
    • setNext

      public void setNext(ReportGrid n)
    • setPrevious

      public void setPrevious(ReportGrid p)
    • getPrev

      public ReportGrid getPrev()
    • getNext

      public ReportGrid getNext()
    • setNextGrid

      public void setNextGrid(ReportGrid _grid)
    • getPreviousID

      public 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(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(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(DataOutput out) throws IOException
      For internal use only.
      Overrides:
      write in class ReportImage
      Throws:
      IOException
    • writeXML

      public void writeXML(Writer out, boolean writeElementTag) throws IOException
      For internal use only.
      Overrides:
      writeXML in class ReportImage
      Throws:
      IOException
    • createGrid

      public static ReportGrid createGrid(Node node, int version) throws Exception
      For internal use only.
      Throws:
      Exception
    • readXML

      public void readXML(Node node, int version) throws Exception
      For internal use only.
      Overrides:
      readXML in class ReportImage
      Throws:
      Exception
    • createGrid

      public static ReportGrid createGrid(DataInput in, int version) throws Exception
      For internal use only.
      Throws:
      Exception
    • read

      public void read(DataInput in, int version) throws Exception
      For internal use only.
      Overrides:
      read in class ReportImage
      Throws:
      Exception