Debian Codegraph @

range.go

raw symbols SCIP
1 package chart
2
3 // NameProvider is a type that returns a name.
4 type NameProvider interface {
5 GetName() string
6 }
7
8 // StyleProvider is a type that returns a style.
9 type StyleProvider interface {
10 GetStyle() Style
11 }
12
13 // IsZeroable is a type that returns if it's been set or not.
14 type IsZeroable interface {
15 IsZero() bool
16 }
17
18 // Stringable is a type that has a string representation.
19 type Stringable interface {
20 String() string
21 }
22
23 // Range is a common interface for a range of values.
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 // Translate the range to the domain.
42 Translate(value float64) int
43 }