Rev | Line | |
---|
[7849] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Text;
|
---|
| 4 | using JsonFx.Json;
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | namespace OpenFlashChart
|
---|
| 8 | {
|
---|
| 9 |
|
---|
| 10 | public class LineBase : Chart<LineDotValue>
|
---|
| 11 | {
|
---|
| 12 | private int width;
|
---|
| 13 | private int dotsize;
|
---|
| 14 | private int halosize;
|
---|
| 15 | private string onclick;
|
---|
| 16 | private bool loop;
|
---|
| 17 | private Animation onshow=new Animation();
|
---|
| 18 |
|
---|
| 19 | public LineBase()
|
---|
| 20 | {
|
---|
| 21 | this.ChartType = "line";
|
---|
| 22 | this.DotStyleType.Type = DotType.SOLID_DOT;
|
---|
| 23 |
|
---|
| 24 |
|
---|
| 25 | }
|
---|
| 26 | public void SetOnClickFunction(string func)
|
---|
| 27 | {
|
---|
| 28 | this.DotStyleType.OnClick = func;
|
---|
| 29 | this.onclick = func;
|
---|
| 30 | }
|
---|
| 31 | public virtual string OnClick
|
---|
| 32 | {
|
---|
| 33 | set
|
---|
| 34 | {
|
---|
| 35 | SetOnClickFunction(value);
|
---|
| 36 | }
|
---|
| 37 | get { return this.onclick; }
|
---|
| 38 | }
|
---|
| 39 | [JsonProperty("width")]
|
---|
| 40 | public virtual int Width
|
---|
| 41 | {
|
---|
| 42 | set { this.width = value; }
|
---|
| 43 | get { return this.width; }
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | [JsonProperty("dot-size")]
|
---|
| 47 | public virtual int DotSize
|
---|
| 48 | {
|
---|
| 49 | get { return dotsize; }
|
---|
| 50 | set { dotsize = value; }
|
---|
| 51 | }
|
---|
| 52 | [JsonProperty("halo-size")]
|
---|
| 53 | public virtual int HaloSize
|
---|
| 54 | {
|
---|
| 55 | get { return halosize; }
|
---|
| 56 | set { halosize = value; }
|
---|
| 57 | }
|
---|
| 58 | [JsonProperty("loop")]
|
---|
| 59 | public bool Loop
|
---|
| 60 | {
|
---|
| 61 | get { return loop; }
|
---|
| 62 | set { loop = value; }
|
---|
| 63 | }
|
---|
| 64 | [JsonProperty("on-show")]
|
---|
| 65 | public Animation OnShowAnimation
|
---|
| 66 | {
|
---|
| 67 | get { return onshow; }
|
---|
| 68 | set { onshow = value; }
|
---|
| 69 | }
|
---|
| 70 | }
|
---|
| 71 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.