Changeset 13832 for branches/HeuristicLab.Visualization
- Timestamp:
- 05/04/16 15:11:54 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartControl.cs
r13822 r13832 134 134 } 135 135 136 public System.Drawing.Rectangle GetPictureBounds() { 137 return pictureBox.Bounds; 138 } 139 136 140 protected virtual void ReloadModeToolBar() { 137 141 splitContainer.Panel1.Controls.Clear(); … … 199 203 var point = Chart.TransformPixelToWorld(new Point(pictureBox.Width, Chart.SizeInPixels.Height - pictureBox.Height)); 200 204 var diff = Chart.UpperRight - point; 201 Chart.SetPosition(new PointD(Chart.LowerLeft.X + (diff.DX / 2.0), Chart.LowerLeft.Y + (diff.DY / 2.0)),202 new PointD(Chart.UpperRight.X - (diff.DX / 2.0), Chart.UpperRight.Y - (diff.DY / 2.0)));205 Chart.SetPosition(new PointD(Chart.LowerLeft.X, Chart.LowerLeft.Y), 206 new PointD(Chart.UpperRight.X - diff.DX, Chart.UpperRight.Y - diff.DY)); 203 207 } 204 208 }
Note: See TracChangeset
for help on using the changeset viewer.