Copyright (C) 2000, 2001, Geert Vernaeve. All Rights Reserved. |
key: string (e.g. "gve.calc.formula.Matrix"), value: corresponding PartDescriptor object |
Note: It's not a good idea to reposition children inside paint(), so we do it here. This is because calling setBounds() on a visible lightweight container *always* causes a repaint() to happen, whether the setBounds() actually modified the size and position or not. |
Show part p in formula no i |
i is the *internal* number of the formula (0..getComponentCount()-1) |
Try to display the area with Y values [ymin..ymax] as good as we can. 0 is the top of the stack (the 'oldest' element). Coordinates: (0,0) is top left of the stack (not of the visible portion on screen). |
User resized window. Readjust scrollbars. |
Return id of formula at this position on the screen, or -1 if no formula there |
Start point of mouse drag motion |
Position of currently drawn rubber band: (mouseDragX,mouseDragY) x (rubberX,rubberY) If mousePrevX < 0, no band is currently drawn. NOTE: These are screen pixels; (0,0) is the top left pixel of the Canvas, whatever the position of the scrollbars might be. |
Make a part of a formula the highlighted part |
If shown, erase the rubber band from the screen |
Utility function |
This method handles the key presses. |
Note: we choose .text as extension because we may read .text files as an applet in Netscape without prompting the user with SecurityManager.enablePrivilege("UniversalPropertyRead") See http://developer.netscape.com/docs/technote/java/getresource/getresource.html (Thanks to the Java FAQ!) |
Returns value for k |