source:
trunk/sources/HeuristicLab.Visualization/DefaultLabelProvider.cs
@
1182
Last change on this file since 1182 was 1182, checked in by mstoeger, 16 years ago | |
---|---|
File size: 419 bytes |
Rev | Line | |
---|---|---|
[1182] | 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.