com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Table

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public final class Table
    extends BaseParagraph

    Represents a table that can be added to the page.

    • Constructor Detail

      • Table

        public Table()

        Default ctor

    • Method Detail

      • getBackgroundColor

        public final Color getBackgroundColor()

        Gets table background color

        Returns:
        Color object
      • setBackgroundColor

        public final void setBackgroundColor(Color value)

        Sets table background color

        Parameters:
        value - Color object
      • getBreakText

        public final TextFragment getBreakText()

        Gets break text for table

        Returns:
        TextFragment object
      • setBreakText

        public final void setBreakText(TextFragment value)

        Sets break text for table

        Parameters:
        value - TextFragment object
      • getCornerStyle

        public final int getCornerStyle()

        Gets the styles of the border corners

        Returns:
        BorderCornerStyle value
        See Also:
        BorderCornerStyle
      • setCornerStyle

        public final void setCornerStyle(int value)

        Gets or sets the styles of the border corners

        Parameters:
        value - BorderCornerStyle value
        See Also:
        BorderCornerStyle
      • getRepeatingRowsStyle

        public final TextState getRepeatingRowsStyle()

        Gets the style for repeating rows

        Returns:
        TextState object
      • setRepeatingRowsStyle

        public final void setRepeatingRowsStyle(TextState value)

        Gets the style for repeating rows

        Parameters:
        value - TextState object
      • getRepeatingColumnsCount

        public final int getRepeatingColumnsCount()

        Gets or sets the maximum columns count for table

        Returns:
        int value
      • setRepeatingColumnsCount

        public final void setRepeatingColumnsCount(int value)

        Gets or sets the maximum columns count for table

        Parameters:
        value - int value
      • getRepeatingRowsCount

        public final int getRepeatingRowsCount()

        Gets the first rows count repeated for several pages

        Returns:
        int value
      • setRepeatingRowsCount

        public final void setRepeatingRowsCount(int value)

        Gets the first rows count repeated for several pages

        Parameters:
        value - int value
      • getColumnWidths

        public final String getColumnWidths()

        Gets the column widths of the table.

        Returns:
        String value
      • setColumnWidths

        public final void setColumnWidths(String value)

        Gets the column widths of the table.

        Parameters:
        value - String value
      • getBroken

        public final int getBroken()

        Gets or sets table vertial broken;

        Returns:
        TableBroken value
        See Also:
        TableBroken
      • setBroken

        public final void setBroken(int value)

        Gets or sets table vertial broken;

        Parameters:
        value - TableBroken value
        See Also:
        TableBroken
      • getDefaultCellBorder

        public final BorderInfo getDefaultCellBorder()

        Gets default cell border;

        Returns:
        BorderInfo object
      • setDefaultCellBorder

        public final void setDefaultCellBorder(BorderInfo value)

        Gets default cell border;

        Parameters:
        value - BorderInfo object
      • getDefaultColumnWidth

        public final String getDefaultColumnWidth()

        Gets default cell border;

        Returns:
        String object
      • setDefaultColumnWidth

        public final void setDefaultColumnWidth(String value)

        Gets default cell border;

        Parameters:
        value - String object
      • getRows

        public final Rows getRows()

        Gets the rows of the table.

        Returns:
        Rows object
      • getBorder

        public final BorderInfo getBorder()

        Gets the border.

        Returns:
        BorderInfo object
      • setBorder

        public final void setBorder(BorderInfo value)

        Sets the border.

        Parameters:
        value - BorderInfo object
      • getDefaultCellPadding

        public final MarginInfo getDefaultCellPadding()

        Gets the default cell padding.

        Returns:
        MarginInfo object
      • setDefaultCellPadding

        public final void setDefaultCellPadding(MarginInfo value)

        Sets the default cell padding.

        Parameters:
        value - MarginInfo object
      • getDefaultCellTextState

        public final TextState getDefaultCellTextState()

        Gets the default cell text state.

        Returns:
        TextState value
      • setDefaultCellTextState

        public final void setDefaultCellTextState(TextState value)

        Sets the default cell text state.

        Parameters:
        value - TextState value
      • getAlignment

        public final int getAlignment()

        Gets the table alignment.

        Returns:
        HorizontalAlignment value
        See Also:
        HorizontalAlignment
      • setAlignment

        public final void setAlignment(int value)

        Sets the table alignment.

        Parameters:
        value - HorizontalAlignment value
        See Also:
        HorizontalAlignment
      • getLeft

        public final float getLeft()

        Gets the table left coordinate.

        Returns:
        float value
      • setLeft

        public final void setLeft(float value)

        Sets the table left coordinate.

        Parameters:
        value - float value
      • getTop

        public final float getTop()

        Gets the table top coordinate.

        Returns:
        float value
      • setTop

        public final void setTop(float value)

        Sets the table top coordinate.

        Parameters:
        value - float value
      • isBroken

        public final boolean isBroken()

        Gets the table is broken - will be truncated for next page.

        Returns:
        boolean value
      • setBroken

        public final void setBroken(boolean value)

        Sets the table is broken - will be truncated for next page.

        Parameters:
        value - boolean value
      • isBordersIncluded

        public final boolean isBordersIncluded()

        Gets border included in column widths.

        Returns:
        boolean value
      • setBordersIncluded

        public final void setBordersIncluded(boolean value)

        Sets border included in column widths.

        Parameters:
        value - boolean value
      • getColumnAdjustment

        public final int getColumnAdjustment()

        Gets the table column adjustment.

        Returns:
        ColumnAdjustment value
        See Also:
        ColumnAdjustment
      • setColumnAdjustment

        public final void setColumnAdjustment(int value)

        Sets the table column adjustment.

        Parameters:
        value - ColumnAdjustment value
        See Also:
        ColumnAdjustment
      • drawRoundedRectangle

        public static void drawRoundedRectangle(GraphInfo info,
                                                Point topLeft,
                                                Point rightBottom,
                                                List<Operator> operators,
                                                double radius)

        Add operators for rectangle.

        For internal usage only.
        Parameters:
        info - The border style.
        topLeft - The left top point.
        rightBottom - The right bottom point.
        operators - The operators list to be added into the page's content.
        radius - The border radius.
      • getColumnWidth

        public static double getColumnWidth(String stringColumnWidth)

        Get column width

        Parameters:
        stringColumnWidth - The string representation.
        Returns:
        double value
      • getWidth

        public double getWidth()

        Get width.

        Returns:
        The table width
      • getHeight

        public double getHeight()

        Get height.

        Returns:
        The table height
      • setColumnTextState

        public void setColumnTextState(int colNumber,
                                       TextState textState)

        Set height.

        Parameters:
        colNumber - The column number.
        textState - The text state for column.
      • deepClone

        public Object deepClone()

        Clone the table.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Overrides:
        deepClone in class BaseParagraph
        Returns:
        The cloned object