Package io.keikai.doc.io.schema.pdf
Class PDFTableCell
java.lang.Object
io.keikai.doc.io.schema.pdf.PDFContainer
io.keikai.doc.io.schema.pdf.PDFTableCell
- All Implemented Interfaces:
IPDFElement
Internal Use Only.
Represents a table cell in a PDF document.
- Author:
- Jamson Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the background color of the cell.Returns all borders in the order of top, right, bottom, left.Returns the bottom border.intReturns the column span of the cell.floatReturns the height of the cell.getLeft()Returns the left border.getRight()Returns the right border.intReturns the row span of the cell.getTop()Returns the top border.floatgetWidth()Returns the width of the cell.voidsetBGColor(Color background) Sets the background color of the cell.voidsetColSpan(int colSpan) Sets the column span of the cell.voidsetHeight(float height) Sets the height of the cell.voidsetRowSpan(int rowSpan) Sets the row span of the cell.voidsetWidth(float width) Sets the width of the cell.Methods inherited from class io.keikai.doc.io.schema.pdf.PDFContainer
addBlock, getBlocks
-
Constructor Details
-
PDFTableCell
public PDFTableCell()
-
-
Method Details
-
getBorders
Returns all borders in the order of top, right, bottom, left.- Returns:
- all borders in the order of top, right, bottom, left.
-
getTop
Returns the top border.- Returns:
- the top border.
-
getRight
Returns the right border.- Returns:
- the right border.
-
getBottom
Returns the bottom border.- Returns:
- the bottom border.
-
getLeft
Returns the left border.- Returns:
- the left border.
-
getBGColor
Returns the background color of the cell.- Returns:
- the background color of the cell.
-
setBGColor
Sets the background color of the cell.- Parameters:
background- the background color of the cell.
-
getColSpan
public int getColSpan()Returns the column span of the cell.- Returns:
- the column span of the cell.
-
setColSpan
public void setColSpan(int colSpan) Sets the column span of the cell.- Parameters:
colSpan- the column span of the cell.
-
getRowSpan
public int getRowSpan()Returns the row span of the cell.- Returns:
- the row span of the cell.
-
setRowSpan
public void setRowSpan(int rowSpan) Sets the row span of the cell.- Parameters:
rowSpan- the row span of the cell.
-
getWidth
public float getWidth()Returns the width of the cell.- Returns:
- the width of the cell.
-
setWidth
public void setWidth(float width) Sets the width of the cell.- Parameters:
width- the width of the cell.
-
getHeight
public float getHeight()Returns the height of the cell.- Returns:
- the height of the cell.
-
setHeight
public void setHeight(float height) Sets the height of the cell.- Parameters:
height- the height of the cell.
-