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
public class PDFTableCell extends PDFContainer
Internal Use Only.Represents a table cell in a PDF document.
- Author:
- Jamson Chan
-
-
Constructor Summary
Constructors Constructor Description PDFTableCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetBGColor()Returns the background color of the cell.PDFBorder[]getBorders()Returns all borders in the order of top, right, bottom, left.PDFBordergetBottom()Returns the bottom border.intgetColSpan()Returns the column span of the cell.floatgetHeight()Returns the height of the cell.PDFBordergetLeft()Returns the left border.PDFBordergetRight()Returns the right border.intgetRowSpan()Returns the row span of the cell.PDFBordergetTop()Returns the top border.floatgetWidth()Returns the width of the cell.voidsetBGColor(java.awt.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
-
-
-
-
Method Detail
-
getBorders
public PDFBorder[] getBorders()
Returns all borders in the order of top, right, bottom, left.- Returns:
- all borders in the order of top, right, bottom, left.
-
getTop
public PDFBorder getTop()
Returns the top border.- Returns:
- the top border.
-
getRight
public PDFBorder getRight()
Returns the right border.- Returns:
- the right border.
-
getBottom
public PDFBorder getBottom()
Returns the bottom border.- Returns:
- the bottom border.
-
getLeft
public PDFBorder getLeft()
Returns the left border.- Returns:
- the left border.
-
getBGColor
public java.awt.Color getBGColor()
Returns the background color of the cell.- Returns:
- the background color of the cell.
-
setBGColor
public void setBGColor(java.awt.Color background)
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.
-
-