You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Bill Haneman <Bi...@ireland.sun.com> on 2000/11/28 16:06:26 UTC

[commit] text samples, and modal text selection

Hi:

In addition to the sample files mentioned in the commit
log, I have made a "modal" text selection option available.
It has the disadvantage that you can't
"sweep over" a text area to select it - you must
begin the selection within the text element's bounds.
It has the advantage, however, of being "modal" - if
you exit/re-enter the text element while the mouse button
is down, the selection process is not interrupted.

When using mouse button 1, selection works as before.
I would appreciate feedback on these selection modes,
regarding which mode seems best.  The "modal" form is more
in keeping with the SVG CR.  If desired, we can
promote the "modal" behavior to mouse button 1 and
perhaps continue to offer the "non-modal" selection on
mouse button 3.  As to which is easier to use, there are
situations in which the non-modal selection seems easier.

Note: I said that I added "two" sample files using <text>, that
should read *three* sample files.

-Bill

> Added "modal" text selection when mouse button 3 is used 
(experimental)
>
> Added two sample files using the <text> element.
>
> Modified Files:
>        
xml-batik/sources/org/apache/batik/refimpl/gvt/event/ConcreteEventDispat
>cher.java
> Added Files:
>        xml-batik/samples/henryV.svg xml-batik/samples/textRotate.svg
>        xml-batik/samples/textRotateShadows.svg
> ----------------------------------------------------------------------
>~

------
Bill Haneman +353 1 8199279
Ireland Desktop Engineering
Sun Microsystems Ireland Ltd.


Re: [commit] text samples, and modal text selection

Posted by Stephane Hillion <St...@sophia.inria.fr>.
Bill Haneman wrote:

> When using mouse button 1, selection works as before.
> I would appreciate feedback on these selection modes,
> regarding which mode seems best.  The "modal" form is more
> in keeping with the SVG CR.  If desired, we can
> promote the "modal" behavior to mouse button 1 and
> perhaps continue to offer the "non-modal" selection on
> mouse button 3.  As to which is easier to use, there are
> situations in which the non-modal selection seems easier.

I prefer the modal selection since it seems to be the standard behavior.
Perhaps can we avoid to pollute mouse buttons 2 and 3 events, I bet script
writers will agree.
--
    Stephane.