TPTP 4.5.0 Platform Project
Internal API Specification

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

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.TCellFolder
All Implemented Interfaces:
ICarriageReturn, IContentProvider, ILayout, 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 TCellFolder
extends TAbstractCellContainer
implements ILayout, IContentProvider, ICarriageReturn

Specialized TCell for DFolder item.


Field Summary
protected  java.util.ArrayList body_cells_
          Deprecated.  
protected  java.util.ArrayList header_cells_
          Deprecated.  
protected  boolean reversed_
          Deprecated.  
protected  TCellSymbol symbol_cell_
          Deprecated.  
 
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
TCellFolder(DFolder item)
          Deprecated.  
 
Method Summary
 void computeSize(TAbstractCellContainer cell, int hintW, int hintH, float zoom, IGC gc, IDProgressMonitor monitor)
          Deprecated. Computes the size of the specified composite's client area according to this layout.
 IShape copyShape()
          Deprecated. Returns a new Rect which is equal to the cell size and position
 void dump(int level)
          Deprecated. Just for debug session, dumps the content of the cell
 void fillContent(TAbstractCellContainer cell, IDItem fitem, IGC gc, IDIImageProvider pm, IDProgressMonitor monitor, DTitleLevel titleLevel, DListLevel listLevel, boolean flatPopup)
          Deprecated. fills the cell container with a children cell for each child of the IDItem
 java.util.Iterator getBodyCellIterator()
          Deprecated.  
 IContentProvider getContentProvider()
          Deprecated.  
 java.util.Iterator getHeaderCellIterator()
          Deprecated.  
 ILayout getLayout()
          Deprecated.  
 TCellSymbol getSymbolCell()
          Deprecated.  
 boolean hasCRAfter()
          Deprecated. Returns true if the cell has a carriage return after
 boolean hasCRBefore()
          Deprecated. Returns true if the cell has a carriage return before
 boolean isReversed()
          Deprecated. Returns the true if the layout is reversed (BiDi support)
 int layout(TAbstractCellContainer cell, float zoom, int char_position, IDProgressMonitor monitor)
          Deprecated. Lays out the children of the specified container according to this layout.
 void setReversed(boolean _reversed)
          Deprecated. Sets the if the layout is reversed LEFT->RIGHT etc...
 
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
 

Field Detail

symbol_cell_

protected TCellSymbol symbol_cell_
Deprecated. 

header_cells_

protected java.util.ArrayList header_cells_
Deprecated. 

body_cells_

protected java.util.ArrayList body_cells_
Deprecated. 

reversed_

protected boolean reversed_
Deprecated. 
Constructor Detail

TCellFolder

public TCellFolder(DFolder item)
Deprecated. 
Method Detail

getSymbolCell

public TCellSymbol getSymbolCell()
Deprecated. 

getHeaderCellIterator

public java.util.Iterator getHeaderCellIterator()
Deprecated. 

getBodyCellIterator

public java.util.Iterator getBodyCellIterator()
Deprecated. 

getLayout

public ILayout getLayout()
Deprecated. 
Specified by:
getLayout in class TAbstractCellContainer
Returns:
the layout of the container

getContentProvider

public IContentProvider getContentProvider()
Deprecated. 
Specified by:
getContentProvider in class TAbstractCellContainer
Returns:
the content provider of the container

copyShape

public IShape copyShape()
Deprecated. 
Description copied from class: TAbstractCell
Returns a new Rect which is equal to the cell size and position

Specified by:
copyShape in interface IShape
Overrides:
copyShape in class TAbstractCell
Returns:
full deep-copy of this shape
See Also:
Rect

dump

public void dump(int level)
Deprecated. 
Description copied from class: TAbstractCell
Just for debug session, dumps the content of the cell

Specified by:
dump in class TAbstractCell

computeSize

public void computeSize(TAbstractCellContainer cell,
                        int hintW,
                        int hintH,
                        float zoom,
                        IGC gc,
                        IDProgressMonitor monitor)
Deprecated. 
Description copied from interface: ILayout
Computes the size of the specified composite's client area according to this layout. This method computes the size of the container and their children must be in order to position all children at their size inside the container. This method tries to respect the prefered size given by the parameter (hintW, hintH). If it is not possible or if hintW/hinH is equal to the value NO_SIZE_HINT the method computes the minimum size of the children bounding box to the container.

Specified by:
computeSize in interface ILayout
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 char_position,
                  IDProgressMonitor monitor)
Deprecated. 
Description copied from interface: ILayout
Lays out the children of the specified container according to this layout. This method positions the children cell of a container using the layout algorithm encoded by this layout. Children of the container are positioned in the client area of the container. The position of the container is not altered by this method. This method returns the last character position in the container. This number is the number of character which appears in the container added to the value of the parameter char_position

Specified by:
layout in interface ILayout
Parameters:
cell - is the cell container
zoom - the zoom value
char_position - is the number of character which are before the container cell

isReversed

public boolean isReversed()
Deprecated. 
Description copied from interface: ILayout
Returns the true if the layout is reversed (BiDi support)

Specified by:
isReversed in interface ILayout

setReversed

public void setReversed(boolean _reversed)
Deprecated. 
Description copied from interface: ILayout
Sets the if the layout is reversed LEFT->RIGHT etc...

Specified by:
setReversed in interface ILayout

fillContent

public void fillContent(TAbstractCellContainer cell,
                        IDItem fitem,
                        IGC gc,
                        IDIImageProvider pm,
                        IDProgressMonitor monitor,
                        DTitleLevel titleLevel,
                        DListLevel listLevel,
                        boolean flatPopup)
Deprecated. 
Description copied from interface: IContentProvider
fills the cell container with a children cell for each child of the IDItem

Specified by:
fillContent in interface IContentProvider
Parameters:
cell - is the cell container for the IDItem item
fitem - 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
titleLevel - is the current title level in the document analyse
listLevel - 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:
SWTViewer#setContent(IDItem), SWTViewer#setContent(TAbstractCellContainer)

hasCRBefore

public boolean hasCRBefore()
Deprecated. 
Description copied from interface: ICarriageReturn
Returns true if the cell has a carriage return before

Specified by:
hasCRBefore in interface ICarriageReturn

hasCRAfter

public boolean hasCRAfter()
Deprecated. 
Description copied from interface: ICarriageReturn
Returns true if the cell has a carriage return after

Specified by:
hasCRAfter in interface ICarriageReturn

TPTP 4.5.0 Platform Project
Internal API Specification