Some modifications to the OxyPlot library to simplify the use in the Open Hardware Monitor.

This commit is contained in:
Michael Möller
2013-06-08 17:07:18 +00:00
parent 60c3b130f3
commit 0b3f1bb595
2 changed files with 10 additions and 11 deletions

View File

@@ -841,24 +841,23 @@ namespace OxyPlot.WindowsForms
bool xb2 = e.Button == MouseButtons.XButton2;
// MMB / control RMB / control+alt LMB
if (mmb || (control && rmb) || (control && alt && lmb))
if (mmb || (control && lmb) || (control && alt && rmb))
{
return new ZoomRectangleManipulator(this);
}
// Right mouse button / alt+left mouse button
if (lmb || (rmb && alt))
{
if (e.Clicks == 2)
{
return new ResetManipulator(this);
}
return new ZoomRectangleManipulator(this);
}
// Right mouse button / alt+left mouse button
if (rmb || (lmb && alt))
{
return new PanManipulator(this);
}
// Left mouse button
if (lmb)
if (rmb)
{
return new TrackerManipulator(this) { Snap = !control, PointsOnly = shift };
}

View File

@@ -703,13 +703,13 @@ namespace OxyPlot.Axes
/// Gets or sets the current view's maximum. This value is used when the user zooms or pans.
/// </summary>
/// <value> The view maximum. </value>
protected double ViewMaximum { get; set; }
public double ViewMaximum { get; protected set; }
/// <summary>
/// Gets or sets the current view's minimum. This value is used when the user zooms or pans.
/// </summary>
/// <value> The view minimum. </value>
protected double ViewMinimum { get; set; }
public double ViewMinimum { get; protected set; }
/// <summary>
/// Transforms the specified point to screen coordinates.