Package java.util

Examples of java.util.TimeZone$DisplayNames


    {
      axis.setAxisLinePaint(lineColor);
      axis.setTickMarkPaint(lineColor);
    }

    TimeZone timeZone = chartContext.getTimeZone();
    if (axis instanceof DateAxis && timeZone != null)
    {
      // used when no mask is set
      ((DateAxis) axis).setTimeZone(timeZone);
    }
View Full Code Here


   *
   */
  protected Format getDateFormat(String pattern)
  {
    Locale lc = getLocale();
    TimeZone tz = getTimeZone();
    String key = pattern + "|" + JRDataUtils.getLocaleCode(lc) + "|" + JRDataUtils.getTimeZoneId(tz);
    Format format = (Format)dateFormatCache.get(key);
    if (format == null)
    {
      format = getFormatFactory().createDateFormat(pattern, lc, tz);
View Full Code Here

        if (csvLocaleCode != null) {
          datasource.setLocale(csvLocaleCode);
        }
      }
     
      TimeZone csvTimezone = (TimeZone) getParameterValue(JRParameter.REPORT_TIME_ZONE, true);
      if (csvTimezone != null) {
        datasource.setTimeZone(csvTimezone);
      } else {
        String csvTimezoneId = getStringParameterOrProperty(JRXlsQueryExecuterFactory.XLS_TIMEZONE_ID);
        if (csvTimezoneId != null) {
View Full Code Here

        if (csvLocaleCode != null) {
          datasource.setLocale(csvLocaleCode);
        }
      }
     
      TimeZone csvTimezone = (TimeZone) getParameterValue(JRParameter.REPORT_TIME_ZONE, true);
      if (csvTimezone != null) {
        datasource.setTimeZone(csvTimezone);
      } else {
        String csvTimezoneId = getStringParameterOrProperty(JRCsvQueryExecuterFactory.CSV_TIMEZONE_ID);
        if (csvTimezoneId != null) {
View Full Code Here

      if (tickLabelPaint != null)
      {
        axis.setTickLabelPaint(tickLabelPaint);
      }
     
      TimeZone timeZone = getChartContext().getTimeZone();
      if (axis instanceof DateAxis && timeZone != null)
      {
        // used when no mask is set
        ((DateAxis) axis).setTimeZone(timeZone);
      }
View Full Code Here

      if (tickLabelPaint != null)
      {
        axis.setTickLabelPaint(tickLabelPaint);
      }
     
      TimeZone timeZone = getChartContext().getTimeZone();
      if (axis instanceof DateAxis && timeZone != null)
      {
        // used when no mask is set
        ((DateAxis) axis).setTimeZone(timeZone);
      }
View Full Code Here

  /// @method getLastModified
  /// Returns the time of last modification for this envelope.
  /// @synopsis Calendar getLastModified()
  public Any m_getLastModified(Context context)
  {
    TimeZone tz = context.getTimeZone();
    Locale lc = context.getLocale();
    Calendar cal = Calendar.getInstance(tz, lc);
    cal.setTime(new Date(_envelope.getLastModified()));
    return new anvil.core.time.AnyCalendar(cal);
  }
View Full Code Here

        currentLocale = locale;
        Locale.setDefault(locale);
        int defaultTimezoneOffset = TimeZone.getDefault().getRawOffset() + TimeZone.getDefault().getDSTSavings();

       
        TimeZone utc = TimeZone.getTimeZone("UTC");
        utc.setRawOffset(defaultTimezoneOffset);
        TimeZone.setDefault(utc);

        currentDateFormat = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM,
                currentLocale);
        shortCurrentDateFormat = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.SHORT,
View Full Code Here

     */
    public Calendar getCalendarForDateTimezone()
    {
        if (dateTimezoneCalendar == null)
        {
            TimeZone tz;
            String serverTimeZoneID = getStringProperty("org.jpox.ServerTimeZoneID");
            if (serverTimeZoneID != null)
            {
                tz = TimeZone.getTimeZone(serverTimeZoneID);
            }
View Full Code Here

                g.drawString(
                        dw.substring(0, dw.length() < 3 ? dw.length() : 3), i
                                * sizex / 7 + 3, 12);
            }
            GanttCalendar tmpdate = date.Clone();
            TimeZone timeZone = tmpdate.getTimeZone();
            tmpdate.setDay(1);
            String d = tmpdate.getdayWeek();
            while (!d.equals(language.getDay(1))) {
                tmpdate.go(Calendar.DATE, -1);
                d = tmpdate.getdayWeek();
            }
            for (int i = 0; i < 6; i++) {
                for (int j = 0; j < 7; j++) {
                    if (tmpdate.getMonth() != date.getMonth())
                        g.setColor(gris);
                    else {
                        if (tmpdate.getDay() == date.getDay()) {
                            g.setColor(bleu);
                            g.fillRect(j * sizex / 7 - 1, 15 + i * 15,
                                    sizex / 7, 15);
                            g.setColor(Color.white);
                        } else
                            g.setColor(Color.black);
                    }
                    g.drawString("" + tmpdate.getDate(), j * sizex / 7 + 4,
                            30 + i * 15 - 3);
                    tmpdate.go(Calendar.DATE, 1);
                    if (timeZone != null
                            && timeZone.inDaylightTime(tmpdate.getTime())) {
                        tmpdate.add(Calendar.MILLISECOND, timeZone
                                .getDSTSavings());
                        timeZone = null;
                    }

                }
View Full Code Here

TOP

Related Classes of java.util.TimeZone$DisplayNames

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.