Inheritance diagram for JavaPolylineData::

Public Methods | |
| JavaPolylineData (CanvasPolyline poly) | |
| boolean | getClosed () |
| int | getNrPoints () |
| HxCorba.PointR2 | getPoint (int i) |
| HxCorba.PointR2[] | getPoints () |
|
|
00018 {
00019 _poly = poly;
00020 }
|
|
|
Reimplemented from Polyline2dDataOperations.
00023 {
00024 return _poly.isClosed();
00025 }
|
|
|
Reimplemented from Polyline2dDataOperations.
00028 {
00029 return _poly.getNrPoints();
00030 }
|
|
|
00033 {
00034 return new HxCorba.PointR2(_poly.getXPoints()[i], _poly.getYPoints()[i]);
00035 }
|
|
|
Reimplemented from Polyline2dDataOperations.
00038 {
00039 HxCorba.PointR2[] points = new HxCorba.PointR2[_poly.getNrPoints()];
00040 double[] x = _poly.getXPoints();
00041 double[] y = _poly.getYPoints();
00042 for(int i=0; i<points.length; i++)
00043 points[i] = new HxCorba.PointR2(x[i], y[i]);
00044
00045 return points;
00046 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001