TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DCell

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DItem
      extended by org.eclipse.tptp.platform.report.core.internal.DItemContainer
          extended by org.eclipse.tptp.platform.report.core.internal.DAbstractParagraph
              extended by org.eclipse.tptp.platform.report.core.internal.DCell
All Implemented Interfaces:
IDAlignment, IDItem, IDObject
Direct Known Subclasses:
DCellText

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DCell
extends DAbstractParagraph

This is a cell of table.
The cell is the smallest part of a table: table contains rows and each row contains cells, that's why you need a line number and a column number to define a cell.
A cell can contain all paragraph items and support alignment,all the items added to the cell will be displayed by the driver in the specified alignment.
You can create a cell occupating two or more columns by using the setColSpan method.

 Exemple:
DTable tab = new DTable(1,true);
DRow r[2];
r[0]=new DRow();
r[1]=new DRow();
DCell c1 = new DCell(), c2= new DCell();
r[0].addChild(c1);
r[0].insertChild(c2, c1);
c1.addChild(new DText("cell 0,0"));
c2.addChild(new DText("cell 0,1"));
c1 = new DCell();
c1.setColSpan(1); // <- this cell takes 2 columns
r[1].addChild(c1);
c1.addChild(new DText("cell 1,0 on two columns"));

Result:
The cell c1 of the second line has one "colspan"
______________________
| cell 0,0 .......| cell 0,1.......|
|_____________________|
| cell 1,0 on two columns ..|
|_____________________|

See Also:
DTable, DRow

Field Summary
static int DEFAULT_COLSPAN
          Deprecated.  
static int DEFAULT_ROWSPAN
          Deprecated.  
 
Fields inherited from interface org.eclipse.tptp.platform.report.core.internal.IDAlignment
BOTTOM, CENTER, DEFAULT_ALIGN, HCENTER, LAST, LEFT, NO_WORD_WRAP, RIGHT, ROTCCW90, ROTCW90, TOP, VCENTER, VERTICAL
 
Constructor Summary
DCell()
          Deprecated. Creates a cell with no column span and row span.
DCell(int align)
          Deprecated. Creates a cell.
DCell(int cspan, int rspan)
          Deprecated. Creates a cell.
DCell(int cspan, int rspan, int align)
          Deprecated. Creates a cell.
 
Method Summary
 int getColSpan()
          Deprecated. Access method for the colSpan property.
 int getColumnNumber()
          Deprecated. Returns the column number of the cell (with the col span value) that the cell is taking.
 int getLineNumber()
          Deprecated. Returns the line number (with the row span) that the cell is taking.
 int getRowSpan()
          Deprecated. Access method for the rowSpan property.
 void setColSpan(int aColSpan)
          Deprecated. Sets the value of the colSpan property.
 void setRowSpan(int aRowSpan)
          Deprecated. Sets the value of the rowSpan property.
 
Methods inherited from class org.eclipse.tptp.platform.report.core.internal.DAbstractParagraph
addAlignment, getAlignment, getAlignment, haveAlignment, haveOneOfAlignment, removeAlignment, setAlignment
 
Methods inherited from class org.eclipse.tptp.platform.report.core.internal.DItemContainer
clear, getChildCount, getChildOfClass, getChildPosition, getChildrenOfClass, getFirstChild, getLastChild, insertChild, isContainer, removeChild
 
Methods inherited from class org.eclipse.tptp.platform.report.core.internal.DItem
addChild, getAppliedStyle, getIterator, getNext, getParent, getRoot, getStyle, setNext, setParent, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_COLSPAN

public static final int DEFAULT_COLSPAN
Deprecated. 
See Also:
Constant Field Values

DEFAULT_ROWSPAN

public static final int DEFAULT_ROWSPAN
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

DCell

public DCell(int cspan,
             int rspan,
             int align)
Deprecated. 
Creates a cell.

Parameters:
cspan - is the number of column that the cell can occupate to the right.
rspan - is the number of line that the cell can occupate to the bottom.
align - is the global alignment for the cell.
See Also:
IDAlignment

DCell

public DCell(int align)
Deprecated. 
Creates a cell.

Parameters:
align - is the global alignment for the cell.
See Also:
IDAlignment

DCell

public DCell(int cspan,
             int rspan)
Deprecated. 
Creates a cell.

Parameters:
cspan - is the number of column that the cell can occupate to the right.
rspan - is the number of line that the cell can occupate to the bottom.

DCell

public DCell()
Deprecated. 
Creates a cell with no column span and row span.

Method Detail

getColSpan

public int getColSpan()
Deprecated. 
Access method for the colSpan property.

Returns:
the current value of the colSpan property

setColSpan

public void setColSpan(int aColSpan)
Deprecated. 
Sets the value of the colSpan property.

Parameters:
aColSpan - the new value of the colSpan property

getRowSpan

public int getRowSpan()
Deprecated. 
Access method for the rowSpan property.

Returns:
the current value of the rowSpan property

setRowSpan

public void setRowSpan(int aRowSpan)
Deprecated. 
Sets the value of the rowSpan property.

Parameters:
aRowSpan - the new value of the rowSpan property

getLineNumber

public int getLineNumber()
Deprecated. 
Returns the line number (with the row span) that the cell is taking.


getColumnNumber

public int getColumnNumber()
Deprecated. 
Returns the column number of the cell (with the col span value) that the cell is taking.


TPTP 4.5.0 Platform Project
Internal API Specification