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

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using JsonFx.Json;
5
6
7namespace OpenFlashChart
8{
9 public class YAxis:Axis
10 {
11 private int tick_length;
12 private YAxisLabels labels;
13 [JsonProperty("tick-length")]
14 public int TickLength
15 {
16 get { return tick_length; }
17 set { tick_length = value; }
18 }
19
20 public void SetRange(double min, double max, int step)
21 {
22 base.Max = max;
23 base.Min = min;
24 base.Steps = step;
25 }
26
27
28
29 [JsonProperty("labels")]
30 public YAxisLabels Labels
31 {
32 get
33 {
34 if (this.labels == null)
35 this.labels = new YAxisLabels();
36 return this.labels;
37 }
38 set { this.labels = value; }
39 }
40 public void SetLabels(IList<string> labelsvalue)
41 {
42 Labels.SetLabels(labelsvalue);
43 }
44 }
45}
Note: See TracBrowser for help on using the repository browser.