DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class Cell

java.lang.Object
  |
  +--com.cete.dynamicpdf.pageelements.Cell

public class Cell
extends java.lang.Object

Class represents a cell of a table.

View Example


Method Summary
 TextAlign getAlign()
          Gets the TextAlign enumeration to use for the horizontal alignment of the text in the cell.
 boolean getAutoLeading()
          Gets whether the leading of the cell should be calculated automatically.
 Color getBackgroundColor()
          Gets the Color object to use for the background of the cell.
 int getColumnIndex()
          Gets the index of the Column in which the cell begins.
 int getColumnSpan()
          Gets the actual number of Columns that the cell spans.
 PageElement getElement()
          Gets the page element contained in the cell.
 Font getFont()
          Gets the Font object to use for the cell.
 float getFontSize()
          Gets the font size to use for the text in the cell.
 float getHeight()
          Gets the height of the cell.
 float getLeading()
          Gets the leading for the text of the cell.
 float getParagraphIndent()
          Gets the paragraph indent for the paragraphs of the cell.
 float getParagraphSpacing()
          Gets the paragraph spacing for the paragraphs of the cell.
 boolean getRightToLeft()
          Gets a value specifying whether the text in the cell will be displayed right to left.
 Row getRow()
          Gets the Row that the cell is contained in.
 java.lang.String getText()
          Gets the text to be displayed.
 Color getTextColor()
          Gets the Color object to use for the text of the cell.
 boolean getUnderline()
          Gets a value specifying whether the text in the cell will be underlined.
 VAlign getVAlign()
          Gets the VAlign enumeration to use for the vertical alignment of the text in the cell.
 float getWidth()
          Gets the width of the cell.
 void setAlign(TextAlign value)
          Sets the TextAlign enumeration to use for the horizontal alignment of the text in the cell.
 void setAutoLeading(boolean value)
          Sets whether the leading of the cell should be calculated automatically.
 void setBackgroundColor(Color value)
          Sets the Color object to use for the background of the cell.
 void setElement(PageElement value)
          Sets the page element contained in the cell.
 void setFont(Font value)
          Sets the Font object to use for the cell.
 void setFontSize(float value)
          Sets the font size to use for the text in the cell.
 void setLeading(float value)
          Sets the leading for the text of the cell.
 void setParagraphIndent(float value)
          Set the paragraph indent for the paragraphs of the cell.
 void setParagraphSpacing(float value)
          Gets the paragraph spacing for the paragraphs of the cell.
 void setRightToLeft(boolean value)
          Sets a value specifying whether the text in the cell will be displayed right to left.
 void setText(java.lang.String value)
          Sets the text to be displayed.
 void setTextColor(Color value)
          Sets the Color object to use for the text of the cell.
 void setUnderline(boolean value)
          Sets a value specifying whether the text in the cell will be underlined.
 void setVAlign(VAlign value)
          Sets the VAlign enumeration to use for the vertical alignment of the text in the cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getText

public java.lang.String getText()
Gets the text to be displayed.


setText

public void setText(java.lang.String value)
Sets the text to be displayed.


getElement

public PageElement getElement()
Gets the page element contained in the cell.


setElement

public void setElement(PageElement value)
Sets the page element contained in the cell.


getRow

public Row getRow()
Gets the Row that the cell is contained in.

See Also:
Row

getColumnIndex

public int getColumnIndex()
Gets the index of the Column in which the cell begins.

See Also:
Column

getWidth

public float getWidth()
Gets the width of the cell.


getFont

public Font getFont()
Gets the Font object to use for the cell.

See Also:
Font

setFont

public void setFont(Font value)
Sets the Font object to use for the cell.

See Also:
Font

getFontSize

public float getFontSize()
Gets the font size to use for the text in the cell.


setFontSize

public void setFontSize(float value)
Sets the font size to use for the text in the cell.


getTextColor

public Color getTextColor()
Gets the Color object to use for the text of the cell.

See Also:
Color

setTextColor

public void setTextColor(Color value)
Sets the Color object to use for the text of the cell.

See Also:
Color

getBackgroundColor

public Color getBackgroundColor()
Gets the Color object to use for the background of the cell.

See Also:
Color

setBackgroundColor

public void setBackgroundColor(Color value)
Sets the Color object to use for the background of the cell.

See Also:
Color

getLeading

public float getLeading()
Gets the leading for the text of the cell.


setLeading

public void setLeading(float value)
Sets the leading for the text of the cell.

Setting this property will automatically set the AutoLeading property to false.


getAutoLeading

public boolean getAutoLeading()
Gets whether the leading of the cell should be calculated automatically.

Returns:
The leading of the cell calculated automatically, true by default.

setAutoLeading

public void setAutoLeading(boolean value)
Sets whether the leading of the cell should be calculated automatically.

This property is automatically set to false any time the Leading property is set.


getParagraphSpacing

public float getParagraphSpacing()
Gets the paragraph spacing for the paragraphs of the cell.


setParagraphSpacing

public void setParagraphSpacing(float value)
Gets the paragraph spacing for the paragraphs of the cell.


getParagraphIndent

public float getParagraphIndent()
Gets the paragraph indent for the paragraphs of the cell.


setParagraphIndent

public void setParagraphIndent(float value)
Set the paragraph indent for the paragraphs of the cell.


getAlign

public TextAlign getAlign()
Gets the TextAlign enumeration to use for the horizontal alignment of the text in the cell.


setAlign

public void setAlign(TextAlign value)
Sets the TextAlign enumeration to use for the horizontal alignment of the text in the cell.


getVAlign

public VAlign getVAlign()
Gets the VAlign enumeration to use for the vertical alignment of the text in the cell.


setVAlign

public void setVAlign(VAlign value)
Sets the VAlign enumeration to use for the vertical alignment of the text in the cell.


getUnderline

public boolean getUnderline()
Gets a value specifying whether the text in the cell will be underlined.


setUnderline

public void setUnderline(boolean value)
Sets a value specifying whether the text in the cell will be underlined.


getRightToLeft

public boolean getRightToLeft()
Gets a value specifying whether the text in the cell will be displayed right to left.


setRightToLeft

public void setRightToLeft(boolean value)
Sets a value specifying whether the text in the cell will be displayed right to left.


getColumnSpan

public int getColumnSpan()
Gets the actual number of Columns that the cell spans. This value can only be set in a constructor.

See Also:
Column

getHeight

public float getHeight()
Gets the height of the cell.


DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software