public class TemplateTableParameters extends Object
There are two algorithms to detect a table:
In some cases when algorithms can't detect a table or do it in non-accurate way TemplateTableLayout
class is used.
Constructor and Description |
---|
TemplateTableParameters(Rectangle rectangle,
Iterable<Double> verticalSeparators)
Initializes a new instance of the
TemplateTableParameters class. |
TemplateTableParameters(Rectangle rectangle,
Iterable<Double> verticalSeparators,
Boolean mergedCells,
Integer minRowCount,
Integer minColumnCount,
Integer minVerticalSpace)
Initializes a new instance of the
TemplateTableParameters class. |
Modifier and Type | Method and Description |
---|---|
Integer |
getMinColumnCount()
Gets the minimum number of the table columns.
|
Integer |
getMinRowCount()
Gets the minimum number of the table rows.
|
Integer |
getMinVerticalSpace()
Gets the minumum space between the table columns.
|
Rectangle |
getRectangle()
Gets the rectangular area that contains the table.
|
List<Double> |
getVerticalSeparators()
Gets the table columns separators.
|
Boolean |
hasMergedCells()
Gets the value that indicates whether the table has merged cells.
|
public TemplateTableParameters(Rectangle rectangle, Iterable<Double> verticalSeparators)
TemplateTableParameters
class.rectangle
- The rectangular area that contains the table.verticalSeparators
- The table columns separators.public TemplateTableParameters(Rectangle rectangle, Iterable<Double> verticalSeparators, Boolean mergedCells, Integer minRowCount, Integer minColumnCount, Integer minVerticalSpace)
TemplateTableParameters
class.rectangle
- The rectangular area that contains the table.verticalSeparators
- The table columns separators.mergedCells
- The value that indicates whether the table has merged cells.minRowCount
- The minimum number of the table rows.minColumnCount
- The minumum number of the table columns.minVerticalSpace
- The minumum space between the table columns.public Rectangle getRectangle()
Rectangle
class that represents the rectangular area that contains the table; null
if it isn't set.public List<Double> getVerticalSeparators()
null
if it isn't set.public Boolean hasMergedCells()
true
if the table has merged cells; otherwise, false
. null
if it isn't set.public Integer getMinRowCount()
null
if it isn't set.public Integer getMinColumnCount()
null
if it isn't set.public Integer getMinVerticalSpace()
null
if it isn't set.