The main canvas get's the mouse down and passes it on to my controller.
My controller iterates through every object asking it if the click was
within it. The object (usually a shape that's a subclass of my base object)
responds back if it was it.
Does that answer your question?
On 9/29/04 3:11 PM, "Charles Yeomans" <yeomans at desuetude dot com> wrote:
>
> On Sep 28, 2004, at 10:06 PM, Tschofen, Martin wrote:
>
>> I've trying for a while now to create a simple diagramming
>> applications using Object2d (Object2d objects seem to make sense).
>> Just a bunch (quite a lot) of shares, strings lines. But I'm getting
>> stuck on two major issues which I'm sure others have solved without a
>> problem.
>>
>> 1. I have an object class that has multiple different subclasses for
>> each shape. All items are drawn into a canvas for display. When I have
>> some 50+ objects on screen, the response time of selecting an object
>> is slooow. Anybody have any pointers on how to deal with an efficient
>> way of dealing with this?
>> 2. How do I efficiently implement shift selecting (multiple
>> selections)? To make things worse, it gets even slower when I try to
>> deal with shift selecting. I have to work my way twice through the
>> items to identify which item was shift clicked and which items to
>> deselect.
>>
>> Any example or hints on how to deal with these issues would be
>> great...martin
>
> How are you selecting an object?
>
> --------------
> Charles Yeomans
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://www.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|