/* (non-Javadoc)
  * @see de.enough.polish.ui.ScreenChangeAnimation#setStyle(de.enough.polish.ui.Style)
  */
 protected void setStyle(Style style) {
   super.setStyle(style);
   if (this.isForwardAnimation) {
     this.currentY = 0;
   } else {
     this.currentY = this.screenHeight;
   }
   // #if polish.css.bottom-screen-change-animation-speed
   Integer speedInt = style.getIntProperty("bottom-screen-change-animation-speed");
   if (speedInt != null) {
     this.speed = speedInt.intValue();
   } else {
     this.speed = -1;
   }
   // #endif
 }
 /* (non-Javadoc)
  * @see de.enough.polish.ui.ScreenChangeAnimation#setStyle(de.enough.polish.ui.Style)
  */
 protected void setStyle(Style style) {
   super.setStyle(style);
   this.currentScreenRgb = new int[this.screenWidth * this.screenHeight];
   // render a black and white version out of the nextScreenRgb array:
   int color, red, green, blue;
   for (int i = 0; i < this.currentScreenRgb.length; i++) {
     color = this.nextCanvasRgb[i];
     red = (0x00FF & (color >>> 16));
     green = (0x0000FF & (color >>> 8));
     blue = color & (0x000000FF);
     int brightness = (red + green + blue) / 3;
     if (brightness > 127) {
       this.currentScreenRgb[i] = 0xFFFFFF;
     } else {
       this.currentScreenRgb[i] = 0x000000;
     }
   }
   this.currentStep = 0;
 }