public final class Table extends BaseParagraph
Represents a table that can be added to the page.
Constructor and Description |
---|
Table() |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clone the table.
|
static void |
drawRoundedRectangle(GraphInfo info,
Point topLeft,
Point rightBottom,
List<Operator> operators,
double radius)
Add operators for rectangle.
|
int |
getAlignment()
Gets the table alignment.
|
Color |
getBackgroundColor()
Gets or sets table background color
|
BorderInfo |
getBorder()
Gets the border.
|
int |
getBroken()
Gets table vertial broken.;
|
int |
getColumnAdjustment()
Gets the table column adjustment.
|
static double |
getColumnWidth(String stringColumnWidth)
Get column width
|
String |
getColumnWidths()
Gets the column widths of the table.
|
int |
getCornerStyle()
Gets the styles of the border corners
|
BorderInfo |
getDefaultCellBorder()
Gets default cell border;
|
MarginInfo |
getDefaultCellPadding()
Gets the default cell padding.
|
TextState |
getDefaultCellTextState()
Gets the default cell text state.
|
String |
getDefaultColumnWidth()
Gets default cell border;
|
double |
getHeight()
Get height.
|
float |
getLeft()
Gets the table left coordinate.
|
Table |
getParentTable()
Gets or sets the parent table.
|
int |
getRepeatingRowsCount()
Gets the first rows count repeated for several pages
|
TextState |
getRepeatingRowsStyle()
Gets the style for repeating rows
|
Rows |
getRows()
Gets the rows of the table.
|
float |
getTop()
Gets the table top coordinate.
|
boolean |
isBordersIncluded()
Gets or sets border included in column widths.
|
boolean |
isBroken()
Gets the table is broken - will be truncated for next page.
|
void |
setAlignment(int value)
Sets the table alignment.
|
void |
setBackgroundColor(Color value)
Sets or sets table background color
|
void |
setBorder(BorderInfo value)
Sets the border.
|
void |
setBordersIncluded(boolean value)
Gets or sets border included in column widths.
|
void |
setBroken(boolean value)
Sets the table is broken - will be truncated for next page.
|
void |
setBroken(int value)
Sets table vertial broken.;
|
void |
setColumnAdjustment(int value)
Sets the table column adjustment.
|
void |
setColumnTextState(int colNumber,
TextState textState)
Set height.
|
void |
setColumnWidths(String value)
Sets the column widths of the table.
|
void |
setCornerStyle(int value)
Sets the styles of the border corners
|
void |
setDefaultCellBorder(BorderInfo value)
Sets default cell border;
|
void |
setDefaultCellPadding(MarginInfo value)
Sets the default cell padding.
|
void |
setDefaultCellTextState(TextState value)
Sets the default cell text state.
|
void |
setDefaultColumnWidth(String value)
Sets default cell border;
|
void |
setLeft(float value)
Sets the table left coordinate.
|
void |
setParentTable(Table value)
Gets or sets the parent table.
|
void |
setRepeatingRowsCount(int value)
Sets the first rows count repeated for several pages
|
void |
setRepeatingRowsStyle(TextState value)
Sets the style for repeating rows
|
void |
setTop(float value)
Sets the table top coordinate.
|
getHorizontalAlignment, getHyperlink, getMargin, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public static void drawRoundedRectangle(GraphInfo info, Point topLeft, Point rightBottom, List<Operator> operators, double radius)
Add operators for rectangle.
For internal usage only.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.public static double getColumnWidth(String stringColumnWidth)
Get column width
stringColumnWidth
- The string representation.public double getHeight()
Get height.
public void setColumnTextState(int colNumber, TextState textState)
Set height.
colNumber
- The column number.textState
- The text state for column.public Object deepClone()
Clone the table.
deepClone
in interface com.aspose.ms.System.ICloneable
deepClone
in class BaseParagraph
public Color getBackgroundColor()
Gets or sets table background color
public void setBackgroundColor(Color value)
Sets or sets table background color
value
- Color objectpublic int getCornerStyle()
Gets the styles of the border corners
BorderCornerStyle
public void setCornerStyle(int value)
Sets the styles of the border corners
value
- BorderCornerStyle valueBorderCornerStyle
public TextState getRepeatingRowsStyle()
Gets the style for repeating rows
public void setRepeatingRowsStyle(TextState value)
Sets the style for repeating rows
value
- TextState objectpublic int getRepeatingRowsCount()
Gets the first rows count repeated for several pages
public void setRepeatingRowsCount(int value)
Sets the first rows count repeated for several pages
value
- int valuepublic String getColumnWidths()
Gets the column widths of the table.
public void setColumnWidths(String value)
Sets the column widths of the table.
value
- String valuepublic int getBroken()
Gets table vertial broken.;
TableBroken
public void setBroken(int value)
Sets table vertial broken.;
value
- TableBroken valueTableBroken
public BorderInfo getDefaultCellBorder()
Gets default cell border;
public void setDefaultCellBorder(BorderInfo value)
Sets default cell border;
value
- BorderInfo objectpublic String getDefaultColumnWidth()
Gets default cell border;
public void setDefaultColumnWidth(String value)
Sets default cell border;
value
- String objectpublic Rows getRows()
Gets the rows of the table.
public BorderInfo getBorder()
Gets the border.
public void setBorder(BorderInfo value)
Sets the border.
value
- BorderInfo objectpublic MarginInfo getDefaultCellPadding()
Gets the default cell padding.
public void setDefaultCellPadding(MarginInfo value)
Sets the default cell padding.
value
- MarginInfo objectpublic TextState getDefaultCellTextState()
Gets the default cell text state.
public void setDefaultCellTextState(TextState value)
Sets the default cell text state.
value
- TextState valuepublic int getAlignment()
Gets the table alignment.
HorizontalAlignment
public void setAlignment(int value)
Sets the table alignment.
value
- HorizontalAlignment valueHorizontalAlignment
public float getLeft()
Gets the table left coordinate.
public void setLeft(float value)
Sets the table left coordinate.
value
- float valuepublic float getTop()
Gets the table top coordinate.
public void setTop(float value)
Sets the table top coordinate.
value
- float valuepublic boolean isBroken()
Gets the table is broken - will be truncated for next page.
public void setBroken(boolean value)
Sets the table is broken - will be truncated for next page.
value
- boolean valuepublic boolean isBordersIncluded()
Gets or sets border included in column widths.
public void setBordersIncluded(boolean value)
Gets or sets border included in column widths.
value
- boolean valuepublic int getColumnAdjustment()
Gets the table column adjustment.
ColumnAdjustment
public void setColumnAdjustment(int value)
Sets the table column adjustment.
value
- ColumnAdjustment valueColumnAdjustment
public Table getParentTable()
Gets or sets the parent table.
public void setParentTable(Table value)
Gets or sets the parent table.
value
- Table objectCopyright © 2016 Aspose. All Rights Reserved.