TPTP 4.5.0 Platform Project
Internal API Specification

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

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

Example of "composite" path using circle/ellipse arc and segments. This Path is also not an IPathElement. But as it's a IShape it can be filled.


Field Summary
protected  org.eclipse.tptp.platform.report.igc.util.internal.RoundedRect.Data data_
          Deprecated.  
protected  int h_
          Deprecated.  
protected  int rx_
          Deprecated.  
protected  int ry_
          Deprecated.  
protected  int w_
          Deprecated.  
protected  int x_
          Deprecated.  
protected  int y_
          Deprecated.  
 
Constructor Summary
RoundedRect(int x, int y, int w, int h, int radius)
          Deprecated. Create a RoundedRect using circle as corners
RoundedRect(int x, int y, int w, int h, int rx, int ry)
          Deprecated. Create rounded rect with different X and Y axis radius for rounded corners.
RoundedRect(IRect rect, int radius)
          Deprecated. Create a RoundedRect from a rectangle and a radius.
RoundedRect(IRect rect, int rx, int ry)
          Deprecated. Create rounded rect with different X and Y axis radius for rounded corners.
RoundedRect(RoundedRect r)
          Deprecated. Create a copy of a rounded rect.
 
Method Summary
 boolean contains(int x, int y)
          Deprecated.  
 boolean contains(IPoint p)
          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.
 IRect getBounds()
          Deprecated.  
 int getH()
          Deprecated.  
 int getRX()
          Deprecated.  
 int getRY()
          Deprecated.  
 int getW()
          Deprecated.  
 int getX()
          Deprecated.  
 int getY()
          Deprecated.  
 IPathElement nextPathElement()
          Deprecated.  
 boolean pathBegin(IGC gc, IGCDirect gd)
          Deprecated.  
 void pathEnd()
          Deprecated. Called to end the path, time to release any gc, gd memorized...
 void setRoundedRect(int x, int y, int w, int h, int radius)
          Deprecated.  
 void setRoundedRect(int x, int y, int w, int h, int rx, int ry)
          Deprecated.  
 void setRoundedRect(IRect r, int radius)
          Deprecated.  
 void setRoundedRect(IRect r, int rx, int ry)
          Deprecated.  
 void setRoundedRect(RoundedRect r)
          Deprecated.  
 void translate(int tx, int ty)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x_

protected int x_
Deprecated. 

y_

protected int y_
Deprecated. 

w_

protected int w_
Deprecated. 

h_

protected int h_
Deprecated. 

rx_

protected int rx_
Deprecated. 

ry_

protected int ry_
Deprecated. 

data_

protected org.eclipse.tptp.platform.report.igc.util.internal.RoundedRect.Data data_
Deprecated. 
Constructor Detail

RoundedRect

public RoundedRect(int x,
                   int y,
                   int w,
                   int h,
                   int radius)
Deprecated. 
Create a RoundedRect using circle as corners


RoundedRect

public RoundedRect(IRect rect,
                   int radius)
Deprecated. 
Create a RoundedRect from a rectangle and a radius.


RoundedRect

public RoundedRect(int x,
                   int y,
                   int w,
                   int h,
                   int rx,
                   int ry)
Deprecated. 
Create rounded rect with different X and Y axis radius for rounded corners.


RoundedRect

public RoundedRect(IRect rect,
                   int rx,
                   int ry)
Deprecated. 
Create rounded rect with different X and Y axis radius for rounded corners.


RoundedRect

public RoundedRect(RoundedRect r)
Deprecated. 
Create a copy of a rounded rect.

Parameters:
r - rounded rect to copy.
Method Detail

setRoundedRect

public void setRoundedRect(IRect r,
                           int radius)
Deprecated. 

setRoundedRect

public void setRoundedRect(IRect r,
                           int rx,
                           int ry)
Deprecated. 

setRoundedRect

public void setRoundedRect(int x,
                           int y,
                           int w,
                           int h,
                           int radius)
Deprecated. 

setRoundedRect

public void setRoundedRect(int x,
                           int y,
                           int w,
                           int h,
                           int rx,
                           int ry)
Deprecated. 

setRoundedRect

public void setRoundedRect(RoundedRect r)
Deprecated. 

getX

public int getX()
Deprecated. 

getY

public int getY()
Deprecated. 

getW

public int getW()
Deprecated. 

getH

public int getH()
Deprecated. 

getRX

public int getRX()
Deprecated. 

getRY

public int getRY()
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.

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.

translate

public void translate(int tx,
                      int ty)
Deprecated. 

TPTP 4.5.0 Platform Project
Internal API Specification