opensubscriber
   Find in this group all groups
 
Unknown more information…

b : batik-users@xmlgraphics.apache.org 22 March 2005 • 11:56PM -0500

Re: zoom area
by Thomas DeWeese

REPLY TO AUTHOR
 
REPLY TO GROUP




Renato Stancato wrote:
> I need to create a button to call the zoom area (ctrl+mouse left
> button) and other button for pan (shift+mouse left button).
> Is there an easy way to do that?

    I don't see how you could possibly bind these to a button
as they require an initial mouse down to 'anchor' the interaction.
If you just want a 'modal' interface to them (i.e. a zoom cursor,
or a hand cursor) where a normal click initiates the interaction,
I would just take the existing Zoom/Pan interactors batik.swing.gvt
and modify the startInteraction method to check your modal state,
rather than the modifier keys.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlg...
For additional commands, e-mail: batik-users-help@xmlg...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.