Horus Doc || Java GUI Reference || Doxygen's quick Index  

JavaPolylineData Class Reference

Inheritance diagram for JavaPolylineData::

Polyline2dDataOperations List of all members.

Public Methods

 JavaPolylineData (CanvasPolyline poly)
boolean getClosed ()
int getNrPoints ()
HxCorba.PointR2 getPoint (int i)
HxCorba.PointR2[] getPoints ()

Constructor & Destructor Documentation

JavaPolylineData::JavaPolylineData CanvasPolyline    poly [inline]
 

00018 {
00019     _poly = poly;
00020 }


Member Function Documentation

boolean JavaPolylineData::getClosed   [inline]
 

Reimplemented from Polyline2dDataOperations.

00023 {
00024     return _poly.isClosed();
00025 }

int JavaPolylineData::getNrPoints   [inline]
 

Reimplemented from Polyline2dDataOperations.

00028 {
00029     return _poly.getNrPoints();
00030 }

HxCorba.PointR2 JavaPolylineData::getPoint int    i [inline]
 

00033 {
00034     return new HxCorba.PointR2(_poly.getXPoints()[i], _poly.getYPoints()[i]);
00035 }

HxCorba.PointR2 [] JavaPolylineData::getPoints   [inline]
 

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 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:22 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001