public void setPreferences(Settings preferences) {
this.preferences = preferences;
this.MJD0h = getMJD0h();
Settings.getKerahatTimes(MJD0h, kerahatTimes);
setTimesStr(kerahatTimes);
this.position = new EarthPosition(Settings.locationPrefer.getLatitude(), Settings.locationPrefer.getLongitude());
this.setFullScreenMode(Settings.optionPref.getIsFullScreen());
this.isMilitary = Settings.optionPref.getIsMilitary();
setFontSize(Settings.optionPref.getFontSize());
setInformation (MJD0h);
gregorianCalendar=APC_Time.DateTime(MJD0h+timeZone/24.0);