TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.drivers.ui.layout.internal
Class TCellTable

java.lang.Object
  extended by org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TAbstractCell
      extended by org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TAbstractCellContainer
          extended by org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TMLayoutContentCellContainer
              extended by org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TCellTable
All Implemented Interfaces:
IContentProvider, ILayout, IMarginLayout, IRect, IShape

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 TCellTable
extends TMLayoutContentCellContainer

Provides a layout which manages each children as cell of a table


Field Summary
 
Fields inherited from class org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TAbstractCell
h, item, next, parent, position, previous, w, x, y
 
Fields inherited from interface org.eclipse.tptp.platform.report.drivers.ui.layout.internal.ILayout
NO_SIZE_HINT
 
Constructor Summary
TCellTable(IDItem i, int row, int col, float[] _columnWidth, int _border)
          Deprecated. Builds a table layout with row rows and col columns.
 
Method Summary
 void computeSize(TAbstractCellContainer cell, int hintW, int hintH, float zoom, IGC _gc, IDProgressMonitor monitor)
          Deprecated. Computes the size of the table
 void fillContent(TAbstractCellContainer cell, IDItem item, IGC _gc, IDIImageProvider _pm, IDProgressMonitor monitor, DTitleLevel tl, DListLevel ll, boolean flatpopup)
          Deprecated. Fills the content of the table layout.
 int getBorder()
          Deprecated. Returns the border size.
 float[] getColumnWidth()
          Deprecated. Returns the percent factor table for column size.
 int layout(TAbstractCellContainer cell, float zoom, int charpos, IDProgressMonitor monitor)
          Deprecated. Sets the XY coordinate positions of each cell.
 void setBorder(int border)
          Deprecated. Sets the border size.
 void setColumnWidth(float[] columnWidth)
          Deprecated. Sets the percent factor table for column size.
 
Methods inherited from class org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TMLayoutContentCellContainer
copyShape, dump, getBottomMargin, getContentProvider, getLayout, getLeftMargin, getRightMargin, getSpacing, getTopMargin, isReversed, setMargin, setReversed, setSpacing
 
Methods inherited from class org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TAbstractCellContainer
addCell, computeSize, dispose, fillContent, getChild, getChildCount, getLast, hasCell, insertCell, isFixedSize, layout, removeCell, setChild, setFixedSize
 
Methods inherited from class org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TAbstractCell
contains, contains, getBounds, getH, getHeight, getItem, getNext, getParent, getPosition, getPrevious, getW, getWidth, getX, getY, setItem, setNext, setParent, setPosition, setPrevious, setSize, setXY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCellTable

public TCellTable(IDItem i,
                  int row,
                  int col,
                  float[] _columnWidth,
                  int _border)
Deprecated. 
Builds a table layout with row rows and col columns.

Parameters:
row - is the number of rows.
col - is the number of columns.
_columnWidth - is a percent factor table of each column size.
_border - is the size of cell border (0 = no border)
Method Detail

fillContent

public void fillContent(TAbstractCellContainer cell,
                        IDItem item,
                        IGC _gc,
                        IDIImageProvider _pm,
                        IDProgressMonitor monitor,
                        DTitleLevel tl,
                        DListLevel ll,
                        boolean flatpopup)
Deprecated. 
Fills the content of the table layout. This method calls the TLayoutExtensible's doMethods.

Parameters:
cell - is the cell container for the IDItem item
item - is the JScrib IDItem mapped by the cell container
_gc - is the graphic context used to render the cell container
_pm - is the image provider to resolve image link
tl - is the current title level in the document analyse
ll - is the current list level in the document analyse
flatpopup - sets the mode to insert DPopup item in the document
Ex: to fill a container:
 myContainer.getContentProvider().fillContent(myContainer, myitem, mygc, mypm, 
                                              new DTitleLvel(), new DListLevel(), false);
 

The SWTViewer realizes this call automatically for its content
See Also:
TLayoutExtensible

computeSize

public void computeSize(TAbstractCellContainer cell,
                        int hintW,
                        int hintH,
                        float zoom,
                        IGC _gc,
                        IDProgressMonitor monitor)
Deprecated. 
Computes the size of the table

Parameters:
cell - is the cell container
hintW - the prefered width size in pixel
zoom - the zoom value
_gc - the graphic context used to render the cell

layout

public int layout(TAbstractCellContainer cell,
                  float zoom,
                  int charpos,
                  IDProgressMonitor monitor)
Deprecated. 
Sets the XY coordinate positions of each cell.

Parameters:
cell - is the cell container
zoom - the zoom value
charpos - is the number of character which are before the container cell

getColumnWidth

public float[] getColumnWidth()
Deprecated. 
Returns the percent factor table for column size.


setColumnWidth

public void setColumnWidth(float[] columnWidth)
Deprecated. 
Sets the percent factor table for column size.


getBorder

public int getBorder()
Deprecated. 
Returns the border size.


setBorder

public void setBorder(int border)
Deprecated. 
Sets the border size.


TPTP 4.5.0 Platform Project
Internal API Specification