Inheritance diagram for CanvasCorbaHistogram::
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... |
|
00024 { 00025 super(0., 0., 0., 0.); 00026 00027 _histData = hist; 00028 updatePolyline(); 00029 setInputSource(INP_SASYSTEM); 00030 } |
|
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 } |
|
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 } |