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

CanvasCorbaHistogram Class Reference

Inheritance diagram for CanvasCorbaHistogram::

CanvasFigure CanvasObject List of all members.

Public Methods

 CanvasCorbaHistogram (HxCorba.HistogramDataOperations hist)

Protected Methods

Shape getShape ()
 Derived classes have to implement this method to supply the shape that represents the CanvasFigures. More...

boolean hitOnStroke ()
 Derived classes have to implement this method to indicate whether they are selected (hit) based on their stroke (border) or on their interior. More...


Constructor & Destructor Documentation

CanvasCorbaHistogram::CanvasCorbaHistogram HxCorba.HistogramDataOperations    hist [inline]
 

00024 {
00025     super(0., 0., 0., 0.);
00026 
00027     _histData = hist;
00028     updatePolyline();
00029     setInputSource(INP_SASYSTEM);
00030 }


Member Function Documentation

Shape CanvasCorbaHistogram::getShape   [inline, protected, virtual]
 

Derived classes have to implement this method to supply the shape that represents the CanvasFigures.

It is used to draw to figure as well as determine which figure is selected (hit) by the cursor within a canvas.

Reimplemented from CanvasFigure.

00040 {
00041     int[] xp = getAddXCcs();
00042     int[] yp = getAddYCcs();
00043     GeneralPath path = new GeneralPath(GeneralPath.WIND_NON_ZERO, xp.length);
00044     path.moveTo(xp[0], yp[0]);
00045     for (int i=1 ; i < xp.length ; i++)
00046         path.lineTo(xp[i], yp[i]);
00047     return path;
00048 }

boolean CanvasCorbaHistogram::hitOnStroke   [inline, protected, virtual]
 

Derived classes have to implement this method to indicate whether they are selected (hit) based on their stroke (border) or on their interior.

Reimplemented from CanvasFigure.

00052 {
00053     return false;
00054 }


The documentation for this class was generated from the following file:
Generated on Tue Feb 3 14:19:38 2004 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001