Changeset 13105
- Timestamp:
- 11/03/15 11:29:00 (9 years ago)
- Location:
- branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3
- Files:
-
- 1 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Chart.cs
r13045 r13105 41 41 } 42 42 43 private Color backgroundColor; 44 public Color BackgroundColor { 45 get { return backgroundColor; } 46 set { 47 if (backgroundColor == value) return; 48 backgroundColor = value; 49 OnRedrawRequired(); 50 } 51 } 52 43 53 protected bool SuppressRedraw { get; set; } 44 54 … … 75 85 SetPosition(lowerLeft, upperRight); 76 86 mySizeInPixels = new Size((int)Size.Width, (int)Size.Height); 87 backgroundColor = Color.White; 77 88 Scale = 1.0; 78 89 Group = new Group(this); … … 228 239 public virtual void Render(Graphics graphics, int width, int height) { 229 240 mySizeInPixels = new Size(width, height); 241 graphics.Clear(backgroundColor); 230 242 Group.PreDraw(graphics); 231 243 Group.Draw(graphics); -
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartControl.cs
r13076 r13105 39 39 public PictureBox PictureBox { get { return pictureBox; } } 40 40 41 public Color BackgroundColor { 42 get { return chart != null ? chart.BackgroundColor : null; } 43 set { 44 if (chart == null || chart.BackgroundColor == value) return; 45 chart.BackgroundColor = value; 46 } 47 } 48 41 49 private IChart chart; 42 50 public IChart Chart { -
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartModes/PanChartMode.cs
r13104 r13105 25 25 26 26 namespace HeuristicLab.Visualization { 27 public class MoveChartMode : ChartMode {27 public class PanChartMode : ChartMode { 28 28 public override Image Image { get { return VSImageLibrary.Breakpoint; } } 29 public override string ToolTip { get { return " Move"; } }29 public override string ToolTip { get { return "Pan"; } } 30 30 31 31 public override Cursor Cursor { … … 33 33 } 34 34 35 public MoveChartMode(ChartControl control) : base(control) { }35 public PanChartMode(ChartControl control) : base(control) { } 36 36 37 37 public override void HandleOnMouseUp(object sender, MouseEventArgs e) { -
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/HeuristicLab.Visualization-3.3.csproj
r13076 r13105 130 130 <Compile Include="ChartMode.cs" /> 131 131 <Compile Include="AxisType.cs" /> 132 <Compile Include="ChartModes\MoveChartMode.cs" /> 132 <Compile Include="ChartModes\PanChartMode.cs" /> 133 <Compile Include="ChartModes\RulerChartMode.cs" /> 133 134 <Compile Include="Primitives\Grid.cs" /> 134 135 <Compile Include="Properties\Resources.Designer.cs"> -
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/Interfaces/IChart.cs
r13045 r13105 28 28 public interface IChart { 29 29 bool Enabled { get; set; } 30 Color BackgroundColor { get; set; } 30 31 31 32 PointD LowerLeft { get; }
Note: See TracChangeset
for help on using the changeset viewer.