The short answer: the right click is special only if you want to make it
special.

The longer answer is: The AbstractCursor class implements the CursorTool
interface. Any cursor tool that is descended from this class will implement
the mouseClicked method. This method will be called whenever any of the
mouse buttons are clicked. The isRightMouseButtonUsed() method is only there
if the cursor tool needs to do something special for a right click. Don't
need a check for left click since if it is not a right click then must be a
left click. (this ignores a mouse with a middle button which can also be
detected). For instance the ISA constrained cursor tools use the right click
to end drawing the shape instead of displaying a pop-up menu.

Robert Littlefield


On 11/16/06, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:

I thought it might have something to do with a pop-up menu. Thanks for
the tip Larry. I'll check that out.

SS

On 11/16/06, Larry Becker <[EMAIL PROTECTED]> wrote:
> I believe that this function is used to determine if the right click
context
> menu should be displayed while the CursorTool is active.
>
> Larry
>
>
> On 11/16/06, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> >
> > The CursorTool interface declares a method named isRightMouseButton()
> > used. I'm curious what the prupose of this method is. If we have this
> > method declared in the interface, why isn't an isLeftMouseButton()
> > method also defined? Is there something special about the right mouse
> > button?
> >
> > Thanks,
> >
> > The Sunburned Surveyor
> >
> >
>
-------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
>
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to