java.lang.Objectcom.pdfjet.Cell
public class Cell
Used to create table cell objects. See the Table class for more information.
Constructor Summary | |
---|---|
Cell(Font font)
Creates a cell object and sets the font. |
|
Cell(Font font,
Font fallbackFont,
java.lang.String text)
Creates a cell object and sets the font, fallback font and the cell text. |
|
Cell(Font font,
java.lang.String text)
Creates a cell object and sets the font and the cell text. |
Method Summary | |
---|---|
int |
getBgColor()
Returns the background color of this cell. |
boolean |
getBorder(int border)
Returns the cell border object. |
int |
getBrushColor()
Returns the brush color. |
int |
getColSpan()
Returns the column span private variable value. |
CompositeTextLine |
getCompositeTextLine()
Returns the composite text object. |
Font |
getFallbackFont()
Returns the fallback font used by this cell. |
Font |
getFont()
Returns the font used by this cell. |
float |
getHeight()
Returns the cell height. |
Image |
getImage()
Returns the cell image. |
float |
getLineWidth()
Returns the border line width. |
int |
getNumVerCells()
Use this method to find out how many vertically stacked cell are needed after call to wrapAroundCellText. |
int |
getNumVerCells2()
Use this method to find out how many vertically stacked cell are needed after call to wrapAroundCellText2. |
int |
getPenColor()
Returns the pen color. |
Point |
getPoint()
Returns the cell point. |
boolean |
getStrikeout()
Returns the strikeout text parameter. |
java.lang.String |
getText()
Returns the cell text. |
int |
getTextAlignment()
Returns the text alignment. |
boolean |
getUnderline()
Returns the underline text parameter. |
int |
getVerTextAlignment()
Returns the cell text vertical alignment. |
float |
getWidth()
Returns the cell width. |
void |
setBgColor(int color)
Sets the background to the specified color. |
void |
setBorder(int border,
boolean visible)
Sets the cell border object. |
void |
setBottomPadding(float padding)
Sets the bottom padding of this cell. |
void |
setBrushColor(int color)
Sets the brush color. |
void |
setColSpan(int colspan)
Sets the column span private variable. |
void |
setCompositeTextLine(CompositeTextLine compositeTextLine)
Sets the composite text object. |
void |
setFallbackFont(Font fallbackFont)
Sets the fallback font for this cell. |
void |
setFgColor(int color)
Sets the pen and brush colors to the specified color. |
void |
setFont(Font font)
Sets the font for this cell. |
void |
setImage(Image image)
Sets the image inside this cell. |
void |
setLeftPadding(float padding)
Sets the left padding of this cell. |
void |
setLineWidth(float lineWidth)
Sets the border line width. |
void |
setNoBorders()
Sets all border object parameters to false. |
void |
setPadding(float padding)
Sets the top, bottom, left and right paddings of this cell. |
void |
setPenColor(int color)
Sets the pen color. |
void |
setPoint(Point point)
Sets the point inside this cell. |
void |
setRightPadding(float padding)
Sets the right padding of this cell. |
void |
setStrikeout(boolean strikeout)
Sets the strikeout text parameter. |
void |
setText(java.lang.String text)
Sets the cell text. |
void |
setTextAlignment(int alignment)
Sets the cell text alignment. |
void |
setTopPadding(float padding)
Sets the top padding of this cell. |
void |
setUnderline(boolean underline)
Sets the underline text parameter. |
void |
setURIAction(java.lang.String uri)
|
void |
setVerTextAlignment(int alignment)
Sets the cell text vertical alignment. |
void |
setWidth(float width)
Sets the width of this cell. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cell(Font font)
font
- the font.public Cell(Font font, java.lang.String text)
font
- the font.text
- the text.public Cell(Font font, Font fallbackFont, java.lang.String text)
font
- the font.fallbackFont
- the fallback font.text
- the text.Method Detail |
---|
public void setFont(Font font)
font
- the font.public void setFallbackFont(Font fallbackFont)
fallbackFont
- the fallback font.public Font getFont()
public Font getFallbackFont()
public void setText(java.lang.String text)
text
- the cell text.public java.lang.String getText()
public void setImage(Image image)
image
- the image.public Image getImage()
public void setPoint(Point point)
point
- the point.public Point getPoint()
public void setCompositeTextLine(CompositeTextLine compositeTextLine)
compositeTextLine
- the composite text object.public CompositeTextLine getCompositeTextLine()
public void setWidth(float width)
width
- the specified width.public float getWidth()
public void setTopPadding(float padding)
padding
- the top padding.public void setBottomPadding(float padding)
padding
- the bottom padding.public void setLeftPadding(float padding)
padding
- the left padding.public void setRightPadding(float padding)
padding
- the right padding.public void setPadding(float padding)
padding
- the right padding.public float getHeight()
public void setLineWidth(float lineWidth)
lineWidth
- the border line width.public float getLineWidth()
public void setBgColor(int color)
color
- the color specified as 0xRRGGBB integer.public int getBgColor()
public void setPenColor(int color)
color
- the color specified as 0xRRGGBB integer.public int getPenColor()
public void setBrushColor(int color)
color
- the color specified as 0xRRGGBB integer.public int getBrushColor()
public void setFgColor(int color)
color
- the color specified as 0xRRGGBB integer.public void setColSpan(int colspan)
colspan
- the specified column span value.public int getColSpan()
public void setBorder(int border, boolean visible)
border
- the border object.public boolean getBorder(int border)
public void setNoBorders()
public void setTextAlignment(int alignment)
alignment
- the alignment code.
Supported values: Align.LEFT, Align.RIGHT and Align.CENTER.public int getTextAlignment()
public void setVerTextAlignment(int alignment)
alignment
- the alignment code.
Supported values: Align.TOP, Align.CENTER and Align.BOTTOM.public int getVerTextAlignment()
public void setUnderline(boolean underline)
underline
- the underline text parameter.public boolean getUnderline()
public void setStrikeout(boolean strikeout)
strikeout
- the strikeout text parameter.public boolean getStrikeout()
public void setURIAction(java.lang.String uri)
public int getNumVerCells()
public int getNumVerCells2()