[chronojump] FSAI graph axis with cont lines



commit ee93b6b5e6195eb01e4616e5d7de6928342f297a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 12 16:07:39 2020 +0100

    FSAI graph axis with cont lines

 src/gui/app1/forceSensorAnalyze.cs | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index a2f28d6c..8c28acfe 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -681,6 +681,7 @@ public partial class ChronoJumpWindow
        Gdk.GC pen_black_force_ai;              //signal
        Gdk.GC pen_blue_force_ai;               //RFD
        Gdk.GC pen_red_force_ai;                //RFD max
+       Gdk.GC pen_gray_cont_force_ai;          //vertical lines
        Gdk.GC pen_gray_discont_force_ai;       //vertical lines
        Gdk.GC pen_yellow_force_ai;             //0 force
        Gdk.GC pen_yellow_light_force_ai;       //feedback rectangle on analyze to differentiate from yellow 
AB lines
@@ -732,6 +733,7 @@ public partial class ChronoJumpWindow
                pen_yellow_force_ai = new Gdk.GC(force_sensor_ai_drawingarea.GdkWindow);
                pen_yellow_light_force_ai = new Gdk.GC(force_sensor_ai_drawingarea.GdkWindow);
                pen_white_force_ai = new Gdk.GC(force_sensor_ai_drawingarea.GdkWindow);
+               pen_gray_cont_force_ai = new Gdk.GC(force_sensor_ai_drawingarea.GdkWindow);
                pen_gray_discont_force_ai = new Gdk.GC(force_sensor_ai_drawingarea.GdkWindow);
                pen_green_force_ai = new Gdk.GC(force_sensor_ai_drawingarea.GdkWindow);
 
@@ -741,6 +743,7 @@ public partial class ChronoJumpWindow
                pen_yellow_force_ai.Foreground = UtilGtk.YELLOW;
                pen_yellow_light_force_ai.Foreground = UtilGtk.YELLOW_LIGHT;
                pen_white_force_ai.Foreground = UtilGtk.WHITE;
+               pen_gray_cont_force_ai.Foreground = UtilGtk.GRAY;
                pen_gray_discont_force_ai.Foreground = UtilGtk.GRAY;
                pen_green_force_ai.Foreground = UtilGtk.GREEN_PLOTS;
 
@@ -754,6 +757,7 @@ public partial class ChronoJumpWindow
                pen_yellow_force_ai.SetLineAttributes (2, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, 
Gdk.JoinStyle.Round);
                pen_yellow_light_force_ai.SetLineAttributes (2, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, 
Gdk.JoinStyle.Round);
                pen_white_force_ai.SetLineAttributes (1, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, 
Gdk.JoinStyle.Round);
+               pen_gray_cont_force_ai.SetLineAttributes(1, Gdk.LineStyle.Solid, Gdk.CapStyle.Butt, 
Gdk.JoinStyle.Round);
                pen_gray_discont_force_ai.SetLineAttributes(1, Gdk.LineStyle.OnOffDash, Gdk.CapStyle.Butt, 
Gdk.JoinStyle.Round);
                pen_green_force_ai.SetLineAttributes (1, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, 
Gdk.JoinStyle.Round);
 
@@ -776,7 +780,7 @@ public partial class ChronoJumpWindow
 
                //draw vertical line
                if(solid)
-                       force_sensor_ai_pixmap.DrawLine(pen_gray_discont_force_ai,
+                       force_sensor_ai_pixmap.DrawLine(pen_gray_cont_force_ai,
                                        xPx, 4, xPx, force_sensor_ai_drawingarea.Allocation.Height - 
textHeight -4);
                else
                        force_sensor_ai_pixmap.DrawLine(pen_gray_discont_force_ai,
@@ -788,7 +792,7 @@ public partial class ChronoJumpWindow
                int yPx = fsAI.FscAIPoints.GetForceInPx(yForce);
                //draw horizontal line
                if(solid)
-                       force_sensor_ai_pixmap.DrawLine(pen_gray_discont_force_ai,
+                       force_sensor_ai_pixmap.DrawLine(pen_gray_cont_force_ai,
                                        fsAI.FscAIPoints.GetTimeInPx(0), yPx, 
force_sensor_ai_drawingarea.Allocation.Width, yPx);
                else
                        force_sensor_ai_pixmap.DrawLine(pen_gray_discont_force_ai,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]