Changeset 1553


Ignore:
Timestamp:
05/06/21 15:21:45 (3 years ago)
Author:
bnemhaus
Message:

Debugging work. Attempting to isolate the issue experienced on some computers where Text looks to be getting drawn multiple times. My findings so far is that there are instances were lines get drawn multiple times but other than that I haven't been able to find anything. Asking David to run as we know the problem occurs on his laptop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameGraphics.java

    r1415 r1553  
    5252       
    5353        private static Item _lastToolTippedItem = null;
     54       
     55        private static HashSet<Item> itemsPaintedRecently = new HashSet<Item>();
    5456
    5557        /** Static-only class. */
     
    107109
    108110        /** TODO: Comment. cts16 */
    109         public static void paintFrame(Frame toPaint, boolean isActualFrame, boolean createVolitile)
    110         {
     111        public static void paintFrame(Frame toPaint, boolean isActualFrame, boolean createVolitile)     {
     112               
     113                Browser.debugMessage("FrameGraphics", "paintFrame", "Debug Job: Trying to detect Items being painted multiple times");
     114                itemsPaintedRecently = new HashSet<Item>();
     115               
     116               
    111117                Clip clip = EcosystemManager.getGraphicsManager().peekClip();
    112118               
     
    458464
    459465                // do not paint annotation items in audience mode
    460                 if (!DisplayController.isAudienceMode() || (!i.isConnectedToAnnotation() && !i.isAnnotation()) || i == FrameUtils.getLastEdited())
    461                 {
     466                if (!DisplayController.isAudienceMode() || (!i.isConnectedToAnnotation() && !i.isAnnotation()) || i == FrameUtils.getLastEdited()) {
    462467                        i.paint();
     468                       
     469                        if (itemsPaintedRecently.contains(i)) {
     470                                Browser.debugMessage("FrameGraphics", "PaintItem", "Repaining Item Between Clears: " + i);
     471                        } else {
     472                                itemsPaintedRecently.add(i);
     473                        }
    463474                }
    464475        }
Note: See TracChangeset for help on using the changeset viewer.