TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DCoordAbstract

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DCoordAbstract
All Implemented Interfaces:
IDCoord, IDItem, IDObject
Direct Known Subclasses:
DCoord, DCoordObject

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 DCoordAbstract
extends java.lang.Object
implements IDCoord, IDItem

Abstract DCoord. Doesn't define any implementation choice to store value. Use IDItem to hold nor IDItem children nor IDStyle in this object (consume less memory).

See Also:
DAxis, DPoint, DCoord, DCoordObject

Constructor Summary
DCoordAbstract()
          Deprecated. Create unusable unknown coordinate on an inexistent axis.
DCoordAbstract(DAxis a)
          Deprecated. Create coordinate on an axis.
 
Method Summary
 boolean addChild(IDItem item)
          Deprecated. do nothing, since DCoord can't have child
 void clear()
          Deprecated. Clears the resources kept by the item.
 IDStyle getAppliedStyle()
          Deprecated. Returns the style to applied on this item, might be getStyle() or one of parent's style if getStyle returns null.
 DAxis getAxis()
          Deprecated.  
 int getChildCount()
          Deprecated. Returns the item child number.
 int getChildPosition(IDItem i)
          Deprecated. Returns the child item position in the list.
 IDItem getFirstChild()
          Deprecated. Returns the first child of the item.
 IDItemIterator getIterator()
          Deprecated. Returns the item iterator.
 IDItem getLastChild()
          Deprecated. Returns the last child of the item.
 IDItem getNext()
          Deprecated. Returns the next item.
 IDItem getParent()
          Deprecated. Returns the parent of the item.
 IDItem getRoot()
          Deprecated. Returns the current document.
 IDStyle getStyle()
          Deprecated. Do nothing because DCoord can't have style, apply style on DPoint or DCurve.
 boolean insertChild(IDItem item, IDItem after)
          Deprecated. Do nothing, because DCoord can't have child
 boolean isContainer()
          Deprecated. Returns true if the item is a container.
 boolean removeChild(IDItem item)
          Deprecated. Do nothing because DCoord can't have child
 void setAxis(DAxis _axis)
          Deprecated. Change axis of the coordinate.
 void setNext(IDItem i)
          Deprecated. Change next item of DCoord
 void setParent(IDItem p)
          Deprecated. Change parent item of DCoord
 void setStyle(IDStyle style)
          Deprecated. Do nothing because DCoord can't have style, apply style on DPoint or DCurve.
 
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.IDCoord
getValue, setValue
 

Constructor Detail

DCoordAbstract

public DCoordAbstract(DAxis a)
Deprecated. 
Create coordinate on an axis.

Parameters:
a - axis of the coordinate

DCoordAbstract

public DCoordAbstract()
Deprecated. 
Create unusable unknown coordinate on an inexistent axis. Becarefull using this constructor, you must provide axis/value calling setAxis(), setValue().

Method Detail

getAxis

public DAxis getAxis()
Deprecated. 
Specified by:
getAxis in interface IDCoord
Returns:
axis of the coordinate.

setAxis

public void setAxis(DAxis _axis)
Deprecated. 
Change axis of the coordinate.

Specified by:
setAxis in interface IDCoord
Parameters:
_axis - new axis of the coordinate.

addChild

public boolean addChild(IDItem item)
Deprecated. 
do nothing, since DCoord can't have child

Specified by:
addChild in interface IDItem

clear

public void clear()
Deprecated. 
Description copied from interface: IDItem
Clears the resources kept by the item.

Specified by:
clear in interface IDItem

getChildCount

public int getChildCount()
Deprecated. 
Description copied from interface: IDItem
Returns the item child number.

Specified by:
getChildCount in interface IDItem
Returns:
0 because DCoord can't have children

getChildPosition

public int getChildPosition(IDItem i)
Deprecated. 
Description copied from interface: IDItem
Returns the child item position in the list.

Specified by:
getChildPosition in interface IDItem
Returns:
-1 because DCoord can't have child

getRoot

public IDItem getRoot()
Deprecated. 
Description copied from interface: IDItem
Returns the current document.

Specified by:
getRoot in interface IDItem
Returns:
root item, the parent of parent of parent ... that haven't parent

getFirstChild

public IDItem getFirstChild()
Deprecated. 
Description copied from interface: IDItem
Returns the first child of the item.

Specified by:
getFirstChild in interface IDItem
Returns:
null because DCoord can't have child

getIterator

public IDItemIterator getIterator()
Deprecated. 
Description copied from interface: IDItem
Returns the item iterator.

Specified by:
getIterator in interface IDItem
Returns:
null because DCoord can't have child

getLastChild

public IDItem getLastChild()
Deprecated. 
Description copied from interface: IDItem
Returns the last child of the item.

Specified by:
getLastChild in interface IDItem
Returns:
null because DCoord can't have child

getNext

public IDItem getNext()
Deprecated. 
Description copied from interface: IDItem
Returns the next item.

Specified by:
getNext in interface IDItem
Returns:
next item

getParent

public IDItem getParent()
Deprecated. 
Description copied from interface: IDItem
Returns the parent of the item.

Specified by:
getParent in interface IDItem
Returns:
parent item of DCoord

getAppliedStyle

public IDStyle getAppliedStyle()
Deprecated. 
Description copied from interface: IDItem
Returns the style to applied on this item, might be getStyle() or one of parent's style if getStyle returns null.

Specified by:
getAppliedStyle in interface IDItem
Returns:
paren'ts applied style or null (because DCoord haven't their own style...)
See Also:
IDItem.getStyle()

insertChild

public boolean insertChild(IDItem item,
                           IDItem after)
Deprecated. 
Do nothing, because DCoord can't have child

Specified by:
insertChild in interface IDItem
after - item after which child should be added
Returns:
false;

isContainer

public boolean isContainer()
Deprecated. 
Description copied from interface: IDItem
Returns true if the item is a container.

Specified by:
isContainer in interface IDItem
Returns:
false because DCoord can't have child.

removeChild

public boolean removeChild(IDItem item)
Deprecated. 
Do nothing because DCoord can't have child

Specified by:
removeChild in interface IDItem

setNext

public void setNext(IDItem i)
Deprecated. 
Change next item of DCoord

Specified by:
setNext in interface IDItem
Parameters:
i - next item

setParent

public void setParent(IDItem p)
Deprecated. 
Change parent item of DCoord

Specified by:
setParent in interface IDItem
Parameters:
p - parent item

setStyle

public void setStyle(IDStyle style)
Deprecated. 
Do nothing because DCoord can't have style, apply style on DPoint or DCurve.

Specified by:
setStyle in interface IDItem
Parameters:
style - item style

getStyle

public IDStyle getStyle()
Deprecated. 
Do nothing because DCoord can't have style, apply style on DPoint or DCurve.

Specified by:
getStyle in interface IDItem

TPTP 4.5.0 Platform Project
Internal API Specification