TPTP 4.6.0 Platform Project
Internal API Specification

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

java.lang.Object
  extended by org.eclipse.tptp.platform.report.drivers.ui.layout.internal.TAbstractCell
All Implemented Interfaces:
IRect, IShape
Direct Known Subclasses:
TAbstractCellContainer, TCell, TCellData, TCellFocusMark, TCellImage, TCellLine, TCellLinePrefix, TCellText

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 abstract class TAbstractCell
extends java.lang.Object
implements IRect

Provides an abstract base class which is the basic item in an SWTViewer. A cell is a rectangle which do not contain child TCell.


Field Summary
protected  int h
          Deprecated.  
protected  IDItem item
          Deprecated.  
protected  TAbstractCell next
          Deprecated.  
protected  TAbstractCellContainer parent
          Deprecated.  
protected  int position
          Deprecated.  
protected  TAbstractCell previous
          Deprecated.  
protected  int w
          Deprecated.  
protected  int x
          Deprecated.  
protected  int y
          Deprecated.  
 
Constructor Summary
TAbstractCell(IDItem i)
          Deprecated. Builds a new cell and associates it with an IDItem.
 
Method Summary
abstract  void computeSize(int hintW, int hintH, float zoom, IGC gc, IDProgressMonitor monitor)
          Deprecated. Computes the prefered size of the TCell.
 boolean contains(int _x, int _y)
          Deprecated. returns true if the point is contained in the cell
 boolean contains(IPoint p)
          Deprecated. returns true if the point is contained in the cell
 IShape copyShape()
          Deprecated. Returns a new Rect which is equal to the cell size and position
 void dispose()
          Deprecated. disposes the cell ( detaches and unassociates the IDItem )
abstract  void dump(int level)
          Deprecated. Just for debug session, dumps the content of the cell
 IRect getBounds()
          Deprecated. Returns the height of the cell
 TAbstractCell getChild()
          Deprecated. Returns always null
 int getH()
          Deprecated. Returns the height of the cell
 int getHeight()
          Deprecated. Returns the height of the cell
 IDItem getItem()
          Deprecated. returns the item associated with the cell
 TAbstractCell getNext()
          Deprecated. returns the sibling cell
 TAbstractCellContainer getParent()
          Deprecated. returns the parent
 int getPosition()
          Deprecated. returns always the position
 TAbstractCell getPrevious()
          Deprecated. returns the previous cell
 int getW()
          Deprecated. Returns the width of the cell.
 int getWidth()
          Deprecated. Returns the width of the cell.
 int getX()
          Deprecated. returns the X coordinate of the cell
 int getY()
          Deprecated. returns the Y coordinate of the cell
 void setItem(IDItem aItem)
          Deprecated. Sets the item which is associated with the cell.
 void setNext(TAbstractCell aNext)
          Deprecated. sets the sibling cell
 void setParent(TAbstractCellContainer aParent)
          Deprecated. sets the parent cell
 void setPosition(int aPosition)
          Deprecated. Sets the value of the position property.
 void setPrevious(TAbstractCell aPrevious)
          Deprecated. sets the previous cell
 void setSize(int _w, int _h)
          Deprecated. Sets the size of the cell
 void setXY(int _x, int _y)
          Deprecated. Sets X,Y coordinates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

protected IDItem item
Deprecated. 

next

protected TAbstractCell next
Deprecated. 

previous

protected TAbstractCell previous
Deprecated. 

parent

protected TAbstractCellContainer parent
Deprecated. 

x

protected int x
Deprecated. 

y

protected int y
Deprecated. 

w

protected int w
Deprecated. 

h

protected int h
Deprecated. 

position

protected int position
Deprecated. 
Constructor Detail

TAbstractCell

public TAbstractCell(IDItem i)
Deprecated. 
Builds a new cell and associates it with an IDItem.

Method Detail

computeSize

public abstract void computeSize(int hintW,
                                 int hintH,
                                 float zoom,
                                 IGC gc,
                                 IDProgressMonitor monitor)
Deprecated. 
Computes the prefered size of the TCell. This method tries to respect the prefered size given by the parameters hintW/hintH. If it is not possible or if the parameter's hintW/hintH value is ILayout.NO_SIZE_HINT the method computes the minimum size of the cell.


copyShape

public IShape copyShape()
Deprecated. 
Returns a new Rect which is equal to the cell size and position

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

dump

public abstract void dump(int level)
Deprecated. 
Just for debug session, dumps the content of the cell


getPosition

public int getPosition()
Deprecated. 
returns always the position


setPosition

public void setPosition(int aPosition)
Deprecated. 
Sets the value of the position property.


setXY

public void setXY(int _x,
                  int _y)
Deprecated. 
Sets X,Y coordinates


getX

public int getX()
Deprecated. 
returns the X coordinate of the cell

Specified by:
getX in interface IRect
Returns:
X coordinate of rectangle (this is top left corner if W and H are positive)

getY

public int getY()
Deprecated. 
returns the Y coordinate of the cell

Specified by:
getY in interface IRect
Returns:
Y coordinate of rectangle (this is top left corner if W and H are positive)

setSize

public void setSize(int _w,
                    int _h)
Deprecated. 
Sets the size of the cell


getBounds

public IRect getBounds()
Deprecated. 
Returns the height of the cell

Specified by:
getBounds in interface IShape
Returns:
bounding box of shape

getHeight

public int getHeight()
Deprecated. 
Returns the height of the cell


getWidth

public int getWidth()
Deprecated. 
Returns the width of the cell.


getH

public int getH()
Deprecated. 
Returns the height of the cell

Specified by:
getH in interface IRect
Returns:
height of rectangle

getW

public int getW()
Deprecated. 
Returns the width of the cell.

Specified by:
getW in interface IRect
Returns:
width of rectangle

getItem

public IDItem getItem()
Deprecated. 
returns the item associated with the cell


setItem

public void setItem(IDItem aItem)
Deprecated. 
Sets the item which is associated with the cell.


contains

public boolean contains(IPoint p)
Deprecated. 
returns true if the point is contained in the cell

Specified by:
contains in interface IShape
Returns:
true if point (in pixels) is contained in shape

contains

public boolean contains(int _x,
                        int _y)
Deprecated. 
returns true if the point is contained in the cell

Specified by:
contains in interface IShape
Returns:
true if point (in pixels) is contained in shape

getChild

public TAbstractCell getChild()
Deprecated. 
Returns always null


getNext

public TAbstractCell getNext()
Deprecated. 
returns the sibling cell


setNext

public void setNext(TAbstractCell aNext)
Deprecated. 
sets the sibling cell


getPrevious

public TAbstractCell getPrevious()
Deprecated. 
returns the previous cell


setPrevious

public void setPrevious(TAbstractCell aPrevious)
Deprecated. 
sets the previous cell


getParent

public TAbstractCellContainer getParent()
Deprecated. 
returns the parent


setParent

public void setParent(TAbstractCellContainer aParent)
Deprecated. 
sets the parent cell


dispose

public void dispose()
Deprecated. 
disposes the cell ( detaches and unassociates the IDItem )


TPTP 4.6.0 Platform Project
Internal API Specification