TPTP 4.5.0 Platform Project
Internal API Specification

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

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

Oval Shape, an ellipse aligned to X,Y axis contained in a rectangle. This can handle Oval arc also.


Field Summary
protected  OvalAlg alg_
          Deprecated.  
protected  double arc_length_
          Deprecated.  
protected  double arc_start_
          Deprecated.  
protected  int cx_
          Deprecated.  
protected  int cy_
          Deprecated.  
protected  boolean give_path_element_
          Deprecated.  
protected  int rx_
          Deprecated.  
protected  int ry_
          Deprecated.  
 
Constructor Summary
Oval(int cx, int cy, int rx, int ry)
          Deprecated.  
Oval(int cx, int cy, int rx, int ry, double arc_start, double arc_length)
          Deprecated.  
Oval(Oval o)
          Deprecated.  
 
Method Summary
 void backTangent(IVector vector)
          Deprecated.  
 boolean contains(int px, int py)
          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.  
 int getCenterX()
          Deprecated.  
 int getCenterY()
          Deprecated.  
 int getRadiusX()
          Deprecated.  
 int getRadiusY()
          Deprecated.  
 boolean isCircle()
          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 rx, int ry, double arc_start, double arc_length)
          Deprecated.  
 void setOval(int cx, int cy, int rx, int ry)
          Deprecated.  
 void setOval(Oval o)
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cx_

protected int cx_
Deprecated. 

cy_

protected int cy_
Deprecated. 

rx_

protected int rx_
Deprecated. 

ry_

protected int ry_
Deprecated. 

arc_start_

protected double arc_start_
Deprecated. 

arc_length_

protected double arc_length_
Deprecated. 

give_path_element_

protected boolean give_path_element_
Deprecated. 

alg_

protected OvalAlg alg_
Deprecated. 
Constructor Detail

Oval

public Oval(int cx,
            int cy,
            int rx,
            int ry,
            double arc_start,
            double arc_length)
Deprecated. 

Oval

public Oval(int cx,
            int cy,
            int rx,
            int ry)
Deprecated. 

Oval

public Oval(Oval o)
Deprecated. 
Method Detail

getCenterX

public int getCenterX()
Deprecated. 

getCenterY

public int getCenterY()
Deprecated. 

getRadiusX

public int getRadiusX()
Deprecated. 

getRadiusY

public int getRadiusY()
Deprecated. 

isCircle

public boolean isCircle()
Deprecated. 

setArc

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

setOval

public void setOval(int cx,
                    int cy,
                    int rx,
                    int ry)
Deprecated. 

setOval

public void setOval(Oval o)
Deprecated. 

copyShape

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

copyPathElement

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

contains

public boolean contains(int px,
                        int py)
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.

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

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

TPTP 4.5.0 Platform Project
Internal API Specification