Changeset 1194 for trunk/sources
- Timestamp:
- 01/30/09 17:03:15 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization
- Files:
-
- 3 added
- 7 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/ChartDataRowsModel.cs
r1191 r1194 5 5 using HeuristicLab.Core; 6 6 using System.Text; 7 using HeuristicLab.Visualization.LabelProvider; 7 8 8 9 namespace HeuristicLab.Visualization{ … … 14 15 private string title = "Title"; 15 16 //private string xAxisLabel; 16 private ILabelProvider labelProvider = new DefaultLabelProvider("0.##");17 private ILabelProvider labelProvider = new ContinuousLabelProvider("0.##"); 17 18 18 19 public ILabelProvider XAxisLabelProvider { … … 144 145 XmlNode node = base.GetXmlNode(name, document, persistedObjects); 145 146 146 foreach ( varrow in rows) {147 foreach (IDataRow row in rows) { 147 148 XmlNode columnElement = document.CreateNode(XmlNodeType.Element, "row", null); 148 149 149 150 XmlAttribute idAttr = document.CreateAttribute("label"); 150 idAttr.Value = row.Label .ToString();151 idAttr.Value = row.Label; 151 152 columnElement.Attributes.Append(idAttr); 152 153 -
trunk/sources/HeuristicLab.Visualization/DataRow.cs
r1193 r1194 2 2 using System.Drawing; 3 3 using System.Collections.Generic; 4 using HeuristicLab.Visualization.LabelProvider; 4 5 5 6 namespace HeuristicLab.Visualization { … … 22 23 private List<double> dataRow = new List<double>(); 23 24 24 private ILabelProvider labelProvider = new DefaultLabelProvider("0.##");25 private ILabelProvider labelProvider = new ContinuousLabelProvider("0.##"); 25 26 26 27 public DataRowType LineType{ -
trunk/sources/HeuristicLab.Visualization/HeuristicLab.Visualization.csproj
r1187 r1194 81 81 <Compile Include="CompositeShape.cs" /> 82 82 <Compile Include="ChartDataRowsModelDataCollector.cs" /> 83 <Compile Include="DefaultLabelProvider.cs" /> 83 <Compile Include="LabelProvider\ContinuousLabelProvider.cs" /> 84 <Compile Include="LabelProvider\DiscreteLabelProvider.cs" /> 84 85 <Compile Include="Grid.cs" /> 85 86 <Compile Include="HorizontalLineShape.cs" /> 86 <Compile Include=" ILabelProvider.cs" />87 <Compile Include="LabelProvider\ILabelProvider.cs" /> 87 88 <Compile Include="IMouseEventListener.cs" /> 88 89 <Compile Include="OptionsDialog.cs"> … … 93 94 </Compile> 94 95 <Compile Include="PanListener.cs" /> 96 <Compile Include="LabelProvider\StringLabelProvider.cs" /> 95 97 <Compile Include="TextShape.cs" /> 96 98 <Compile Include="LegendShape.cs" /> -
trunk/sources/HeuristicLab.Visualization/IChartDataRowsModel.cs
r1190 r1194 1 1 using System.Collections.Generic; 2 2 using HeuristicLab.Core; 3 using HeuristicLab.Visualization.LabelProvider; 3 4 4 5 namespace HeuristicLab.Visualization { -
trunk/sources/HeuristicLab.Visualization/IDataRow.cs
r1193 r1194 1 1 using System.Drawing; 2 using HeuristicLab.Visualization.LabelProvider; 2 3 3 4 namespace HeuristicLab.Visualization { -
trunk/sources/HeuristicLab.Visualization/LabelProvider/ContinuousLabelProvider.cs
r1192 r1194 1 1 using System.Globalization; 2 2 3 namespace HeuristicLab.Visualization {4 public class DefaultLabelProvider : ILabelProvider {3 namespace HeuristicLab.Visualization.LabelProvider { 4 public class ContinuousLabelProvider : ILabelProvider { 5 5 private readonly string format; 6 6 7 public DefaultLabelProvider() {}7 public ContinuousLabelProvider() {} 8 8 9 public DefaultLabelProvider(string format) {9 public ContinuousLabelProvider(string format) { 10 10 this.format = format; 11 11 } -
trunk/sources/HeuristicLab.Visualization/LabelProvider/ILabelProvider.cs
r1192 r1194 1 namespace HeuristicLab.Visualization {1 namespace HeuristicLab.Visualization.LabelProvider { 2 2 public interface ILabelProvider { 3 3 string GetLabel(double value); -
trunk/sources/HeuristicLab.Visualization/XAxis.cs
r1182 r1194 2 2 using System.Collections.Generic; 3 3 using System.Drawing; 4 using HeuristicLab.Visualization.LabelProvider; 4 5 5 6 namespace HeuristicLab.Visualization { 6 7 public class XAxis : WorldShape { 7 8 public const int PixelsPerInterval = 100; 8 private ILabelProvider labelProvider = new DefaultLabelProvider("0.##");9 private ILabelProvider labelProvider = new ContinuousLabelProvider("0.####"); 9 10 10 11 public ILabelProvider LabelProvider { -
trunk/sources/HeuristicLab.Visualization/YAxis.cs
r1182 r1194 1 1 using System.Drawing; 2 using HeuristicLab.Visualization.LabelProvider; 2 3 3 4 namespace HeuristicLab.Visualization { … … 5 6 public const int PixelsPerInterval = 75; 6 7 7 private ILabelProvider labelProvider = new DefaultLabelProvider("e");8 private ILabelProvider labelProvider = new ContinuousLabelProvider("e4"); 8 9 9 10 public ILabelProvider LabelProvider {
Note: See TracChangeset
for help on using the changeset viewer.