Community
Participate
Working Groups
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