コード例 #1
0
		private ArrayList getData(){
			Java.Util.Random numberGenerator = new Java.Util.Random();
			ArrayList result = new ArrayList(8);

			for (int i = 0; i < 20; i++){
				ScatterDataEntity entity = new ScatterDataEntity();
				entity.value1 = numberGenerator.NextDouble() * 10;
				entity.value2 = numberGenerator.NextDouble() * 10;
				result.Add(entity);
			}

			return result;
		}
コード例 #2
0
        private ArrayList getData()
        {
            Java.Util.Random numberGenerator = new Java.Util.Random();
            ArrayList        result          = new ArrayList(8);

            for (int i = 0; i < 20; i++)
            {
                ScatterDataEntity entity = new ScatterDataEntity();
                entity.value1 = numberGenerator.NextDouble() * 10;
                entity.value2 = numberGenerator.NextDouble() * 10;
                result.Add(entity);
            }

            return(result);
        }
            public override Java.Lang.Object GetValue(Java.Lang.Object p0)
            {
                ScatterDataEntity entity = (ScatterDataEntity)p0;

                return(entity.value2);
            }