src/share/classes/javax/swing/DebugGraphics.java

Print this page




1446         debugGraphics.translate(xOffset, yOffset);
1447         debugGraphics.setClip(getClipBounds());
1448         if (debugFlash()) {
1449             debugGraphics.setDebugOptions(FLASH_OPTION);
1450         }
1451         return debugGraphics;
1452     }
1453 
1454     /** Returns DebugGraphicsInfo, or creates one if none exists.
1455       */
1456     static DebugGraphicsInfo info() {
1457         DebugGraphicsInfo debugGraphicsInfo = (DebugGraphicsInfo)
1458             SwingUtilities.appContextGet(debugGraphicsInfoKey);
1459         if (debugGraphicsInfo == null) {
1460             debugGraphicsInfo = new DebugGraphicsInfo();
1461             SwingUtilities.appContextPut(debugGraphicsInfoKey,
1462                                          debugGraphicsInfo);
1463         }
1464         return debugGraphicsInfo;
1465     }
1466     private static final Class debugGraphicsInfoKey = DebugGraphicsInfo.class;
1467 
1468 
1469 }


1446         debugGraphics.translate(xOffset, yOffset);
1447         debugGraphics.setClip(getClipBounds());
1448         if (debugFlash()) {
1449             debugGraphics.setDebugOptions(FLASH_OPTION);
1450         }
1451         return debugGraphics;
1452     }
1453 
1454     /** Returns DebugGraphicsInfo, or creates one if none exists.
1455       */
1456     static DebugGraphicsInfo info() {
1457         DebugGraphicsInfo debugGraphicsInfo = (DebugGraphicsInfo)
1458             SwingUtilities.appContextGet(debugGraphicsInfoKey);
1459         if (debugGraphicsInfo == null) {
1460             debugGraphicsInfo = new DebugGraphicsInfo();
1461             SwingUtilities.appContextPut(debugGraphicsInfoKey,
1462                                          debugGraphicsInfo);
1463         }
1464         return debugGraphicsInfo;
1465     }
1466     private static final Class<DebugGraphicsInfo> debugGraphicsInfoKey = DebugGraphicsInfo.class;


1467 }