/** * Common links for connecting sketches. * Mostly generic but you will need to list the apperopirate * functions in the JavaScript interface declaration. * * The links are stored in the sketchLink array. * * James Brink * Revised: May 13, 2014 */ /** * Specify all the methods that can be called from Javascript */ interface JavaScript { void showXYCoordinatesJS(int x, int y); } // interface JavaScript Object[] sketchLink; JavaScript javascript; /** * This method is called from Javascript and gives * the link to the middle and right sketches. */ void setLinkSketch(Object[] pjs, JavaScript js) { sketchLink = pjs; javascript = js; } // setLinkSketch