|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.igc.util.internal.Polygon
org.eclipse.tptp.platform.report.birt).
public class Polygon
Implementation of IPolygon using SWT GC.drawPoly() compliant definition. I means one dimension integer array where x and y coodinate are stored "xyxyxy..". Note: if this is compliant to SWT definition, this class doesn't depends on any SWT classes.
| Field Summary | |
|---|---|
protected int |
current_index_
Deprecated. |
protected IGCDirect |
gd_
Deprecated. |
protected Segment |
path_segment_
Deprecated. |
protected int[] |
points_xy_
Deprecated. |
protected int |
size_
Deprecated. |
| Constructor Summary | |
|---|---|
Polygon()
Deprecated. Create empty polygon, use resize() of setPoints() to define it |
|
Polygon(int _alloc_size)
Deprecated. Create a sized polygon, all points are (0,0), use setPoint() to define them |
|
Polygon(int[] points)
Deprecated. ! |
|
Polygon(IPolygon poly)
Deprecated. Create SWTPolygon from IPolygon interface, do a deep-copy in case of Polygon |
|
| Method Summary | |
|---|---|
void |
compact()
Deprecated. reduce internal array to size needed |
boolean |
contains(int px,
int py)
Deprecated. |
boolean |
contains(IPoint p)
Deprecated. |
static boolean |
Contains(IPolygon p,
int px,
int py)
Deprecated. |
IShape |
copyShape()
Deprecated. |
IRect |
getBounds()
Deprecated. |
static Point |
GetCenter(IPolygon poly,
Point ctr)
Deprecated. |
Point |
getCenter(Point ctr)
Deprecated. |
int[] |
getPoints()
Deprecated. |
int |
getPolySize()
Deprecated. |
int |
getPolyX(int index)
Deprecated. |
int |
getPolyY(int index)
Deprecated. |
boolean |
isPolyClosed()
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 |
resize(int _num_points)
Deprecated. change number of points only if size is reduced |
void |
rotate(int cx,
int cy,
double _angle)
Deprecated. rotate all points with given angle (radian), (cx,cy) is center of rotation |
void |
setPoint(int index,
int x,
int y)
Deprecated. replace or resize polygon up to given index |
void |
setPoints(int[] points)
Deprecated. Change current polygon points ! |
void |
setPolySize(int _size)
Deprecated. |
java.lang.String |
toString()
Deprecated. |
void |
translate(int _tx,
int _ty)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] points_xy_
protected int size_
protected IGCDirect gd_
protected Segment path_segment_
protected int current_index_
| Constructor Detail |
|---|
public Polygon()
public Polygon(int _alloc_size)
public Polygon(int[] points)
public Polygon(IPolygon poly)
| Method Detail |
|---|
public IShape copyShape()
copyShape in interface IShapepublic void setPolySize(int _size)
public void resize(int _num_points)
public void compact()
public void setPoint(int index,
int x,
int y)
public int getPolySize()
getPolySize in interface IPolygonpublic int getPolyX(int index)
getPolyX in interface IPolygonpublic int getPolyY(int index)
getPolyY in interface IPolygonpublic boolean isPolyClosed()
isPolyClosed in interface IPolygonpublic int[] getPoints()
public void translate(int _tx,
int _ty)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean contains(IPoint p)
contains in interface IShape
public boolean contains(int px,
int py)
contains in interface IShapepublic IRect getBounds()
getBounds in interface IShape
public boolean pathBegin(IGC gc,
IGCDirect gd)
pathBegin in interface IPathpublic void pathEnd()
IPath
pathEnd in interface IPathpublic IPathElement nextPathElement()
nextPathElement in interface IPath
public void rotate(int cx,
int cy,
double _angle)
public void setPoints(int[] points)
public Point getCenter(Point ctr)
public static Point GetCenter(IPolygon poly,
Point ctr)
public static boolean Contains(IPolygon p,
int px,
int py)
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||