Bug 297462

Summary: performance issue when creating figures
Product: [Tools] GEF Reporter: John Swanke <jswanke>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: mdelder
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John Swanke CLA 2009-12-10 05:45:18 EST
if a figure is added to a layer and its size is set before its location, the entire screen is forced to repaint. 

1) when "set size" is performed it does a repaint--which DefferedUpdateManager remembers as a rect at 0,0,w,h

2) if the figure position is set next, another repaint is done--which DefferedUpdateManager OR's with the first rectangle such that now a rectangle from 0,0 to whatever the new location is which can potentially be on the other side of the screen

this can be fixed by having a "isLocationSet" flag in Figure-- unless a setBounds or setLocation has been executed this flag is false. if a setSize is done it should not do a repaint unless this flag is true