(Graphics g)
| 1118 | /// |
| 1119 | /// - `g`: the graphics context |
| 1120 | @Override |
| 1121 | void paintGlassImpl(Graphics g) { |
| 1122 | if (getParent() != null) { |
| 1123 | super.paintGlassImpl(g); |
| 1124 | return; |
| 1125 | } |
| 1126 | if (glassPane != null) { |
| 1127 | int tx = g.getTranslateX(); |
| 1128 | int ty = g.getTranslateY(); |
| 1129 | g.translate(-tx, -ty); |
| 1130 | glassPane.paint(g, getBounds()); |
| 1131 | g.translate(tx, ty); |
| 1132 | } |
| 1133 | paintGlass(g); |
| 1134 | if (dragged != null && dragged.isDragAndDropInitialized()) { |
| 1135 | int[] c = g.getClip(); |
| 1136 | g.setClip(0, 0, getWidth(), getHeight()); |
| 1137 | dragged.drawDraggedImage(g); |
| 1138 | g.setClip(c); |
| 1139 | } |
| 1140 | } |
| 1141 | |
| 1142 | /// Allows a developer that doesn't derive from the form to draw on top of the |
| 1143 | /// form regardless of underlying changes or animations. This is useful for |
nothing calls this directly
no test coverage detected