Class CrossTabOptions

  • All Implemented Interfaces:
    java.io.Serializable

    public class CrossTabOptions
    extends java.lang.Object
    implements java.io.Serializable
    The properties of the Crosstab.
    Since:
    12.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCellMarginsX()
      Returns the left and right cell margins of all cells
      int getCellMarginsY()
      Returns the top and bottom cell margins of all cells
      boolean getRepeatColumnLabels()
      Returns whether column labels should be repeated (true) or not (false).
      boolean getRepeatRowLabels()
      Returns whether row labels should be repeated (true) or not (false).
      boolean getShowGrid()
      Returns if the crosstab gridlines are enabled or disabled.
      If the value is false then the crosstab will be displayed without gridlines.
      boolean getSummaryHorizontal()
      Get the summary horizontal flag.
      boolean getWrapEnabled()
      Returns the behavior of small crosstabs if they do not fit the page.
      void setCellMarginsX​(int cellMargins)
      Sets left and right cell margins of all cells.
      void setCellMarginsY​(int cellMargins)
      Sets top and bottom cell margins of all cells.
      void setRepeatColumnLabels​(boolean repeatColumnLabels)
      Sets whether column Labels should be repeated (true) or not (false).
      void setRepeatRowLabels​(boolean repeatRowLabels)
      Sets whether row Labels should be repeated (true) or not (false).
      void setShowGrid​(boolean showGrid)
      Switch the crosstab gridlines on or off with this method.
      If it is true then the crosstab gridlines will be displayed with the designed line style, color and width.
      void setSummaryHorizontal​(boolean summaryHorizontal)
      Set the summary horizontal flag.
      void setWrapEnabled​(boolean value)
      Use this method to set the behavior of small crosstabs if they do not fit the page.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setShowGrid

        public void setShowGrid​(boolean showGrid)
        Switch the crosstab gridlines on or off with this method.
        If it is true then the crosstab gridlines will be displayed with the designed line style, color and width.
        Parameters:
        showGrid - true if the crosstab gridlines should be displayed, else false.
        Since:
        12.0
        See Also:
        getShowGrid()
      • getShowGrid

        public boolean getShowGrid()
        Returns if the crosstab gridlines are enabled or disabled.
        If the value is false then the crosstab will be displayed without gridlines. If it is true then the crosstab gridlines will be displayed with the designed line style, color and width.
        Returns:
        true if the crosstab gridlines will be displayed, else false.
        Since:
        12.0
        See Also:
        setShowGrid(boolean)
      • setRepeatRowLabels

        public void setRepeatRowLabels​(boolean repeatRowLabels)
        Sets whether row Labels should be repeated (true) or not (false).
        Parameters:
        repeatRowLabels - The value of the property 'repeat row labels'
        Since:
        12.0
      • getRepeatRowLabels

        public boolean getRepeatRowLabels()
        Returns whether row labels should be repeated (true) or not (false).
        Returns:
        True if row labels should be repeated, else false.
        Since:
        12.0
      • setRepeatColumnLabels

        public void setRepeatColumnLabels​(boolean repeatColumnLabels)
        Sets whether column Labels should be repeated (true) or not (false).
        Parameters:
        repeatColumnLabels - The value of the property 'repeat column labels'
        Since:
        12.0
      • getRepeatColumnLabels

        public boolean getRepeatColumnLabels()
        Returns whether column labels should be repeated (true) or not (false).
        Returns:
        True if column labels should be repeated, else false.
        Since:
        12.0
      • getCellMarginsX

        public int getCellMarginsX()
        Returns the left and right cell margins of all cells
        Returns:
        the margins
        Since:
        12.0
      • getCellMarginsY

        public int getCellMarginsY()
        Returns the top and bottom cell margins of all cells
        Returns:
        the margins
        Since:
        12.0
      • setCellMarginsX

        public void setCellMarginsX​(int cellMargins)
        Sets left and right cell margins of all cells.
        Parameters:
        cellMargins - The cellMargins to set
        Since:
        12.0
      • setCellMarginsY

        public void setCellMarginsY​(int cellMargins)
        Sets top and bottom cell margins of all cells.
        Parameters:
        cellMargins - The cellMargins to set
        Since:
        12.0
      • setWrapEnabled

        public void setWrapEnabled​(boolean value)
        Use this method to set the behavior of small crosstabs if they do not fit the page. If true the crosstab will be wrapped and the second part will be put below the first. If false the second part of the crosstab will be put on the following page.
        Parameters:
        value - If true the crosstab will be wrapped and the second part will be put below the first.
        Since:
        12.0
      • getWrapEnabled

        public boolean getWrapEnabled()
        Returns the behavior of small crosstabs if they do not fit the page. If true the crosstab will be wrapped and the second part will be put below the first. If false the second part of the crosstab will be put on the following page.
        Returns:
        Behavior of the crosstab
        Since:
        12.0
      • setSummaryHorizontal

        public void setSummaryHorizontal​(boolean summaryHorizontal)
        Set the summary horizontal flag. If the crosstab has more as one summary field then the alignment can be horizontal or vertical.
        Parameters:
        summaryHorizontal - true, if the summaries arranged in horizontal manner
        Since:
        12.0
      • getSummaryHorizontal

        public boolean getSummaryHorizontal()
        Get the summary horizontal flag. The default value is false.
        Returns:
        the summary horizontal flag
        Since:
        12.0