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

Method paint

CodenameOne/src/com/codename1/maps/Tile.java:165–171  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

163 ///
164 /// true if painting succeeded.
165 public boolean paint(Graphics g) {
166 if (tileImage != null) {
167 g.drawImage(tileImage, 0, 0);
168 return true;
169 }
170 return false;
171 }
172
173 /// Paints the tile on the Graphics Object translated to the given x, y,
174 /// This method paints the tile image if available or will call

Callers

nothing calls this directly

Calls 3

paintTileLoadingMethod · 0.95
drawImageMethod · 0.65
translateMethod · 0.65

Tested by

no test coverage detected