Inheritance: global::java.lang.Number, global::java.lang.Comparable
 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;
 }
Beispiel #2
0
    public static void set(object arrayObj, int index, object value)
    {
        if (arrayObj == null)
        {
            throw new java.lang.NullPointerException();
        }
        Type type = arrayObj.GetType();

        if (ReflectUtil.IsVector(type) && ClassLoaderWrapper.GetWrapperFromType(type.GetElementType()).IsPrimitive)
        {
            java.lang.Boolean booleanValue = value as java.lang.Boolean;
            if (booleanValue != null)
            {
                setBoolean(arrayObj, index, booleanValue.booleanValue());
                return;
            }
            java.lang.Byte byteValue = value as java.lang.Byte;
            if (byteValue != null)
            {
                setByte(arrayObj, index, byteValue.byteValue());
                return;
            }
            java.lang.Character charValue = value as java.lang.Character;
            if (charValue != null)
            {
                setChar(arrayObj, index, charValue.charValue());
                return;
            }
            java.lang.Short shortValue = value as java.lang.Short;
            if (shortValue != null)
            {
                setShort(arrayObj, index, shortValue.shortValue());
                return;
            }
            java.lang.Integer intValue = value as java.lang.Integer;
            if (intValue != null)
            {
                setInt(arrayObj, index, intValue.intValue());
                return;
            }
            java.lang.Float floatValue = value as java.lang.Float;
            if (floatValue != null)
            {
                setFloat(arrayObj, index, floatValue.floatValue());
                return;
            }
            java.lang.Long longValue = value as java.lang.Long;
            if (longValue != null)
            {
                setLong(arrayObj, index, longValue.longValue());
                return;
            }
            java.lang.Double doubleValue = value as java.lang.Double;
            if (doubleValue != null)
            {
                setDouble(arrayObj, index, doubleValue.doubleValue());
                return;
            }
        }
        try
        {
            CheckArray(arrayObj).SetValue(value, index);
        }
        catch (InvalidCastException)
        {
            throw new java.lang.IllegalArgumentException("argument type mismatch");
        }
        catch (IndexOutOfRangeException)
        {
            throw new java.lang.ArrayIndexOutOfBoundsException();
        }
    }
 public virtual void invalidateRangeInfo()
 {
   this.maxValue = (Float) null;
   this.valueRange = (Range) null;
 }