org.jfree.layouting.renderer.model.table

Class TableCellRenderBox

public class TableCellRenderBox extends BlockRenderBox

A table section box does not much rendering or layouting at all. It represents one of the three possible sections and behaves like any other block box. But (here it comes!) it refuses to be added to anything else than a TableRenderBox (a small check to save me a lot of insanity ..).

Author: Thomas Morgner

Constructor Summary
TableCellRenderBox(BoxDefinition boxDefinition, boolean autoGenerated)
TableCellRenderBox(BoxDefinition boxDefinition)
Method Summary
voidappyStyle(LayoutContext context, OutputProcessorMetaData metaData)
RenderNodegetCellNode()
intgetColSpan()
intgetColumnIndex()
BordergetEffectiveBorder()
BordergetOriginalBorder()
intgetRowSpan()
TableRenderBoxgetTable()
booleanisAutoGenerated()
booleanisIgnorableForRendering()
If that method returns true, the element will not be used for rendering.
protected CSSValuenormalizeAlignment(CSSValue verticalAlignment)
voidsetColumnIndex(int columnIndex)
voidsetEffectiveBorder(Border effectiveBorder)

Constructor Detail

TableCellRenderBox

public TableCellRenderBox(BoxDefinition boxDefinition, boolean autoGenerated)

TableCellRenderBox

public TableCellRenderBox(BoxDefinition boxDefinition)

Method Detail

appyStyle

public void appyStyle(LayoutContext context, OutputProcessorMetaData metaData)

getCellNode

public RenderNode getCellNode()

getColSpan

public int getColSpan()

getColumnIndex

public int getColumnIndex()

getEffectiveBorder

public Border getEffectiveBorder()

getOriginalBorder

public Border getOriginalBorder()

getRowSpan

public int getRowSpan()

getTable

public TableRenderBox getTable()

isAutoGenerated

public boolean isAutoGenerated()

isIgnorableForRendering

public boolean isIgnorableForRendering()
If that method returns true, the element will not be used for rendering. For the purpose of computing sizes or performing the layouting (in the validate() step), this element will treated as if it is not there.

If the element reports itself as non-empty, however, it will affect the margin computation.

Returns:

normalizeAlignment

protected CSSValue normalizeAlignment(CSSValue verticalAlignment)

setColumnIndex

public void setColumnIndex(int columnIndex)

setEffectiveBorder

public void setEffectiveBorder(Border effectiveBorder)