|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaspose.pdf.Cell
public class Cell
Represents a cell in a Table
.
Typical usages are the following:
Field Summary | |
---|---|
boolean |
isVerticalAlignmentSet
|
float |
MinWidth
Gets minimum cell width according to its content. |
Constructor Summary | |
---|---|
Cell()
Constructor - initializes a new instance of the Cell class. |
|
Cell(Row row)
Constructor - initializes a new instance of the Cell class in a table. |
|
Cell(Table table)
Constructor - initializes a new instance of the Cell class in a table. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones a new Cell object. |
java.lang.Object |
completeClone()
Clones a new Cell object. |
AlignmentType |
getAlignment()
Gets a AlignmentType Object that indicates the alignment type of the cell. |
Color |
getBackgroundColor()
Gets a Color object that indicates the background color of the cell. |
BorderInfo |
getBorder()
Gets a BorderInfo object that indicates the cell's border info. |
int |
getColumnIndex()
Gets an int value that indicates the column index. |
int |
getColumnNumber()
Gets an int value that indicates the number of the column. |
int |
getColumnsSpan()
Gets an int value that indicates how many columns the cell spans. |
TextInfo |
getDefaultCellTextInfo()
Gets a TextInfo object that indicates the default cell text format info. |
MarginInfo |
getDefaultPadding()
The place for border. |
float |
getFitWidth()
Deprecated. Please use Table.getColumnWidths() instead. |
float |
getHeight()
Gets a float value that indicates the height of the cell. |
java.lang.String |
getID()
Gets a String that indicates the ID of the cell. |
boolean |
getIsBorderSetbyUser()
Gets a boolean value indicates whether border has been set by user. |
boolean |
getIsPositionGot()
Gets a boolean value indicates whether position has been gotten. |
boolean |
getIsPositionProcessed()
Gets a boolean value indicates whether position has been processed. |
boolean |
getIsVerticalTextsInCell()
get VerticalTextsInCell |
MarginInfo |
getPadding()
Gets a MarginInfo object that indicates the cell's padding. |
Paragraphs |
getParagraphs()
Gets a Paragraphs collection that indicates all paragraphs in the cell. |
float |
getPosX()
Gets a float value that indicates the x-coordinate of beginning position of the cell. |
float |
getPosY()
Gets a float value that indicates the y-coordinate of beginning position of the cell. |
Row |
getRow()
Gets a Row object that contains the cell. |
int |
getRowSpan()
Gets an int value that indicates how many rows the cell spans. |
Table |
getTable()
Gets a Table object that contains the cell. |
VerticalAlignmentType |
getVerticalAlignment()
Gets a VerticalAlignmentType
object that indicates the vertical alignment type. |
VerticalTextRotationType |
getVerticalTextRotationAngle()
Gets a VerticalTextRotationType
object that indicates the text rotation angle in floating box or cells. |
float |
getWidth()
Gets a float value that indicates the width of the cell. |
boolean |
isNoBorder()
Gets a boolean value that indicates whether the cell have borders. |
boolean |
isTemp()
Gets a boolean value indicates whether it is temporarily. |
void |
setAlignment(AlignmentType cellAlign)
Sets a AlignmentType Object that
indicates the alignment type of the cell. |
void |
setBackgroundColor(Color backColor)
Sets a Color object that indicates the
background color of the cell. |
void |
setBorder(BorderInfo cellBorder)
Sets a BorderInfo object that indicates the cell's border info. |
void |
setColumnIndex(int columnIndex)
Sets an int value that indicates the column index. |
void |
setColumnNumber(int columnNum)
Sets an int value that indicates the number of the column. |
void |
setColumnsSpan(int spanCols)
Sets an int value that indicates how many columns the cell spans. |
void |
setDefaultCellTextInfo(TextInfo defaultCellsTextInfo)
Sets a TextInfo object that indicates
the default cell text format info. |
void |
setFitWidth(float fitWidth)
Deprecated. Please use Table.setColumnWidths() instead. |
void |
setHeight(float cellHeight)
Sets a float value that indicates the height of the cell. |
void |
setID(java.lang.String cellID)
Sets a String that indicates the ID of the cell. |
void |
setIsBorderSetbyUser(boolean isBorderSetbyUser)
Sets a boolean value indicates whether border is set by user. |
void |
setIsPositionGot(boolean isPositionGot)
Sets a boolean value indicates whether position has been gotten. |
void |
setIsPositionProcessed(boolean isPositionProcessed)
Sets a boolean value indicates whether position has been processed. |
void |
setIsVerticalTextsInCell(boolean isVerticalTextsInCell)
set isVerticalTextsInCell value |
void |
setNoBorder(boolean isNoBorder)
Sets a boolean value that indicates whether the cell have borders. |
void |
setPadding(MarginInfo cellPadding)
Sets a MarginInfo object that indicates
the cell's padding. |
void |
setParagraphs(Paragraphs cellParas)
Sets a Paragraphs collection that indicates
all paragraphs in the cell. |
void |
setPosX(float posX)
Sets a float value that indicates the x-coordinate of beginning position of the cell. |
void |
setPosY(float posY)
Sets a float value that indicates the y-coordinate of beginning position of the cell. |
void |
setRow(Row parentRow)
Sets a Row object that contains the cell. |
void |
setRowSpan(int rowSpan)
Sets an int value that indicates how many rows the cell spans. |
void |
setTable(Table tab)
Sets a Table object that contains the cell. |
void |
setTemp(boolean isTemp)
Sets a boolean value indicates whether it is temporarily. |
void |
setVerticalAlignment(VerticalAlignmentType verticalAlignment)
Sets a VerticalAlignmentType
object that indicates the vertical alignment type. |
void |
setVerticalTextRotationAngle(VerticalTextRotationType verticalAngle)
Sets a VerticalTextRotationType
object that indicates the text rotation angle in floating box or cells. |
void |
setWidth(float cellWidth)
Sets a float value that indicates the width of the cell. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isVerticalAlignmentSet
public float MinWidth
Constructor Detail |
---|
public Cell()
Cell
class.
public Cell(Table table)
Cell
class in a table.
table
- The Table object where the cell is in.public Cell(Row row)
Cell
class in a table.
row
- The Row object where the cell is in.Method Detail |
---|
public boolean getIsBorderSetbyUser()
public void setIsBorderSetbyUser(boolean isBorderSetbyUser)
isBorderSetbyUser
- A boolean value.public BorderInfo getBorder()
BorderInfo
object that indicates the cell's border info.
BorderInfo
object.public void setBorder(BorderInfo cellBorder)
BorderInfo
object that indicates the cell's border info.
cellBorder
- A BorderInfo
object.public boolean isNoBorder()
public void setNoBorder(boolean isNoBorder)
isNoBorder
- Boolean value.public Color getBackgroundColor()
Color
object that indicates the background color of the cell.
Color
object.public void setBackgroundColor(Color backColor)
Color
object that indicates the
background color of the cell.
backColor
- Color object.public MarginInfo getPadding()
MarginInfo
object that indicates the cell's padding.
MarginInfo
object.public void setPadding(MarginInfo cellPadding)
MarginInfo
object that indicates
the cell's padding.
cellPadding
- A MarginInfo
object.public MarginInfo getDefaultPadding()
MarginInfo
object.public boolean getIsPositionProcessed()
public void setIsPositionProcessed(boolean isPositionProcessed)
isPositionProcessed
- A boolean value.public float getPosX()
public void setPosX(float posX)
posX
- A float value.public float getPosY()
public void setPosY(float posY)
posY
- A float value.public int getColumnNumber()
public void setColumnNumber(int columnNum)
columnNum
- An int value.public int getColumnIndex()
public void setColumnIndex(int columnIndex)
columnIndex
- An int value.public float getFitWidth()
public void setFitWidth(float fitWidth)
fitWidth
- A float value.public float getWidth()
public void setWidth(float cellWidth)
cellWidth
- A float value.public float getHeight()
public void setHeight(float cellHeight)
cellHeight
- A float value.public Paragraphs getParagraphs()
Paragraphs
collection that indicates all paragraphs in the cell.
Paragraphs
object.public void setParagraphs(Paragraphs cellParas)
Paragraphs
collection that indicates
all paragraphs in the cell.
cellParas
- A Paragraphs
object.public java.lang.String getID()
public void setID(java.lang.String cellID)
cellID
- A String value.public Table getTable()
Table
object that contains the cell.
Table
value.public void setTable(Table tab)
Table
object that contains the cell.
tab
- A Table
object.public Row getRow()
Row
object that contains the cell.
Row
object.public void setRow(Row parentRow)
Row
object that contains the cell.
parentRow
- A Row
object.public int getColumnsSpan()
public void setColumnsSpan(int spanCols)
spanCols
- An int value.public TextInfo getDefaultCellTextInfo()
TextInfo
object that indicates the default cell text format info.
TextInfo
object.public void setDefaultCellTextInfo(TextInfo defaultCellsTextInfo)
TextInfo
object that indicates
the default cell text format info.
defaultCellsTextInfo
- A TextInfo
object.public boolean getIsVerticalTextsInCell()
public void setIsVerticalTextsInCell(boolean isVerticalTextsInCell)
isVerticalTextsInCell
- A boolean value.public VerticalTextRotationType getVerticalTextRotationAngle()
VerticalTextRotationType
object that indicates the text rotation angle in floating box or cells.
VerticalTextRotationType
object.public void setVerticalTextRotationAngle(VerticalTextRotationType verticalAngle)
VerticalTextRotationType
object that indicates the text rotation angle in floating box or cells.
verticalAngle
- A VerticalTextRotationType
object.public VerticalAlignmentType getVerticalAlignment()
VerticalAlignmentType
object that indicates the vertical alignment type.
VerticalAlignmentType
object.public void setVerticalAlignment(VerticalAlignmentType verticalAlignment)
VerticalAlignmentType
object that indicates the vertical alignment type.
verticalAlignment
- VerticalAlignmentType object.public boolean isTemp()
public void setTemp(boolean isTemp)
isTemp
- A boolean value.public int getRowSpan()
public void setRowSpan(int rowSpan)
rowSpan
- An int value.public java.lang.Object clone()
Clones a new Cell
object. This method clones only the format but not
contents of the cell.
clone
in class java.lang.Object
Cell
object.public java.lang.Object completeClone()
Clones a new Cell
object. This method clones both format and contents of
the cell.
Cell
object.public AlignmentType getAlignment()
AlignmentType
Object that indicates the alignment type of the cell.
AlignmentType
object.public void setAlignment(AlignmentType cellAlign)
AlignmentType
Object that
indicates the alignment type of the cell.
cellAlign
- A AlignmentType
object.public boolean getIsPositionGot()
public void setIsPositionGot(boolean isPositionGot)
isPositionGot
- A boolean value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |