|
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.Table
Table2
public class Table
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 | |
---|---|
Table(float x,
float y,
float width,
float height)
Deprecated. Initializes a new instance of the Table . |
|
Table(float x,
float y,
float width,
float height,
Font font,
float size)
Deprecated. Initializes a new instance of the Table . |
|
Table(float x,
float y,
float width,
float height,
Font font,
float size,
Color textColor,
Color backColor)
Deprecated. Initializes a new instance of the Table . |
Method Summary | |
---|---|
protected void |
drawRotated(PageWriter writer)
Deprecated. Draws the table to the given PageWriter object. |
TextAlign |
getAlign()
Deprecated. Gets the Align object to use for the horizontal alignment
of the text in the table. |
Color |
getBackgroundColor()
Deprecated. Gets the Color object to use for the background of the table. |
Color |
getBorderColor()
Deprecated. Gets the Color object to use for the borders of the table. |
float |
getBorderWidth()
Deprecated. Gets the width of the border on the table. |
ColumnList |
getColumns()
Deprecated. Sets the RowList object contained in the table. |
Font |
getFont()
Deprecated. Gets the Font object to use for the table. |
float |
getFontSize()
Deprecated. Gets the font size of the text in the table. |
float |
getHeight()
Deprecated. Gets the height of the table. |
Table |
getOverflowColumns()
Deprecated. Returns a Table object containing the overflow columns. |
Table |
getOverflowColumns(float x,
float y)
Deprecated. Returns a Table object containing the overflow columns. |
Table |
getOverflowColumns(float x,
float y,
float width,
float height)
Deprecated. Returns a Table object containing the overflow columns. |
Table |
getOverflowRows()
Deprecated. Returns a Table object containing the overflow rows. |
Table |
getOverflowRows(float x,
float y)
Deprecated. Returns a Table object containing the overflow rows. |
Table |
getOverflowRows(float x,
float y,
float width,
float height)
Deprecated. Returns a Table object containing the overflow rows. |
float |
getPadding()
Deprecated. Gets the padding of the cells in the table. |
int |
getRepeatColumnHeaderCount()
Deprecated. 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()
Deprecated. Gets the number of columns that will be repeated as the row header. |
float |
getRequiredHeight()
Deprecated. Returns the height required to vertically fit the entire table on the page. |
float |
getRequiredWidth()
Deprecated. Returns the width required to horizontally fit the entire table on the page. |
RowList |
getRows()
Deprecated. Gets the RowList object contained in the table. |
Color |
getTextColor()
Deprecated. Gets the Color object to use for the text of the table. |
VAlign |
getVAlign()
Deprecated. Gets the VAlign object to use for the vertical alignment
of the text in the Table. |
int |
getVisibleColumnCount()
Deprecated. Returns the number of columns that will be displayed in the current table. |
float |
getVisibleHeight()
Deprecated. Returns the actual height of the table that will be placed on the page. |
int |
getVisibleRowCount()
Deprecated. Returns the number of rows that will be displayed in the current table. |
float |
getVisibleWidth()
Deprecated. Returns the actual width of the table that will be placed on the page. |
float |
getWidth()
Deprecated. Gets the width of the table. |
float |
getX()
Deprecated. Gets the x coordinate of the table. |
float |
getY()
Deprecated. Gets the y coordinate of the table. |
boolean |
hasOverflowColumns()
Deprecated. Returns a value indicating if there are columns remaining that will not be drawn to the table. |
boolean |
hasOverflowRows()
Deprecated. Returns a value indicating if there are rows remaining that will not be drawn to the table. |
void |
setAlign(TextAlign value)
Deprecated. Sets the Align object to use for the horizontal alignment
of the text in the table. |
void |
setBackgroundColor(Color value)
Deprecated. Sets the Color object to use for the background of the table. |
void |
setBorderColor(Color value)
Deprecated. Sets the Color object to use for the borders of the table. |
void |
setBorderWidth(float value)
Deprecated. Sets the width of the border on the table. |
void |
setFont(Font value)
Deprecated. Sets the Font object to use for the table. |
void |
setFontSize(float value)
Deprecated. Gets the font size of the text in the table. |
void |
setHeight(float value)
Deprecated. Sets the height of the table. |
void |
setPadding(float value)
Deprecated. Sets the padding of the cells in the table. |
void |
setRepeatColumnHeaderCount(int value)
Deprecated. 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)
Deprecated. Sets the number of columns that will be repeated as the row header. |
void |
setTextColor(Color value)
Deprecated. Sets the Color object to use for the text of the table. |
void |
setVAlign(VAlign value)
Deprecated. Sets the VAlign object to use for the vertical alignment
of the text in the Table. |
void |
setWidth(float value)
Deprecated. Sets the width of the table. |
void |
setX(float value)
Deprecated. Sets the x coordinate of the table. |
void |
setY(float value)
Deprecated. Sets the y coordinate of the table. |
Methods inherited from class com.cete.dynamicpdf.pageelements.RotatingPageElement |
---|
draw, getAngle, setAngle |
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 |
Constructor Detail |
---|
public Table(float x, float y, float width, float height)
Table
.
x
- X coordinate of the table.y
- Y coordinate of the table.width
- Width of the table.height
- Height of the table.public Table(float x, float y, float width, float height, Font font, float size)
Table
.
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.size
- Font size for the text in the table.public Table(float x, float y, float width, float height, Font font, float size, Color textColor, Color backColor)
Table
.
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.size
- Size of the font.textColor
- Color
of the text in the table.backColor
- Background Color
of the table.Method Detail |
---|
public float getX()
getX
in interface ICoordinate
getX
in class RotatingPageElement
public void setX(float value)
setX
in interface ICoordinate
setX
in class RotatingPageElement
value
- the x coordinate of the table.public float getY()
getY
in interface ICoordinate
getY
in class RotatingPageElement
public void setY(float value)
setY
in interface ICoordinate
setY
in class RotatingPageElement
value
- the y coordinate of the table.public float getWidth()
getWidth
in interface IArea
public void setWidth(float value)
setWidth
in interface IArea
value
- the width coordinate 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 Font getFont()
Font
object to use for the table.
Font
public void setFont(Font value)
Font
object to use for the table.
value
- the font of the table.Font
public float getFontSize()
public void setFontSize(float value)
value
- the fomt size of the table.public Color getTextColor()
Color
object to use for the text of the table.
Color
public void setTextColor(Color value)
Color
object to use for the text of the table.
value
- the text color of the table.Color
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 of the table.Color
public TextAlign getAlign()
Align
object to use for the horizontal alignment
of the text in the table.
TextAlign
public void setAlign(TextAlign value)
Align
object to use for the horizontal alignment
of the text in the table.
value
- the text alignment of the table.TextAlign
public VAlign getVAlign()
VAlign
object to use for the vertical alignment
of the text in the Table.
VAlign
public void setVAlign(VAlign value)
VAlign
object to use for the vertical alignment
of the text in the Table.
value
- the vertical alignment
of the text in the Table.VAlign
public float getBorderWidth()
public void setBorderWidth(float value)
value
- the width of the border on the table.public Color getBorderColor()
Color
object to use for the borders of the table.
Color
public void setBorderColor(Color value)
Color
object to use for the borders of the table.
value
- the color of the border on the table.Color
public float getPadding()
public void setPadding(float value)
value
- the padding of the cells in the table.public int getRepeatRowHeaderCount()
public void setRepeatRowHeaderCount(int value)
value
- the row repeat header count.public int getRepeatColumnHeaderCount()
public void setRepeatColumnHeaderCount(int value)
value
- the column repeat header count.public RowList getRows()
RowList
object contained in the table.
RowList
public ColumnList getColumns()
RowList
object contained in the table.
ColumnList
public Table getOverflowRows()
Table
object containing the overflow rows. View Example
Table
object.Table
public Table getOverflowRows(float x, float y)
Table
object containing the overflow rows. View Example
x
- X coordinate of the new table.y
- Y coordinate of the new table.
Table
object.Table
public Table getOverflowRows(float x, float y, float width, float height)
Table
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.
Table
object.Table
public Table getOverflowColumns()
Table
object containing the overflow columns. View Example
Table
public Table getOverflowColumns(float x, float y)
Table
object containing the overflow columns. View Example
x
- X coordinate of the new table.y
- Y coordinate of the new table.
Table
public Table getOverflowColumns(float x, float y, float width, float height)
Table
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.
Table
public float getVisibleWidth()
public float getVisibleHeight()
public float getRequiredWidth()
public float getRequiredHeight()
public boolean hasOverflowRows()
public boolean hasOverflowColumns()
public int getVisibleRowCount()
public int getVisibleColumnCount()
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 |