Class Row
java.lang.Object
com.lowagie.text.Row
- All Implemented Interfaces:
WithHorizontalAlignment, Element
Deprecated.
A
Row is part of a Table and contains some Cells.
All Rows are constructed by a Table-object. You don't have to construct any
Row yourself. In fact you can't construct a Row outside the package.
Since a Cell can span several rows and/or columns a row can contain reserved space without any content.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.id of the Cell element in a Rowprotected TableRectangle[]Deprecated.This is the array of Objects (CellorTable).protected intDeprecated.This is the number of columns in theRow.protected intDeprecated.This is a valid position theRow.protected intDeprecated.This is the vertical alignment.static final intDeprecated.id of a null element in a Rowprotected boolean[]Deprecated.This is the array that keeps track of reserved cells.static final intDeprecated.id of the Table element in a RowFields inherited from interface Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, FOOTNOTE, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MODIFICATIONDATE, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TITLE, YMARK -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRow(int columns) Deprecated.Constructs aRowwith a certain number of columns. -
Method Summary
Modifier and TypeMethodDescription(package private) intaddElement(TableRectangle element) Deprecated.Adds aCellto theRow.(package private) intaddElement(TableRectangle element, int column) Deprecated.Adds an element to theRowat the position given.(package private) voiddeleteColumn(int column) Deprecated.Returns aRowthat is a copy of thisRowin which a certain column has been deleted.getCell(int column) Deprecated.Gets aCellorTablefrom a certain column.Deprecated.Gets all the chunks in this element.intDeprecated.Gets the number of columns.(package private) intgetElementID(int column) Deprecated.Returns the type-id of the element in a Row.intDeprecated.Gets the horizontal alignment.(package private) intgetObjectID(Object element) Deprecated.Returns the type-id of an Object.booleanDeprecated.Checks if this element is a content object.booleanisEmpty()Deprecated.Checks if the row is empty.booleanDeprecated.Checks if this element is nestable.(package private) booleanisReserved(int column) Deprecated.Returns true/false when this position in theRowhas been reserved, either filled or through a colspan of an Element.booleanprocess(ElementListener listener) Deprecated.Processes the element by adding it (or the different parts) to aElementListener.(package private) booleanreserve(int column) Deprecated.Reserves aCellin theRow.(package private) booleanreserve(int column, int size) Deprecated.Reserves aCellin theRow.(package private) voidsetElement(TableRectangle aElement, int column) Deprecated.PutsCellto theRowat the position given, doesn't reserve colspan.voidsetHorizontalAlignment(HorizontalAlignment alignment) Deprecated.Sets horizontal alignment mode.inttype()Deprecated.Gets the type of the text element.
-
Field Details
-
NULL
public static final int NULLDeprecated.id of a null element in a Row- See Also:
-
CELL
public static final int CELLDeprecated.id of the Cell element in a Row- See Also:
-
TABLE
public static final int TABLEDeprecated.id of the Table element in a Row- See Also:
-
columns
protected int columnsDeprecated.This is the number of columns in theRow. -
currentColumn
protected int currentColumnDeprecated.This is a valid position theRow. -
reserved
protected boolean[] reservedDeprecated.This is the array that keeps track of reserved cells. -
cells
-
horizontalAlignment
protected int horizontalAlignmentDeprecated.This is the vertical alignment.
-
-
Constructor Details
-
Row
protected Row(int columns) Deprecated.Constructs aRowwith a certain number of columns.- Parameters:
columns- a number of columns
-
-
Method Details
-
process
Deprecated.Processes the element by adding it (or the different parts) to aElementListener. -
type
-
getChunks
-
isContent
public boolean isContent()Deprecated.Description copied from interface:ElementChecks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Deprecated.Description copied from interface:ElementChecks if this element is nestable.- Specified by:
isNestablein interfaceElement- Returns:
- true if this element can be nested inside other elements.
- Since:
- iText 2.0.8
- See Also:
-
deleteColumn
void deleteColumn(int column) Deprecated.Returns aRowthat is a copy of thisRowin which a certain column has been deleted.- Parameters:
column- the number of the column to delete
-
addElement
Deprecated.Adds aCellto theRow.- Parameters:
element- the element to add (currently only Cells and Tables supported)- Returns:
- the column position the
Cellwas added, or-1if theelementcouldn't be added.
-
addElement
Deprecated.Adds an element to theRowat the position given.- Parameters:
element- the element to add. (currently only Cells and Tables supportedcolumn- the position where to add the cell.- Returns:
- the column position the
Cellwas added, or-1if theCellcouldn't be added.
-
setElement
Deprecated.PutsCellto theRowat the position given, doesn't reserve colspan.- Parameters:
aElement- the cell to add.column- the position where to add the cell.
-
reserve
boolean reserve(int column) Deprecated.Reserves aCellin theRow.- Parameters:
column- the column that has to be reserved.- Returns:
trueif the column was reserved,falseif not.
-
reserve
boolean reserve(int column, int size) Deprecated.Reserves aCellin theRow.- Parameters:
column- the column that has to be reserved.size- the number of columns- Returns:
trueif the column was reserved,falseif not.
-
isReserved
boolean isReserved(int column) Deprecated.Returns true/false when this position in theRowhas been reserved, either filled or through a colspan of an Element.- Parameters:
column- the column.- Returns:
trueif the column was reserved,falseif not.
-
getElementID
int getElementID(int column) Deprecated.Returns the type-id of the element in a Row.- Parameters:
column- the column of which you'd like to know the type- Returns:
- the type-id of the element in the row
-
getObjectID
Deprecated.Returns the type-id of an Object.- Parameters:
element- the object of which you'd like to know the type-id, -1 if invalid- Returns:
- the type-id of an object
-
getCell
Deprecated.Gets aCellorTablefrom a certain column.- Parameters:
column- the column theCell/Tableis in.- Returns:
- the
Cell,Tableor Object if the column was reserved or null if empty.
-
isEmpty
public boolean isEmpty()Deprecated.Checks if the row is empty.- Returns:
trueif none of the columns is reserved.
-
getColumns
public int getColumns()Deprecated.Gets the number of columns.- Returns:
- a value
-
getHorizontalAlignment
public int getHorizontalAlignment()Deprecated.Gets the horizontal alignment.- Returns:
- a value
-
setHorizontalAlignment
Deprecated.Description copied from interface:WithHorizontalAlignmentSets horizontal alignment mode.- Specified by:
setHorizontalAlignmentin interfaceWithHorizontalAlignment- Parameters:
alignment- New alignment mode. If null, current alignment must be left unchanged
-