source: code/Website/dot-net-library/written-by-xiao-yifang/OpenFlashChart/Animation.cs@ 7937

Last change on this file since 7937 was 7849, checked in by dennisw, 15 years ago
File size: 1.8 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using JsonFx.Json;
5
6namespace OpenFlashChart
7{
8 public class AnimationBase
9 {
10
11 }
12 public class Animation : AnimationBase
13 {
14 private string type;
15 private double? cascade;
16 private double? delay;
17 public Animation()
18 {}
19 public Animation(string type,int? cascade,double? delay)
20 {
21 this.Type = type;
22 this.Cascade = cascade;
23 this.Delay = delay;
24 }
25 [JsonProperty("type")]
26 public string Type
27 {
28 get { return type; }
29 set { type = value; }
30 }
31 [JsonProperty("cascade")]
32 public double? Cascade
33 {
34 get { return cascade; }
35 set { cascade = value; }
36 }
37 [JsonProperty("delay")]
38 public double? Delay
39 {
40 get { return delay; }
41 set { delay = value; }
42 }
43 }
44 public class PieAnimation : AnimationBase
45 {
46 private string type;
47 private int? distance;
48 /// <summary>
49 /// used in pie animation
50 /// </summary>
51 /// <param name="type"></param>
52 /// <param name="distance"></param>
53 public PieAnimation(string type,int?distance)
54 {
55 this.type = type;
56 this.distance = distance;
57 }
58 [JsonProperty("type")]
59 public string Type
60 {
61 get { return type; }
62 set { type = value; }
63 }
64 [JsonProperty("distance")]
65 public int? Distance
66 {
67 get { return distance; }
68 set { distance = value; }
69 }
70 }
71 public class PieAnimationSeries:List<PieAnimation>
72 {}
73}
Note: See TracBrowser for help on using the repository browser.