TPTP 4.5.0 Platform Project
Internal API Specification

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

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.util.internal.ComplexPath
All Implemented Interfaces:
IPath, IPathElement

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

Complex path might be composed by the following path operator: - move to a point
- line to a point (from last entered point)
- conic to, or draw spline with 3 controls points, last entered points plus two new
- cubic to, or draw spline with 4 controls points, last entered points plus three new

the first operator of complex path must be moveTo() one.
Event if ComplexPath is a IPath it's made of only one IPathElement.


Field Summary
protected  IAlg alg_
          Deprecated.  
static int CONIC_TO
          Deprecated.  
static int CUBIC_TO
          Deprecated.  
protected  int curr_
          Deprecated.  
protected  IGCDirect gd_
          Deprecated.  
protected  boolean give_path_element_
          Deprecated.  
protected  boolean hull_path_
          Deprecated.  
protected  int len_
          Deprecated.  
static int LINE_TO
          Deprecated.  
static int MOVE_TO
          Deprecated.  
protected  int[] points_
          Deprecated.  
 
Constructor Summary
ComplexPath()
          Deprecated. Create an empty complex path. use moveTo() to start path, and any path operator to create path.
ComplexPath(ComplexPath p)
          Deprecated. Create a full copy of the given complex path.
 
Method Summary
 void backTangent(IVector vector)
          Deprecated.  
protected  void checkSize(int nsize)
          Deprecated. resize points_ array if its size is not enough to reach given size
 void conicTo(int x1, int y1, int x2, int y2)
          Deprecated. Append CONIC_TO operator to current path.
 IPathElement copyPathElement()
          Deprecated.  
 void cubicTo(int x1, int y1, int x2, int y2, int x3, int y3)
          Deprecated. Append CUBIC_TO operator to current path.
 void frontTangent(IVector vector)
          Deprecated.  
 boolean isHullPath()
          Deprecated.  
 void lineTo(int x, int y)
          Deprecated. Append LINE_TO operator to current path.
 void moveTo(int x, int y)
          Deprecated. Append MOVE_TO operator to current path.
 IPathElement nextPathElement()
          Deprecated.  
 boolean nextPoint(IPoint point)
          Deprecated.  
 boolean pathBegin(IGC gc, IGCDirect gd)
          Deprecated.  
 boolean pathElementBegin(IGC gc, IGCDirect gd)
          Deprecated. Called before any nextPoint(), used to initialize path before accessing to points.
 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 reset()
          Deprecated. Reset current path, all operator are lost.
 void setHullPath(boolean b)
          Deprecated. Change "hull path" mode of this complex path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOVE_TO

public static final int MOVE_TO
Deprecated. 
See Also:
Constant Field Values

LINE_TO

public static final int LINE_TO
Deprecated. 
See Also:
Constant Field Values

CONIC_TO

public static final int CONIC_TO
Deprecated. 
See Also:
Constant Field Values

CUBIC_TO

public static final int CUBIC_TO
Deprecated. 
See Also:
Constant Field Values

points_

protected int[] points_
Deprecated. 

len_

protected int len_
Deprecated. 

hull_path_

protected boolean hull_path_
Deprecated. 

give_path_element_

protected boolean give_path_element_
Deprecated. 

curr_

protected int curr_
Deprecated. 

alg_

protected IAlg alg_
Deprecated. 

gd_

protected IGCDirect gd_
Deprecated. 
Constructor Detail

ComplexPath

public ComplexPath()
Deprecated. 
Create an empty complex path. use moveTo() to start path, and any path operator to create path.


ComplexPath

public ComplexPath(ComplexPath p)
Deprecated. 
Create a full copy of the given complex path.

Method Detail

isHullPath

public boolean isHullPath()
Deprecated. 
Returns:
true if complex path is in "hull path" mode.
See Also:
setHullPath()

setHullPath

public void setHullPath(boolean b)
Deprecated. 
Change "hull path" mode of this complex path.
When "hull path" mode is on the path is generated as a polygon joining all control points (except MOVE_TO operator which is preserved).


reset

public void reset()
Deprecated. 
Reset current path, all operator are lost.
You must redefine path starting with MOVE_TO operator.


moveTo

public void moveTo(int x,
                   int y)
Deprecated. 
Append MOVE_TO operator to current path.


lineTo

public void lineTo(int x,
                   int y)
Deprecated. 
Append LINE_TO operator to current path.
First point of line is the last point of path.


conicTo

public void conicTo(int x1,
                    int y1,
                    int x2,
                    int y2)
Deprecated. 
Append CONIC_TO operator to current path.
First point of operator is the last point of path. This define 3 controls points that will be used to generate a spline path.


cubicTo

public void cubicTo(int x1,
                    int y1,
                    int x2,
                    int y2,
                    int x3,
                    int y3)
Deprecated. 
Append CUBIC_TO operator to current path.
First point of operator is the last point of path. This define 4 controls points that will be used to generate a spline path.


checkSize

protected void checkSize(int nsize)
Deprecated. 
resize points_ array if its size is not enough to reach given size


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.

copyPathElement

public IPathElement copyPathElement()
Deprecated. 
Specified by:
copyPathElement in interface IPathElement
Returns:
a new (not shared memory) path element

pathElementBegin

public boolean pathElementBegin(IGC gc,
                                IGCDirect gd)
Deprecated. 
Description copied from interface: IPathElement
Called before any nextPoint(), used to initialize path before accessing to points.

Specified by:
pathElementBegin in interface IPathElement
Returns:
true if path have points, false otherwise.

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

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