maybe the drawing should then be separated, so that if you need the shapes for the drag areas but don't care for the drawing or vice versa you don't have to load something you don't need.
Does it make sense ?
Benoit
On Tuesday, February 25, 2003, at 11:56 AM, Raymond Irving wrote:
--- Benoit Marchant <[EMAIL PROTECTED]> wrote:What about using Shapes ?
What shapes? You mean the Graphics object? Or is it that you're planning on creating a Shapes Object?
Wouldn't it be better to use something like: DragArea.circle(lyr,20) DragArea.rectangle(lyr,x1,x2,y1,y2) DragArea.polygon, etc
Some code still needs to be added to DragEvent:
// check if event occured within one of the areas (if any) if (lyr.dragAreas && ! lyr.isWithinArea(e.getPageX()-lyr.getPageX(), e.getPageY()-lyr.getPageY())) { return; }
So that needs to be done there even though the area stuff is in another file.
That's fine. Once the dragarea stuff is working it can be added.
Best regards,
-- Raymond Irving
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/