jWork.ORG forums
HPlotJa, questions, comments and suggestions - Printable Version

+- jWork.ORG forums (http://jwork.org/forum)
+-- Forum: SCaVis (/forumdisplay.php?fid=1)
+--- Forum: Discussion of new ScaVis features (/forumdisplay.php?fid=4)
+--- Thread: HPlotJa, questions, comments and suggestions (/showthread.php?tid=6)



HPlotJa, questions, comments and suggestions - jworkorg - 03-23-2011 01:14 PM

Hello, Marc-Antoine,

Quote:-Is there a difference between the 2 methods: add(JaObject ob) and draw(JaObject jo), which seem to have the same effect (adding a JaObject in the frame)? See the example below.

the design goal of the method "add()" is to add objects to the list of objects without drawing them.
One can draw all objects at once after calling the "update". This should speed up the code in case of many objects. The method "draw" adds an object to the list and calls "update()". At least, this is the way how it works for HPlot. It is possible that canvas resizing with the mouse also triggers canvas update in case HPlotJa.

cheers


HPlotJa, questions, comments and suggestions - jworkorg - 03-25-2011 10:53 AM

It seems all the above discussed problems with HPlotJa canvas have been fixed and
jhepwork-2.8.zip was uploaded again.