Inheritance: java.lang.Object, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
Exemplo n.º 1
0
 public DateChooserPanel(Calendar calendar, bool controlPanel)
 {
   int num1 = controlPanel ? 1 : 0;
   base.\u002Ector((LayoutManager) new BorderLayout());
   DateChooserPanel dateChooserPanel = this;
   this.yearSelectionRange = 20;
   this.dateFont = new Font("SansSerif", 0, 10);
   this.refreshing = false;
   this.chosenDateButtonColor = UIManager.getColor((object) "textHighlight");
   this.chosenMonthButtonColor = UIManager.getColor((object) "control");
   this.chosenOtherButtonColor = UIManager.getColor((object) "controlShadow");
   this.chosenDate = calendar;
   this.firstDayOfWeek = calendar.getFirstDayOfWeek();
   this.WEEK_DAYS = new int[7];
   for (int index1 = 0; index1 < 7; ++index1)
   {
     int[] numArray = this.WEEK_DAYS;
     int index2 = index1;
     int num2 = this.firstDayOfWeek + index1 - 1;
     int num3 = 7;
     int num4 = -1;
     int num5 = (num3 != num4 ? num2 % num3 : 0) + 1;
     numArray[index2] = num5;
   }
   ((Container) this).add((Component) this.constructSelectionPanel(), (object) "North");
   ((Container) this).add((Component) this.getCalendarPanel(), (object) "Center");
   if (num1 != 0)
     ((Container) this).add((Component) this.constructControlPanel(), (object) "South");
   this.setDate(calendar.getTime());
 }
 public DynamicTimeSeriesCollection(int nSeries, int nMoments, RegularTimePeriod timeSample, TimeZone zone)
 {
   DynamicTimeSeriesCollection seriesCollection = this;
   this.maximumItemCount = 2000;
   this.timePeriodClass = DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Minute != null ? DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Minute : (DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Minute = DynamicTimeSeriesCollection.class\u0024("org.jfree.data.time.Minute"));
   this.minValue = new Float(0.0f);
   this.maxValue = (Float) null;
   this.maximumItemCount = nMoments;
   this.historyCount = nMoments;
   this.seriesKeys = new IComparable[nSeries];
   for (int index = 0; index < nSeries; ++index)
     this.seriesKeys[index] = (IComparable) "";
   this.newestAt = nMoments - 1;
   this.valueHistory = new DynamicTimeSeriesCollection.ValueSequence[nSeries];
   this.timePeriodClass = Object.instancehelper_getClass((object) timeSample);
   if (this.timePeriodClass == (DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Second != null ? DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Second : (DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Second = DynamicTimeSeriesCollection.class\u0024("org.jfree.data.time.Second"))))
     this.pointsInTime = (RegularTimePeriod[]) new Second[nMoments];
   else if (this.timePeriodClass == (DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Minute != null ? DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Minute : (DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Minute = DynamicTimeSeriesCollection.class\u0024("org.jfree.data.time.Minute"))))
     this.pointsInTime = (RegularTimePeriod[]) new Minute[nMoments];
   else if (this.timePeriodClass == (DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Hour != null ? DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Hour : (DynamicTimeSeriesCollection.class\u0024org\u0024jfree\u0024data\u0024time\u0024Hour = DynamicTimeSeriesCollection.class\u0024("org.jfree.data.time.Hour"))))
     this.pointsInTime = (RegularTimePeriod[]) new Hour[nMoments];
   this.workingCalendar = Calendar.getInstance(zone);
   this.position = 0;
   this.domainIsPointsInTime = true;
 }
Exemplo n.º 3
0
        private bool BoolMethod()
        {
            Class  c    = java.lang.Object.instancehelper_getClass(this);
            string name = Name;

            Name = name;
            java.util.Calendar cal = java.util.Calendar.getInstance();
            int min = cal.@get(java.util.Calendar.MINUTE);

            cal.@set(java.util.Calendar.MONTH, java.util.Calendar.AUGUST);
            cal.@add(java.util.Calendar.HOUR, 12);
            return(base.ExistSimilarFieldAndMethod());
        }
 public TimeSeriesCollection(TimeSeries series, TimeZone zone)
 {
   TimeSeriesCollection seriesCollection = this;
   if (zone == null)
     zone = TimeZone.getDefault();
   this.workingCalendar = Calendar.getInstance(zone);
   this.data = (List) new ArrayList();
   if (series != null)
   {
     this.data.add((object) series);
     series.addChangeListener((SeriesChangeListener) this);
   }
   this.xPosition = TimePeriodAnchor.__\u003C\u003ESTART;
   this.domainIsPointsInTime = true;
 }
Exemplo n.º 5
0
 public SegmentedTimeline(long segmentSize, int segmentsIncluded, int segmentsExcluded)
 {
   base.\u002Ector();
   SegmentedTimeline segmentedTimeline = this;
   this.workingCalendar = Calendar.getInstance();
   this.exceptionSegments = (List) new ArrayList();
   this.adjustForDaylightSaving = false;
   this.segmentSize = segmentSize;
   this.segmentsIncluded = segmentsIncluded;
   this.segmentsExcluded = segmentsExcluded;
   this.groupSegmentCount = this.segmentsIncluded + this.segmentsExcluded;
   this.segmentsIncludedSize = (long) this.segmentsIncluded * this.segmentSize;
   this.segmentsExcludedSize = (long) this.segmentsExcluded * this.segmentSize;
   this.segmentsGroupSize = this.segmentsIncludedSize + this.segmentsExcludedSize;
   int rawOffset = TimeZone.getDefault().getRawOffset();
   SimpleTimeZone.__\u003Cclinit\u003E();
   SimpleTimeZone simpleTimeZone = new SimpleTimeZone(rawOffset, new StringBuffer().append("UTC-").append(rawOffset).toString());
   GregorianCalendar.__\u003Cclinit\u003E();
   this.workingCalendarNoDST = (Calendar) new GregorianCalendar((TimeZone) simpleTimeZone, Locale.getDefault());
 }
 public TimeTableXYDataset(TimeZone zone, Locale locale)
 {
   TimeTableXYDataset timeTableXyDataset = this;
   if (zone == null)
   {
     string str = "Null 'zone' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (locale == null)
   {
     string str = "Null 'locale' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.values = new DefaultKeyedValues2D(true);
     this.workingCalendar = Calendar.getInstance(zone, locale);
     this.xPosition = TimePeriodAnchor.__\u003C\u003ESTART;
   }
 }
Exemplo n.º 7
0
 public abstract void peg(Calendar c);
Exemplo n.º 8
0
 public virtual long getMiddleMillisecond(Calendar calendar)
 {
   long firstMillisecond = this.getFirstMillisecond(calendar);
   long lastMillisecond = this.getLastMillisecond(calendar);
   return firstMillisecond + (lastMillisecond - firstMillisecond) / 2L;
 }
Exemplo n.º 9
0
 public abstract long getLastMillisecond(Calendar c);
Exemplo n.º 10
0
 public PeriodAxis(string label, RegularTimePeriod first, RegularTimePeriod last, TimeZone timeZone, Locale locale)
   : base(label, (TickUnitSource) null)
 {
   PeriodAxis periodAxis = this;
   this.minorTickMarkInsideLength = 0.0f;
   this.minorTickMarkOutsideLength = 2f;
   this.minorTickMarkStroke = (Stroke) new BasicStroke(0.5f);
   this.minorTickMarkPaint = (Paint) Color.black;
   if (timeZone == null)
   {
     string str = "Null 'timeZone' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (locale == null)
   {
     string str = "Null 'locale' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.first = first;
     this.last = last;
     this.timeZone = timeZone;
     this.locale = locale;
     this.calendar = Calendar.getInstance(timeZone, locale);
     this.first.peg(this.calendar);
     this.last.peg(this.calendar);
     this.autoRangeTimePeriodClass = Object.instancehelper_getClass((object) first);
     this.majorTickTimePeriodClass = Object.instancehelper_getClass((object) first);
     this.minorTickMarksVisible = false;
     this.minorTickTimePeriodClass = RegularTimePeriod.downsize(this.majorTickTimePeriodClass);
     this.setAutoRange(true);
     this.labelInfo = new PeriodAxisLabelInfo[2];
     PeriodAxisLabelInfo[] periodAxisLabelInfoArray1 = this.labelInfo;
     int index1 = 0;
     PeriodAxisLabelInfo.__\u003Cclinit\u003E();
     PeriodAxisLabelInfo periodAxisLabelInfo1 = new PeriodAxisLabelInfo(PeriodAxis.class\u0024org\u0024jfree\u0024data\u0024time\u0024Month != null ? PeriodAxis.class\u0024org\u0024jfree\u0024data\u0024time\u0024Month : (PeriodAxis.class\u0024org\u0024jfree\u0024data\u0024time\u0024Month = PeriodAxis.class\u0024("org.jfree.data.time.Month")), (DateFormat) new SimpleDateFormat("MMM", locale));
     periodAxisLabelInfoArray1[index1] = periodAxisLabelInfo1;
     PeriodAxisLabelInfo[] periodAxisLabelInfoArray2 = this.labelInfo;
     int index2 = 1;
     PeriodAxisLabelInfo.__\u003Cclinit\u003E();
     PeriodAxisLabelInfo periodAxisLabelInfo2 = new PeriodAxisLabelInfo(PeriodAxis.class\u0024org\u0024jfree\u0024data\u0024time\u0024Year != null ? PeriodAxis.class\u0024org\u0024jfree\u0024data\u0024time\u0024Year : (PeriodAxis.class\u0024org\u0024jfree\u0024data\u0024time\u0024Year = PeriodAxis.class\u0024("org.jfree.data.time.Year")), (DateFormat) new SimpleDateFormat("yyyy", locale));
     periodAxisLabelInfoArray2[index2] = periodAxisLabelInfo2;
   }
 }
Exemplo n.º 11
0
 public Literal createTypedLiteral(java.util.Calendar c)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 12
0
 /// <summary>
 /// Set the calendar to be used by this date format.
 /// </summary>
 public void setCalendar(Calendar newCalendar)
 {
 }