MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / sizeChanged

Method sizeChanged

src/org/albite/albite/BookCanvas.java:2247–2269  ·  view source on GitHub ↗
(final int width, final int height)

Source from the content-addressed store, hash-verified

2245 }
2246
2247 public final void sizeChanged(final int width, final int height) {
2248 if (prevWidth == width && prevHeight == height) {
2249 /* Nothing has changed */
2250 return;
2251 }
2252
2253 if ((width == fullScreenWidth && height == fullScreenHeight)
2254 || (width == fullScreenHeight && height == fullScreenWidth)) {
2255
2256 /*
2257 * It's a correct change of size, not because of going into
2258 * non-fullscreen for some obscure reason of the j2me implementation
2259 */
2260
2261 prevWidth = width;
2262 prevHeight = height;
2263
2264 renderWaitCursor();
2265 updateProgressBarSize(width);
2266 reloadPages();
2267 applyScrollingLimits();
2268 }
2269 }
2270
2271 private void loadButtons() {
2272

Callers

nothing calls this directly

Calls 4

renderWaitCursorMethod · 0.95
updateProgressBarSizeMethod · 0.95
reloadPagesMethod · 0.95
applyScrollingLimitsMethod · 0.95

Tested by

no test coverage detected