TPTP 4.6.0 Platform Project
Internal API Specification

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

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

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

IPath and IShape implementation for a circle, or circle arc.


Field Summary
protected  double arc_length_
          Deprecated.  
protected  double arc_start_
          Deprecated.  
protected  int curr_index_
          Deprecated.  
protected  int curr_octant_
          Deprecated.  
protected  int cx_
          Deprecated.  
protected  int cy_
          Deprecated.  
protected  boolean finished_
          Deprecated.  
protected  CircleAlg path_alg_
          Deprecated.  
protected  boolean path_element_is_circle_
          Deprecated.  
protected  boolean path_element_returned_
          Deprecated.  
protected  int radius_
          Deprecated.  
protected  Vector vector_
          Deprecated.  
 
Constructor Summary
Circle()
          Deprecated. Create empty cirle, must call setCircle or setCircle arc to define circle.
Circle(Circle c)
          Deprecated.  
Circle(int cx, int cy, int radius)
          Deprecated.  
Circle(int cx, int cy, int radius, double arc_start, double arc_length)
          Deprecated.  
 
Method Summary
 void backTangent(IVector vector)
          Deprecated.  
 boolean contains(Circle c)
          Deprecated. works only if circle is a full circle (not and arc)
 boolean contains(int x, int y)
          Deprecated.  
 boolean contains(IPoint p)
          Deprecated.  
 boolean contains(IRect r)
          Deprecated.  
 IPathElement copyPathElement()
          Deprecated.  
 IShape copyShape()
          Deprecated.  
 boolean fillShape(IGC gc, IGCDirect gd, IBrush brush, IShape shape)
          Deprecated. fill given shape using brush (current brush in gc) using gc.
 void frontTangent(IVector vector)
          Deprecated.  
 double getArcLength()
          Deprecated.  
 double getArcStart()
          Deprecated.  
 IRect getBounds()
          Deprecated.  
 int getCenterX()
          Deprecated.  
 int getCenterY()
          Deprecated.  
 int getRadius()
          Deprecated.  
 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 setArc(int cx, int cy, int radius, double arc_start, double arc_length)
          Deprecated.  
 void setCircle(Circle c)
          Deprecated.  
 void setCircle(int cx, int cy, int radius)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cx_

protected int cx_
Deprecated. 

cy_

protected int cy_
Deprecated. 

radius_

protected int radius_
Deprecated. 

arc_start_

protected double arc_start_
Deprecated. 

arc_length_

protected double arc_length_
Deprecated. 

path_element_is_circle_

protected boolean path_element_is_circle_
Deprecated. 

path_element_returned_

protected boolean path_element_returned_
Deprecated. 

path_alg_

protected CircleAlg path_alg_
Deprecated. 

curr_index_

protected int curr_index_
Deprecated. 

curr_octant_

protected int curr_octant_
Deprecated. 

vector_

protected Vector vector_
Deprecated. 

finished_

protected boolean finished_
Deprecated. 
Constructor Detail

Circle

public Circle()
Deprecated. 
Create empty cirle, must call setCircle or setCircle arc to define circle.


Circle

public Circle(int cx,
              int cy,
              int radius)
Deprecated. 

Circle

public Circle(int cx,
              int cy,
              int radius,
              double arc_start,
              double arc_length)
Deprecated. 

Circle

public Circle(Circle c)
Deprecated. 
Method Detail

setCircle

public void setCircle(int cx,
                      int cy,
                      int radius)
Deprecated. 

setArc

public void setArc(int cx,
                   int cy,
                   int radius,
                   double arc_start,
                   double arc_length)
Deprecated. 

setCircle

public void setCircle(Circle c)
Deprecated. 

getCenterX

public int getCenterX()
Deprecated. 

getCenterY

public int getCenterY()
Deprecated. 

getRadius

public int getRadius()
Deprecated. 

getArcStart

public double getArcStart()
Deprecated. 

getArcLength

public double getArcLength()
Deprecated. 

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

copyShape

public IShape copyShape()
Deprecated. 
Specified by:
copyShape in interface IShape
Returns:
full deep-copy of this shape

contains

public boolean contains(int x,
                        int y)
Deprecated. 
Specified by:
contains in interface IShape
Returns:
true if point (in pixels) is contained in shape

contains

public boolean contains(IPoint p)
Deprecated. 
Specified by:
contains in interface IShape
Returns:
true if point (in pixels) is contained in shape

getBounds

public IRect getBounds()
Deprecated. 
Specified by:
getBounds in interface IShape
Returns:
bounding box of shape

fillShape

public boolean fillShape(IGC gc,
                         IGCDirect gd,
                         IBrush brush,
                         IShape shape)
Deprecated. 
Description copied from interface: IShapeFiller
fill given shape using brush (current brush in gc) using gc. Note: this method is responsible to call brush.start/end methods. Note: fillShape might have better result if shape is converted to device coordinate.

Specified by:
fillShape in interface IShapeFiller
Parameters:
gc - gc which request the shape filling.
gd - gd used to fill shape shape (but gc can be used too).
brush - current gc brush used to fill shape.
shape - shape to fill.
Returns:
true is shape is filled, false otherwise.

contains

public boolean contains(IRect r)
Deprecated. 
Returns:
true if rectangle is contained in this circle

contains

public boolean contains(Circle c)
Deprecated. 
works only if circle is a full circle (not and arc)


TPTP 4.6.0 Platform Project
Internal API Specification