Skip to main content



      Home
Home » Eclipse Projects » GEF » different behavior of AlignmentAction
different behavior of AlignmentAction [message #8046] Thu, 06 June 2002 03:54 Go to next message
Eclipse UserFriend
Hi,

Right now the reference rectangle for the operation is the union
rectangle of the selected editparts. I would prefer that the reference
rectangle are the bounds of the editpart which has the primary selection
status.
Is there any possibility that this could be changed or that
AlignmentAction is no longer declared final and hence
"calculateAlignmentRectangle()" can be overridden?

--hermann
Re: different behavior of AlignmentAction [message #8202 is a reply to message #8046] Thu, 06 June 2002 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

>
> Hi,
>
> Right now the reference rectangle for the operation is the union
> rectangle of the selected editparts. I would prefer that the reference
> rectangle are the bounds of the editpart which has the primary selection
> status.

I've seen applications that do both. The only difference being that a
program like Visio defines primary selection as the first thing you select.
But Windows controls display focus on the *last* item you select. We
decided to make the last item the primary selection. It also looks much
better when using the keyboard (try SHIFT+ARROW_KEY to see focus combined
with primary selection, otherwise you'd have the first item with primary
selection, but the last with a focus rectangle).

So you would be in favor of having the item selected last serve as the
reference rectangle?

> Is there any possibility that this could be changed or that
> AlignmentAction is no longer declared final and hence
> "calculateAlignmentRectangle()" can be overridden?

I think one motivation of a framework is to provide consistency. Let's
discuss whether the current implementation should be changed first.
Re: different behavior of AlignmentAction [message #8328 is a reply to message #8202] Thu, 06 June 2002 11:45 Go to previous messageGo to next message
Eclipse UserFriend
Randy Hudson wrote:

>>Hi,
>>
>>Right now the reference rectangle for the operation is the union
>>rectangle of the selected editparts. I would prefer that the reference
>>rectangle are the bounds of the editpart which has the primary selection
>>status.
>>
>
> I've seen applications that do both. The only difference being that a
> program like Visio defines primary selection as the first thing you select.
> But Windows controls display focus on the *last* item you select. We
> decided to make the last item the primary selection. It also looks much
> better when using the keyboard (try SHIFT+ARROW_KEY to see focus combined
> with primary selection, otherwise you'd have the first item with primary
> selection, but the last with a focus rectangle).
>
> So you would be in favor of having the item selected last serve as the
> reference rectangle?


Yes, and with shift-click I can make it the last selected item as it
works right now.

At least for me it is much more predictible how the items will move
especially for the middle and center action.

>
>
>>Is there any possibility that this could be changed or that
>>AlignmentAction is no longer declared final and hence
>>"calculateAlignmentRectangle()" can be overridden?
>>
>
> I think one motivation of a framework is to provide consistency. Let's
> discuss whether the current implementation should be changed first.


Yes, sure.
Re: different behavior of AlignmentAction [message #12228 is a reply to message #8328] Wed, 03 July 2002 14:01 Go to previous message
Eclipse UserFriend
Originally posted by: none.ibm.com

The behavior has been changed. The primary motivation for changing this was
that align center and middle were not predictable.

"Hermann Weindl" <Hermann.Weindl@mind8.com> wrote in message
news:3CFF8388.6010202@mind8.com...
>
> Randy Hudson wrote:
>
> >>Hi,
> >>
> >>Right now the reference rectangle for the operation is the union
> >>rectangle of the selected editparts. I would prefer that the reference
> >>rectangle are the bounds of the editpart which has the primary selection
> >>status.
> >>
> >
> > I've seen applications that do both. The only difference being that a
> > program like Visio defines primary selection as the first thing you
select.
> > But Windows controls display focus on the *last* item you select. We
> > decided to make the last item the primary selection. It also looks much
> > better when using the keyboard (try SHIFT+ARROW_KEY to see focus
combined
> > with primary selection, otherwise you'd have the first item with primary
> > selection, but the last with a focus rectangle).
> >
> > So you would be in favor of having the item selected last serve as the
> > reference rectangle?
>
>
> Yes, and with shift-click I can make it the last selected item as it
> works right now.
>
> At least for me it is much more predictible how the items will move
> especially for the middle and center action.
>
> >
> >
> >>Is there any possibility that this could be changed or that
> >>AlignmentAction is no longer declared final and hence
> >>"calculateAlignmentRectangle()" can be overridden?
> >>
> >
> > I think one motivation of a framework is to provide consistency. Let's
> > discuss whether the current implementation should be changed first.
>
>
> Yes, sure.
>
Previous Topic:Cannot see the connection during creation
Next Topic:Splitter class
Goto Forum:
  


Current Time: Tue May 13 14:54:17 EDT 2025

Powered by FUDForum. Page generated in 0.03032 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top