|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.core.internal.DItem
org.eclipse.tptp.platform.report.core.internal.DItemContainer
org.eclipse.tptp.platform.report.core.internal.DAbstractParagraph
org.eclipse.tptp.platform.report.core.internal.DCell
org.eclipse.tptp.platform.report.birt).
public class DCell
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"));
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 |
|---|
public static final int DEFAULT_COLSPAN
public static final int DEFAULT_ROWSPAN
| Constructor Detail |
|---|
public DCell(int cspan,
int rspan,
int align)
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.IDAlignmentpublic DCell(int align)
align - is the global alignment for the cell.IDAlignment
public DCell(int cspan,
int rspan)
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.public DCell()
| Method Detail |
|---|
public int getColSpan()
public void setColSpan(int aColSpan)
aColSpan - the new value of the colSpan propertypublic int getRowSpan()
public void setRowSpan(int aRowSpan)
aRowSpan - the new value of the rowSpan propertypublic int getLineNumber()
public int getColumnNumber()
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||