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

Method paintLoadingText

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

Source from the content-addressed store, hash-verified

204 }
205
206 private void paintLoadingText(Graphics g) {
207 g.setColor(0x707070);
208 g.fillRect(0, 0, dimension().getWidth(), dimension().getHeight());
209 g.setColor(0xFFFFFF);
210 g.setFont(f);
211 Font f = g.getFont();
212 int strWidth = f.stringWidth(tileLoadingText);
213 g.drawString(tileLoadingText, (dimension().getWidth() - strWidth) / 2, (dimension().getHeight() - f.getHeight()) / 2);
214 }
215
216 private void paintLoadingImage(Graphics g) {
217 for (int y = 0; y < dimension().getHeight(); y += tileLoadingImage.getHeight()) {

Callers 1

paintTileLoadingMethod · 0.95

Calls 10

dimensionMethod · 0.95
stringWidthMethod · 0.95
getHeightMethod · 0.95
fillRectMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65
setFontMethod · 0.65
getFontMethod · 0.65
setColorMethod · 0.45
drawStringMethod · 0.45

Tested by

no test coverage detected