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()
    • Method Detail

      • 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
      • getBackgroundColor

        public Color getBackgroundColor()

        Gets or sets table background color

        Returns:
        Color object
      • setBackgroundColor

        public void setBackgroundColor(Color value)

        Sets or sets table background color

        Parameters:
        value - Color object
      • getBreakText

        public TextFragment getBreakText()

        Gets break text for table

        Returns:
        TextFragment object
      • setBreakText

        public void setBreakText(TextFragment value)

        Sets break text for table

        Parameters:
        value - TextFragment object
      • getCornerStyle

        public int getCornerStyle()

        Gets the styles of the border corners

        Returns:
        BorderCornerStyle value
        See Also:
        BorderCornerStyle
      • setCornerStyle

        public void setCornerStyle(int value)

        Sets the styles of the border corners

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

        public TextState getRepeatingRowsStyle()

        Gets the style for repeating rows

        Returns:
        TextState object
      • setRepeatingRowsStyle

        public void setRepeatingRowsStyle(TextState value)

        Sets the style for repeating rows

        Parameters:
        value - TextState object
      • getRepeatingRowsCount

        public int getRepeatingRowsCount()

        Gets the first rows count repeated for several pages

        Returns:
        int value
      • setRepeatingRowsCount

        public void setRepeatingRowsCount(int value)

        Sets the first rows count repeated for several pages

        Parameters:
        value - int value
      • getColumnWidths

        public String getColumnWidths()

        Gets the column widths of the table.

        Returns:
        String value
      • setColumnWidths

        public void setColumnWidths(String value)

        Sets the column widths of the table.

        Parameters:
        value - String value
      • getBroken

        public int getBroken()

        Gets table vertial broken.;

        Returns:
        TableBroken value
        See Also:
        TableBroken
      • setBroken

        public void setBroken(int value)

        Sets table vertial broken.;

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

        public BorderInfo getDefaultCellBorder()

        Gets default cell border;

        Returns:
        BorderInfo object
      • setDefaultCellBorder

        public void setDefaultCellBorder(BorderInfo value)

        Sets default cell border;

        Parameters:
        value - BorderInfo object
      • getDefaultColumnWidth

        public String getDefaultColumnWidth()

        Gets default cell border;

        Returns:
        String object
      • setDefaultColumnWidth

        public void setDefaultColumnWidth(String value)

        Sets default cell border;

        Parameters:
        value - String object
      • getRows

        public Rows getRows()

        Gets the rows of the table.

        Returns:
        Rows object
      • getBorder

        public BorderInfo getBorder()

        Gets the border.

        Returns:
        BorderInfo object
      • setBorder

        public void setBorder(BorderInfo value)

        Sets the border.

        Parameters:
        value - BorderInfo object
      • getDefaultCellPadding

        public MarginInfo getDefaultCellPadding()

        Gets the default cell padding.

        Returns:
        MarginInfo object
      • setDefaultCellPadding

        public void setDefaultCellPadding(MarginInfo value)

        Sets the default cell padding.

        Parameters:
        value - MarginInfo object
      • getDefaultCellTextState

        public TextState getDefaultCellTextState()

        Gets the default cell text state.

        Returns:
        TextState value
      • setDefaultCellTextState

        public void setDefaultCellTextState(TextState value)

        Sets the default cell text state.

        Parameters:
        value - TextState value
      • getAlignment

        public int getAlignment()

        Gets the table alignment.

        Returns:
        HorizontalAlignment value
        See Also:
        HorizontalAlignment
      • setAlignment

        public void setAlignment(int value)

        Sets the table alignment.

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

        public float getLeft()

        Gets the table left coordinate.

        Returns:
        float value
      • setLeft

        public void setLeft(float value)

        Sets the table left coordinate.

        Parameters:
        value - float value
      • getTop

        public float getTop()

        Gets the table top coordinate.

        Returns:
        float value
      • setTop

        public void setTop(float value)

        Sets the table top coordinate.

        Parameters:
        value - float value
      • isBroken

        public boolean isBroken()

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

        Returns:
        boolean value
      • setBroken

        public void setBroken(boolean value)

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

        Parameters:
        value - boolean value
      • isBordersIncluded

        public boolean isBordersIncluded()

        Gets or sets border included in column widths.

        Returns:
        boolean value
      • setBordersIncluded

        public void setBordersIncluded(boolean value)

        Gets or sets border included in column widths.

        Parameters:
        value - boolean value
      • getColumnAdjustment

        public int getColumnAdjustment()

        Gets the table column adjustment.

        Returns:
        ColumnAdjustment value
        See Also:
        ColumnAdjustment
      • setColumnAdjustment

        public void setColumnAdjustment(int value)

        Sets the table column adjustment.

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

        public Table getParentTable()

        Gets or sets the parent table.

        Returns:
        Table object
      • setParentTable

        public void setParentTable(Table value)

        Gets or sets the parent table.

        Parameters:
        value - Table object