(final ColorScheme cp)
| 55 | } |
| 56 | |
| 57 | public final void renderPage(final ColorScheme cp) { |
| 58 | |
| 59 | final int color_bg = cp.colors[ColorScheme.COLOR_BACKGROUND]; |
| 60 | |
| 61 | final Image img = (BUFFER == null ? canvas : BUFFER); |
| 62 | |
| 63 | final Graphics g = img.getGraphics(); |
| 64 | final int w = img.getWidth(); |
| 65 | final int h = img.getHeight(); |
| 66 | |
| 67 | g.setColor(color_bg); |
| 68 | g.fillRect(0, 0, w, h); |
| 69 | |
| 70 | //#debug |
| 71 | AlbiteMIDlet.LOGGER.log("Drawing background on " + (BUFFER == null ? "canvas" : "BUFFER") + " from (0, 0) to (" + w + ", " + h + ") " + "using the colour " + Integer.toHexString(color_bg)); |
| 72 | |
| 73 | page.draw(g, cp); |
| 74 | |
| 75 | renderRotate(img); |
| 76 | } |
| 77 | |
| 78 | public final void renderPageSelected( |
| 79 | final ColorScheme cp, |
no test coverage detected