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 | 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.