| 1 |
package chart |
| 2 |
|
| 3 |
|
| 4 |
type NameProvider interface { |
| 5 |
GetName() string |
| 6 |
} |
| 7 |
|
| 8 |
|
| 9 |
type StyleProvider interface { |
| 10 |
GetStyle() Style |
| 11 |
} |
| 12 |
|
| 13 |
|
| 14 |
type IsZeroable interface { |
| 15 |
IsZero() bool |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
type Stringable interface { |
| 20 |
String() string |
| 21 |
} |
| 22 |
|
| 23 |
|
| 24 |
type Range interface { |
| 25 |
Stringable |
| 26 |
IsZeroable |
| 27 |
|
| 28 |
GetMin() float64 |
| 29 |
SetMin(min float64) |
| 30 |
|
| 31 |
GetMax() float64 |
| 32 |
SetMax(max float64) |
| 33 |
|
| 34 |
GetDelta() float64 |
| 35 |
|
| 36 |
GetDomain() int |
| 37 |
SetDomain(domain int) |
| 38 |
|
| 39 |
IsDescending() bool |
| 40 |
|
| 41 |
|
| 42 |
Translate(value float64) int |
| 43 |
} |