TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.util.internal
Class Spline

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.util.internal.Spline
All Implemented Interfaces:
IPath, IPathElement
Direct Known Subclasses:
Spline3, Spline4, SplineN

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 Spline
extends java.lang.Object
implements IPath, IPathElement

Spline is an abstract implementation of IPath and IPathElement for a spline curve.

See Also:
and Spline4

Field Summary
protected  SplineAlg alg_
          Deprecated.  
protected  boolean give_path_element_
          Deprecated.  
protected  boolean hull_path_
          Deprecated.  
 
Constructor Summary
Spline()
          Deprecated.  
 
Method Summary
 void backTangent(IVector vector)
          Deprecated.  
 void frontTangent(IVector vector)
          Deprecated.  
 int getX()
          Deprecated.  
 int getY()
          Deprecated.  
 IPathElement nextPathElement()
          Deprecated.  
 boolean nextPoint(IPoint point)
          Deprecated.  
 boolean pathBegin(IGC gc, IGCDirect gd)
          Deprecated.  
 void pathElementEnd()
          Deprecated. Called after any startPath, to declare, gc won't use this path until it call startPath.
 void pathEnd()
          Deprecated. Called to end the path, time to release any gc, gd memorized...
 void setHullPath(boolean b)
          Deprecated. Change path generation, if true generate the hull path (segment between controls points), otherwise generate spline path (default if false).
 
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.igc.internal.IPathElement
copyPathElement, pathElementBegin
 

Field Detail

hull_path_

protected boolean hull_path_
Deprecated. 

give_path_element_

protected boolean give_path_element_
Deprecated. 

alg_

protected SplineAlg alg_
Deprecated. 
Constructor Detail

Spline

public Spline()
Deprecated. 
Method Detail

setHullPath

public void setHullPath(boolean b)
Deprecated. 
Change path generation, if true generate the hull path (segment between controls points), otherwise generate spline path (default if false).


pathBegin

public boolean pathBegin(IGC gc,
                         IGCDirect gd)
Deprecated. 
Specified by:
pathBegin in interface IPath
Returns:
true if path contains at least one path element

pathEnd

public void pathEnd()
Deprecated. 
Description copied from interface: IPath
Called to end the path, time to release any gc, gd memorized...

Specified by:
pathEnd in interface IPath

nextPathElement

public IPathElement nextPathElement()
Deprecated. 
Specified by:
nextPathElement in interface IPath
Returns:
next IPathElement contained in this path, null is there are no more element. Take care the returned path element can be a reusage of previous returned one with new parameters (mainly for reduced memory consumption): If caller need to memorize a path element it's a good idea to .copyPathElement() it.

pathElementEnd

public void pathElementEnd()
Deprecated. 
Description copied from interface: IPathElement
Called after any startPath, to declare, gc won't use this path until it call startPath.

Specified by:
pathElementEnd in interface IPathElement

getX

public int getX()
Deprecated. 
Returns:
current X coordinate of point, available only is nextPoint() return true

getY

public int getY()
Deprecated. 
Returns:
current Y coordinate of point, available only is nextPoint() return true

nextPoint

public boolean nextPoint(IPoint point)
Deprecated. 
Specified by:
nextPoint in interface IPathElement
Returns:
true if path have point with next point coordinates (device coordinates). point must not be null. return false if there are no more points.

backTangent

public void backTangent(IVector vector)
Deprecated. 
Specified by:
backTangent in interface IPathElement

frontTangent

public void frontTangent(IVector vector)
Deprecated. 
Specified by:
frontTangent in interface IPathElement

TPTP 4.5.0 Platform Project
Internal API Specification