source:
trunk/sources/HeuristicLab.Visualization/DefaultLabelProvider.cs
@
1192
Last change on this file since 1192 was 1182, checked in by mstoeger, 16 years ago | |
---|---|
File size: 419 bytes |
Line | |
---|---|
1 | using System.Globalization; |
2 | |
3 | namespace HeuristicLab.Visualization { |
4 | public class DefaultLabelProvider : ILabelProvider { |
5 | private readonly string format; |
6 | |
7 | public DefaultLabelProvider() {} |
8 | |
9 | public DefaultLabelProvider(string format) { |
10 | this.format = format; |
11 | } |
12 | |
13 | public string GetLabel(double value) { |
14 | return value.ToString(format, CultureInfo.InvariantCulture); |
15 | } |
16 | } |
17 | } |
Note: See TracBrowser
for help on using the repository browser.