TPTP 4.5.0 Platform Project
Internal API Specification

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

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.TCellParagraph
All Implemented Interfaces:
IContentProvider, ILayout, ILineLayout, 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 TCellParagraph
extends TMLayoutContentCellContainer
implements ILineLayout

Provides a layout which is available to manage paragraph text format. A Paragraph layout contains several lines and can support alignment

See Also:
setAlignment(int)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.tptp.platform.report.drivers.ui.layout.internal.ILineLayout
ILineLayout.ILine
 
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
TCellParagraph(IDItem i, ILayout parent, int align)
          Deprecated. Builds a new paragraph layout with an initial alignment and a parent layout.
 
Method Summary
 void computeSize(TAbstractCellContainer cell, int hintW, int hintH, float _zoom, IGC _gc, IDProgressMonitor monitor)
          Deprecated. Computes the size of the paragraph.
 void fillContent(TAbstractCellContainer _cell, IDItem _item, IGC _gc, IDIImageProvider _pm, IDProgressMonitor monitor, DTitleLevel tl, DListLevel ll, boolean flatpopup)
          Deprecated. Computes the children cells for the IDItem Calls TLayoutExtensible's doMethod to fill the layout
 int getAlignment()
          Deprecated. Returns the alignment.
 ILineLayout.ILine getFirstLine()
          Deprecated. Returns the first line.
 ILineLayout.ILine getLastLine()
          Deprecated. Returns the last line.
 ILineLayout.ILine getLineAt(int i)
          Deprecated. Returns the line at the position i.
 int getLineCount()
          Deprecated. Returns tne number of line.
 int getLinesHeight()
          Deprecated. Returns the height in pixel of all lines.
 int getMaxLineWidth()
          Deprecated. Returns the max line width.
 int layout(TAbstractCellContainer cell, float zoom, int charpos, IDProgressMonitor monitor)
          Deprecated. Sets the position X,Y of each children cell of the paragraph.
 void setAlignment(int alignment)
          Deprecated. Sets the alignment of the layout
 
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
 
Methods inherited from interface org.eclipse.tptp.platform.report.drivers.ui.layout.internal.ILayout
isReversed, setReversed
 

Constructor Detail

TCellParagraph

public TCellParagraph(IDItem i,
                      ILayout parent,
                      int align)
Deprecated. 
Builds a new paragraph layout with an initial alignment and a parent layout. This layout inherits inverse and ??? attribute values of the parent.

Method Detail

fillContent

public void fillContent(TAbstractCellContainer _cell,
                        IDItem _item,
                        IGC _gc,
                        IDIImageProvider _pm,
                        IDProgressMonitor monitor,
                        DTitleLevel tl,
                        DListLevel ll,
                        boolean flatpopup)
Deprecated. 
Computes the children cells for the IDItem Calls TLayoutExtensible's doMethod to fill the layout

Specified by:
fillContent in interface IContentProvider
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 paragraph. Each line width is lower than hintW if hintW is bigger than line width minimum. Automatic carriage return is inserted behind and after a DLine, DParagraph, DPopup, DTable, DPopup item.

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 charpos,
                  IDProgressMonitor monitor)
Deprecated. 
Sets the position X,Y of each children cell of the paragraph.

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

getMaxLineWidth

public int getMaxLineWidth()
Deprecated. 
Returns the max line width.

Specified by:
getMaxLineWidth in interface ILineLayout

getLinesHeight

public int getLinesHeight()
Deprecated. 
Returns the height in pixel of all lines.

Specified by:
getLinesHeight in interface ILineLayout

getLineCount

public int getLineCount()
Deprecated. 
Returns tne number of line.

Specified by:
getLineCount in interface ILineLayout

getLineAt

public ILineLayout.ILine getLineAt(int i)
Deprecated. 
Returns the line at the position i.

Specified by:
getLineAt in interface ILineLayout

getFirstLine

public ILineLayout.ILine getFirstLine()
Deprecated. 
Returns the first line.

Specified by:
getFirstLine in interface ILineLayout

getLastLine

public ILineLayout.ILine getLastLine()
Deprecated. 
Returns the last line.

Specified by:
getLastLine in interface ILineLayout

getAlignment

public int getAlignment()
Deprecated. 
Returns the alignment.

See Also:
IDAlignment

setAlignment

public void setAlignment(int alignment)
Deprecated. 
Sets the alignment of the layout

See Also:
IDAlignment

TPTP 4.5.0 Platform Project
Internal API Specification