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

Method setOrientation

src/org/albite/albite/BookCanvas.java:2222–2245  ·  view source on GitHub ↗
(
            final int orientation, boolean fullscreen)

Source from the content-addressed store, hash-verified

2220 }
2221
2222 public final void setOrientation(
2223 final int orientation, boolean fullscreen) {
2224
2225 if (orientation != ORIENTATION_0) {
2226 /*
2227 * When not in 0-degree view, always use fullscreen.
2228 */
2229 fullscreen = true;
2230 }
2231
2232 if (this.orientation != orientation
2233 || this.fullscreen != fullscreen) {
2234
2235 renderWaitCursor();
2236
2237 this.orientation = orientation;
2238 this.fullscreen = fullscreen;
2239
2240 applyAbsScrPgOrd();
2241 loadButtons();
2242 reloadPages();
2243 applyScrollingLimits();
2244 }
2245 }
2246
2247 public final void sizeChanged(final int width, final int height) {
2248 if (prevWidth == width && prevHeight == height) {

Callers 2

executeMethod · 0.80

Calls 5

renderWaitCursorMethod · 0.95
applyAbsScrPgOrdMethod · 0.95
loadButtonsMethod · 0.95
reloadPagesMethod · 0.95
applyScrollingLimitsMethod · 0.95

Tested by

no test coverage detected