MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / paintGlassImpl

Method paintGlassImpl

CodenameOne/src/com/codename1/ui/Form.java:1120–1140  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 13

getClipMethod · 0.80
getParentMethod · 0.65
translateMethod · 0.65
paintMethod · 0.65
getBoundsMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65
getTranslateXMethod · 0.45
getTranslateYMethod · 0.45
paintGlassMethod · 0.45
setClipMethod · 0.45

Tested by

no test coverage detected