Public Methods | |
| Histogram3dPanel () | |
| void | setData (Color3f[] data) |
| void | setPointSize (int size) |
| void | setBgColor (Color c) |
|
|
00025 {
00026 setLayout(new BorderLayout());
00027 GraphicsConfiguration config =
00028 SimpleUniverse.getPreferredConfiguration();
00029
00030 Canvas3D canvas = new Canvas3D(config);
00031 add(canvas, BorderLayout.CENTER);
00032
00033 // Create a simple scene and attach it to the virtual universe
00034 BranchGroup scene = createSceneGraph();
00035 SimpleUniverse u = new SimpleUniverse(canvas);
00036
00037 // This will move the ViewPlatform back a bit so the
00038 // objects in the scene can be viewed.
00039 u.getViewingPlatform().setNominalViewingTransform();
00040 u.addBranchGraph(scene);
00041 }
|
|
|
00044 {
00045 _histo.setData(data);
00046 }
|
|
|
00049 {
00050 _histo.setPointSize(size);
00051 }
|
|
|
00054 {
00055 _bg.setColor(new Color3f(c));
00056 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001