not specifically. To do that, set up a callback for sync and then sync the
applet:

sync *;set syncMouse;set syncScript
set synccallback "yourCallbackFunctionName"


Then you will start getting messages when the user has zoomed either using
commands or using the mouse. You will have to parse those, looking
specifically for "zoom" in the 2nd parameter.

If you have other applets that you do want synced, then you have to return
the second parameter (or change it!) to pass the message on to the other
applets:

function yourCallbackFunctionName(app,cmd) {
  var c = "" + cmd // to go from Java string to JavaScript string
  if (c.indexOf("zoom") == 0) {
     // whatever you want here -- could be a mouse zoom or a scripted zoom
  }
  return cmd // in order to pass this on unchanged to the other applets
}

otherwise, you can just return nothing:

function yourCallbackFunctionName(app,cmd) {
  return cmd
}



On Fri, Sep 25, 2009 at 10:07 AM, Joe Gatewood <[email protected]> wrote:

> I am using 11.8.4 on Linux with java 1.6.0_13
>
> I have the callback listener working great for atom picking.  I also need
> to
> capture when a zoom operation has completed.  I am currently using a
> combination of key and mouse handlers to pickup the end of zoom.  Is there
> a
> callback associated with zoom?
>
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to