Bug 297462 - performance issue when creating figures
Summary: performance issue when creating figures
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 05:45 EST by John Swanke CLA
Modified: 2009-12-10 05:45 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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