|
TPTP 4.6.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.DTable
org.eclipse.tptp.platform.report.birt).
public class DTable
A table is defined by rows and cells: it contains rows and each row contains
cells.
Exemple:
DTable tab = new DTable(1,false);
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();
c2 = new DCell();
r[1].addChild(c1);
r[1].insertChild(c2, c1);
c1.addChild(new DText("cell 1,0"));
c2.addChild(new DText("cell 1,1"));
This exemple creates a table with 2 rows and 2 cells:
_______________
| cell 0,0 | cell 0,1 |
|______________ |
| cell 1,0 | cell 1,1 |
|______________ |
By default each column has the same size. You can set a width restriction for
each by using the method setColumnWidth of the DTable. This method has one
parameter that is a float table. For each column you can set a float value that
indicates the percent size of the column of the document's width.
Exemple:
float cols[2]={0.25,0.75};
tab.setColumnWidth(cols);
Result:
25.0 and 75.0 values represent respectively 25% for the first column and 75%
for the second.
________________________________
| cell 0,0 .. | cell 0,1................................|
|_______________________________|
| cell 1,0 .. | cell 1,1 ...............................|
|_______________________________|
DRow,
DCell| Constructor Summary | |
|---|---|
DTable()
Deprecated. Creates a DTable. |
|
DTable(int b)
Deprecated. Creates a DTable with border line size of 'b' pixels and a size policy or not. |
|
| Method Summary | |
|---|---|
int |
getBorder()
Deprecated. Access method for the border property. |
int |
getColumnCount()
Deprecated. Returns the real number of columns. |
float[] |
getColumnWidth()
Deprecated. Access method for the columnWidth property. |
float |
getHeightScale()
Deprecated. Access method for the heightScale property. |
int |
getRowCount()
Deprecated. Returns the real number of lines. |
float |
getWidthScale()
Deprecated. Access method for the widthScale property. |
void |
setBorder(int aBorder)
Deprecated. Sets the value of the border property. |
void |
setColumnWidth(float[] aColumnWidth)
Deprecated. Sets the value of the columnWidth property. |
void |
setHeightScale(float aHeightScale)
Deprecated. Sets the value of the heightScale property. |
void |
setWidthScale(float aWidthScale)
Deprecated. Sets the value of the widthScale property. |
| 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 |
| Methods inherited from interface org.eclipse.tptp.platform.report.core.internal.IDItem |
|---|
addChild, clear, getAppliedStyle, getChildCount, getChildPosition, getFirstChild, getIterator, getLastChild, getNext, getParent, getRoot, getStyle, insertChild, isContainer, removeChild, setNext, setParent, setStyle |
| Methods inherited from interface org.eclipse.tptp.platform.report.core.internal.IDItem |
|---|
addChild, clear, getAppliedStyle, getChildCount, getChildPosition, getFirstChild, getIterator, getLastChild, getNext, getParent, getRoot, getStyle, insertChild, isContainer, removeChild, setNext, setParent, setStyle |
| Constructor Detail |
|---|
public DTable(int b)
b - size of the border linepublic DTable()
| Method Detail |
|---|
public int getBorder()
public void setBorder(int aBorder)
aBorder - the new value of the border propertypublic float getWidthScale()
getWidthScale in interface IDSizeableItempublic void setWidthScale(float aWidthScale)
setWidthScale in interface IDSizeableItemaWidthScale - the new value of the widthScale propertypublic float getHeightScale()
getHeightScale in interface IDSizeableItempublic void setHeightScale(float aHeightScale)
setHeightScale in interface IDSizeableItemaHeightScale - the new value of the heightScale propertypublic float[] getColumnWidth()
public void setColumnWidth(float[] aColumnWidth)
aColumnWidth - the new value of the columnWidth propertypublic int getColumnCount()
public int getRowCount()
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||