TPTP 4.5.0 Platform Project
Internal API Specification

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

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.util.internal.Ellipse
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 Ellipse
extends java.lang.Object
implements IShape, IShapeFiller, IPath, IPathElement

General Ellipse shape and/ord path. Can hold full ellipse including sloped ellipse, or arc of ellipse.


Field Summary
protected  EllipseAlg def_
          Deprecated. store current ellipse definition in pixel coordinates
protected  boolean give_path_element_
          Deprecated.  
 
Constructor Summary
Ellipse(Ellipse e)
          Deprecated. Create a copy of given ellipse.
Ellipse(int cx, int cy, double rx_angle, int rx, int ry)
          Deprecated. Create full sloped ellipse.
Ellipse(int cx, int cy, double rx_angle, int rx, int ry, double start_angle, double arc_length)
          Deprecated. Create a sloped arc of ellipse.
Ellipse(int cx, int cy, int rx, int ry)
          Deprecated. Create pixel X axis aligned ellipse.
 
Method Summary
 void backTangent(IVector vector)
          Deprecated.  
 boolean contains(int x, int y)
          Deprecated.  
 boolean contains(IPoint p)
          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.  
 IRect getBounds()
          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, double rx_angle, int rx, int ry, double start_angle, double arc_length)
          Deprecated. Create a sloped arc of ellipse.
 void setEllipse(Ellipse e)
          Deprecated. Copy parameter from given ellipse, does nothing if e is null.
 void setEllipse(int cx, int cy, double rx_angle, int rx, int ry)
          Deprecated. Create full sloped ellipse.
 void setEllipse(int cx, int cy, int rx, int ry)
          Deprecated. Change ellipse to a X pixel axis aligned ellipse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

def_

protected EllipseAlg def_
Deprecated. 
store current ellipse definition in pixel coordinates


give_path_element_

protected boolean give_path_element_
Deprecated. 
Constructor Detail

Ellipse

public Ellipse(int cx,
               int cy,
               double rx_angle,
               int rx,
               int ry,
               double start_angle,
               double arc_length)
Deprecated. 
Create a sloped arc of ellipse.

Parameters:
cx - X coordinate of ellipse center (in pixel).
cy - Y coordinate of ellipse center (in pixel).
rx_angle_ - angle of ellipse X axis and pixel X axis (radian).
rx - ellipse X axis radius.
ry - ellipse Y axis radius.
start_angle - start angle of arc (radian) from pixel X axis.
arc_length - signed arc length (radian) from start_angle.

Ellipse

public Ellipse(int cx,
               int cy,
               double rx_angle,
               int rx,
               int ry)
Deprecated. 
Create full sloped ellipse.

Parameters:
cx - X coordinate of ellipse center (in pixel).
cy - Y coordinate of ellipse center (in pixel).
rx_angle_ - angle of ellipse X axis and pixel X axis (radian).
rx - ellipse X axis radius.
ry - ellipse Y axis radius.

Ellipse

public Ellipse(int cx,
               int cy,
               int rx,
               int ry)
Deprecated. 
Create pixel X axis aligned ellipse.

Parameters:
cx - X coordinate of ellipse center (in pixel).
cy - Y coordinate of ellipse center (in pixel).
rx - X axis radius of ellipse.
ry - Y axis radius of ellipse.

Ellipse

public Ellipse(Ellipse e)
Deprecated. 
Create a copy of given ellipse.

Method Detail

setEllipse

public void setEllipse(int cx,
                       int cy,
                       int rx,
                       int ry)
Deprecated. 
Change ellipse to a X pixel axis aligned ellipse.

Parameters:
cx - X coordinate of ellipse center (in pixel).
cy - Y coordinate of ellipse center (in pixel).
rx - X axis radius of ellipse.
ry - Y axis radius of ellipse.

setEllipse

public void setEllipse(int cx,
                       int cy,
                       double rx_angle,
                       int rx,
                       int ry)
Deprecated. 
Create full sloped ellipse.

Parameters:
cx - X coordinate of ellipse center (in pixel).
cy - Y coordinate of ellipse center (in pixel).
rx_angle_ - angle of ellipse X axis and pixel X axis (radian).
rx - ellipse X axis radius.
ry - ellipse Y axis radius.

setArc

public void setArc(int cx,
                   int cy,
                   double rx_angle,
                   int rx,
                   int ry,
                   double start_angle,
                   double arc_length)
Deprecated. 
Create a sloped arc of ellipse.

Parameters:
cx - X coordinate of ellipse center (in pixel).
cy - Y coordinate of ellipse center (in pixel).
rx_angle_ - angle of ellipse X axis and pixel X axis (radian).
rx - ellipse X axis radius.
ry - ellipse Y axis radius.
start_angle - start angle of arc (radian) from pixel X axis.
arc_length - signed arc length (radian) from start_angle.

setEllipse

public void setEllipse(Ellipse e)
Deprecated. 
Copy parameter from given ellipse, does nothing if e is null.


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.

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