|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.PageElement com.cete.dynamicpdf.pageelements.TaggablePageElement com.cete.dynamicpdf.pageelements.RotatingPageElement com.cete.dynamicpdf.pageelements.Table2
public class Table2
This class can be used to create tables. A table must contain at least one Column and one Row with at least one Cell in that Row. Formatting of each cell in the table is done in a hierarchical manner in that a Cell's formatting take precedent over a Row's formatting which in term takes precedent over a Table's formatting. The column object contains no formatting information. Using the Tables getOverflowColumns and getOverflowRows methods you can allow your table to easily flow onto other pages.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
Table2(float x,
float y,
float width,
float height)
Initializes a new instance of the Table2 class. |
|
Table2(float x,
float y,
float width,
float height,
Font font,
float fontSize)
Initializes a new instance of the Table2 class. |
|
Table2(float x,
float y,
float width,
float height,
Font font,
float fontSize,
Color textColor,
Color backColor)
Initializes a new instance of the Table2 class. |
Method Summary | |
---|---|
protected void |
drawRotated(PageWriter writer)
Draws the table to the given PageWriter object. |
Color |
getBackgroundColor()
Gets the Color object to use for the background of the table. |
Border |
getBorder()
Gets the Border object to use for the border of the table. |
CellDefault |
getCellDefault()
Gets the CellDefault object of the cells in the table. |
float |
getCellSpacing()
Gets the cellspacing for the cells in the table. |
Column2List |
getColumns()
Gets the Column2List object contained in the table. |
float |
getHeight()
Gets the height of the table. |
Table2 |
getOverflowColumns()
Returns a Table2 object containing the overflow columns. |
Table2 |
getOverflowColumns(float x,
float y)
Returns a Table2 object containing the overflow columns. |
Table2 |
getOverflowColumns(float x,
float y,
float width,
float height)
Returns a Table2 object containing the overflow columns. |
Table2 |
getOverflowRows()
Returns a Table2 object containing the overflow rows. |
Table2 |
getOverflowRows(float x,
float y)
Returns a Table2 object containing the overflow rows. |
Table2 |
getOverflowRows(float x,
float y,
float width,
float height)
Returns a Table2 object containing the overflow rows. |
int |
getRepeatColumnHeaderCount()
Gets the number of initial rows in the table that should also be drawn as the first rows on all subsequent row overflow tables. |
int |
getRepeatRowHeaderCount()
Gets the number of columns that will be repeated as the row header. |
float |
getRequiredHeight()
Returns the height required to vertically fit the entire table on the page. |
float |
getRequiredWidth()
Returns the width required to horizontally fit the entire table on the page. |
Row2List |
getRows()
Gets the Row2List object contained in the table. |
int |
getVisibleColumnCount()
Returns the number of columns that will be displayed in the current table. |
float |
getVisibleHeight()
Returns the actual height of the table that will be placed on the page. |
int |
getVisibleRowCount()
Returns the number of rows that will be displayed in the current table. |
int |
getVisibleStartColumn()
Returns the table staring column number. |
int |
getVisibleStartRow()
Returns the table staring row number. |
float |
getVisibleWidth()
Returns the actual width of the table that will be placed on the page. |
float |
getWidth()
Gets the width of the table. |
boolean |
hasOverflowColumns()
Returns a value indicating if there are columns remaining that will not be drawn to the table. |
boolean |
hasOverflowRows()
Returns a value indicating if there are rows remaining that will not be drawn to the table. |
void |
setBackgroundColor(Color value)
Sets the Color object to use for the background of the table. |
void |
setCellSpacing(float value)
Sets the cellspacing for the cells in the table. |
void |
setHeight(float value)
Sets the height of the table. |
void |
setRepeatColumnHeaderCount(int value)
Sets the number of initial rows in the table that should also be drawn as the first rows on all subsequent row overflow tables. |
void |
setRepeatRowHeaderCount(int value)
Sets the number of columns that will be repeated as the row header. |
void |
setWidth(float value)
Sets the width of the table. |
Methods inherited from class com.cete.dynamicpdf.pageelements.RotatingPageElement |
---|
draw, getAngle, getX, getY, setAngle, setX, setY |
Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement |
---|
getTag, getTagOrder, setTag, setTagOrder |
Methods inherited from class com.cete.dynamicpdf.PageElement |
---|
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cete.dynamicpdf.pageelements.ICoordinate |
---|
getX, getY, setX, setY |
Constructor Detail |
---|
public Table2(float x, float y, float width, float height)
Table2
class.
x
- X coordinate of the table.y
- Y coordinate of the table.width
- Width of the table.height
- Height of the table.public Table2(float x, float y, float width, float height, Font font, float fontSize)
Table2
class.
x
- X coordinate of the table.y
- Y coordinate of the table.width
- Width of the table.height
- Height of the table.font
- Font for the text in the table.fontSize
- Font size for the text in the table.public Table2(float x, float y, float width, float height, Font font, float fontSize, Color textColor, Color backColor)
Table2
class.
x
- X coordinate of the table.y
- Y coordinate of the table.width
- Width of the table.height
- Height of the table.font
- Font for the text in the table.fontSize
- Font size for the text in the table.textColor
- Color of the text in the table.backColor
- Background color of the table.Method Detail |
---|
public Table2 getOverflowRows()
Table2
object containing the overflow rows. View Example
Table2
object.Table2
public Table2 getOverflowRows(float x, float y)
Table2
object containing the overflow rows. View Example
x
- X coordinate of the new table.y
- Y coordinate of the new table.
Table2
object.Table2
public Table2 getOverflowRows(float x, float y, float width, float height)
Table2
object containing the overflow rows. View Example
x
- X coordinate of the new table.y
- Y coordinate of the new table.width
- Width of the new table.height
- Height of the new table.
Table2
object.Table2
public int getVisibleStartRow()
public int getVisibleStartColumn()
public Table2 getOverflowColumns()
Table2
object containing the overflow columns. View Example
Table2
public Table2 getOverflowColumns(float x, float y)
Table2
object containing the overflow columns. View Example
x
- X coordinate of the new table.y
- Y coordinate of the new table.
Table2
public Table2 getOverflowColumns(float x, float y, float width, float height)
Table2
object containing the overflow columns. View Example
x
- X coordinate of the new table.y
- Y coordinate of the new table.width
- Width of the new table.height
- Height of the new table.
Table2
public float getVisibleWidth()
public float getVisibleHeight()
public float getRequiredWidth()
public float getRequiredHeight()
public boolean hasOverflowRows()
public boolean hasOverflowColumns()
public int getVisibleRowCount()
public int getVisibleColumnCount()
public float getWidth()
getWidth
in interface IArea
public void setWidth(float value)
setWidth
in interface IArea
value
- the width of the table.public float getHeight()
getHeight
in interface IArea
getHeight
in class RotatingPageElement
public void setHeight(float value)
setHeight
in interface IArea
setHeight
in class RotatingPageElement
value
- the height of the table.public Row2List getRows()
Row2List
object contained in the table.
Row2List
public Column2List getColumns()
Column2List
object contained in the table.
Column2List
public CellDefault getCellDefault()
CellDefault
object of the cells in the table.
public int getRepeatRowHeaderCount()
public void setRepeatRowHeaderCount(int value)
value
- the number of columns that will be repeated as the row header.public int getRepeatColumnHeaderCount()
public void setRepeatColumnHeaderCount(int value)
value
- the number of rows that will be repeated as the column header.public float getCellSpacing()
public void setCellSpacing(float value)
value
- the cellspacing for the cells in the table.public Border getBorder()
Border
object to use for the border of the table.
public Color getBackgroundColor()
Color
object to use for the background of the table.
Color
public void setBackgroundColor(Color value)
Color
object to use for the background of the table.
value
- the background color for the cells in the table.Color
protected void drawRotated(PageWriter writer)
PageWriter
object.
drawRotated
in class RotatingPageElement
writer
- PageWriter
object to receive the table's output.PageWriter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |