Esempio n. 1
0
  public void recreateControls() {
    rightStack.clearAllViews();
    mapInfoControls.populateStackControl(rightStack, view, false);

    leftStack.clearAllViews();
    mapInfoControls.populateStackControl(leftStack, view, true);
    leftStack.requestLayout();
    rightStack.requestLayout();

    statusBar.removeAllViews();
    mapInfoControls.populateStatusBar(statusBar);
    updateColorShadowsOfText(null);
  }
Esempio n. 2
0
 @Override
 public void onDraw(Canvas canvas, RotatedTileBox tileBox, DrawSettings drawSettings) {
   updateColorShadowsOfText(drawSettings);
   // update data on draw
   rightStack.updateInfo(drawSettings);
   leftStack.updateInfo(drawSettings);
   lanesControl.updateInfo(drawSettings);
   alarmControl.updateInfo(drawSettings);
   for (int i = 0; i < statusBar.getChildCount(); i++) {
     View v = statusBar.getChildAt(i);
     if (v instanceof UpdateableWidget) {
       ((UpdateableWidget) v).updateInfo(drawSettings);
     }
   }
 }