Пример #1
0
 internal void Setup(GraphPanel g)
 {
     _graphPanel      = g;
     _graphParameters = _graphPanel.GraphParameters;
     _graphTabPanel   = _graphParameters.GraphTabPanel;
     Markers          = new Marker(_graphPanel);
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="g"></param>
 public GraphData(GraphPanel g)
 {
     _graphPanel       = g;
     _graphParameters  = _graphPanel.GraphParameters;
     _graphTabPanel    = _graphPanel.GraphParameters.GraphTabPanel;
     InitialAllocation = 1000;
 }
Пример #3
0
 public Legend(GraphPanel gp)
 {
     InitializeComponent();
     _graphPanel = gp;
     _netGraph   = CreateGraphics();
     _events     = new LegendEvents(_graphPanel, this);
 }
Пример #4
0
        public Params(GraphPanel g)
        {
            LastDoubleClickTime = 0.0;

            XGridDrawn            = false;
            CheckGraphTooltip     = false;
            MouseY                = 0;
            MouseX                = 0;
            LastXPosition         = 0.0;
            CursorPan             = null;
            ClearListCount        = 0;
            ResetPointCount       = false;
            AllReadyToGo          = false;
            DisplayActiveValues   = false;
            HaltUpdateFromSplit   = false;
            Panning               = false;
            DisplayCursor         = false;
            BoxCursor             = false;
            BoxBotY               = 0;
            BoxBotX               = 0;
            BoxTopY               = 0;
            BoxTopX               = 0;
            CrossY                = 0;
            CrossX                = 0;
            CursorY               = 0;
            CursorX               = 0;
            DrawBoundaryStrings   = false;
            ShowDifferenceMarkers = false;
            MarkerX               = 0.0;
            MoveFromRight         = false;
            MoveFromLeft          = false;
            _graphPanel           = g;
        }
Пример #5
0
 internal void Setup(GraphPanel g)
 {
     _graphPanel       = g;
     _graphParameters  = _graphPanel.GraphParameters;
     _graphicsTabPanel = _graphPanel.GraphParameters.GraphTabPanel;
     _graphBoundary    = _graphPanel.GraphParameters.GraphBoundary;
     _tabMouse         = new TabMouseOps(g);
 }
Пример #6
0
        public PanelControl(GraphPanel gPanel, int tag)
        {
            ConMenu = new ContextMenu();

            BoundaryConMenu = new ContextMenu();
            MarkerConMenu   = new ContextMenu();
            Legend          = new Legend(gPanel);
            GPan            = new Panel
            {
                Tag         = tag,
                BackColor   = Color.WhiteSmoke,
                BorderStyle = BorderStyle.Fixed3D
            };

            LegendTitle    = gPanel.PanelName;
            MarkerMenuSet  = true;
            PanSurface     = null;
            GrSurface      = null;
            HCursorSurface = null;
            VCursorSurface = null;
            RectHSurface   = null;
            RectVSurface   = null;
            CrossSurface   = null;
            HCursorImage   = null;
            VCursorImage   = null;
            RectHImage     = null;
            RectVImage     = null;
            DrawingImage   = null;
            CrossImage     = null;

            PercentHeight = 100.0;

            Zooming        = false;
            YScale         = 1.0;
            XScale         = 1.0;
            XOffset        = 0;
            YOffset        = 0;
            XPan           = 0;
            YPan           = 0;
            XPanStart      = 0;
            YPanStart      = 0;
            YAxisType      = YAxisType.Auto;
            XAxisType      = XAxisType.Auto;
            XAxisSpanLabel = "In Seconds";
            XAxisSpan      = 500.0;
            XAxisMin       = 0.0;
            XAxisMax       = 500.0;
            YAxisMin       = 0.0;
            YAxisMax       = 500.0;
            NeedToSetScale = true;

            XAxisTitle = "Time(secs)";
            YAxisTitle = "Counts";
            TagList    = null;
        }
Пример #7
0
        public Grid(GraphPanel g)
        {
            try
            {
                var myScreen = Screen.PrimaryScreen;
                var area     = myScreen.WorkingArea;
                if (area.Size.Height < 900)
                {
                    SetSmallAxisFont();
                }
                else
                {
                    SetLargeAxisFont();
                }
            }
            catch
            {
                SetSmallAxisFont();
            }

            _graphPanel      = g;
            _graphParameters = _graphPanel.GraphParameters;
            _graphTabPanel   = _graphParameters.GraphTabPanel;
        }
Пример #8
0
 internal void SetGraphPanel(GraphPanel g, PanelControl p)
 {
     _graphPanel   = g;
     _panelControl = p;
     FillDataItems();
 }
Пример #9
0
 public YAxisForm(GraphPanel g)
 {
     InitializeComponent();
     _graphPanel = g;
 }
Пример #10
0
 public Options(GraphPanel g)
 {
     _graphPanel      = g;
     _graphParameters = _graphPanel.GraphParameters;
     _graphTabPanel   = _graphPanel.GraphParameters.GraphTabPanel;
 }
Пример #11
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="gp"></param>
 public AxisForm(GraphPanel gp)
 {
     InitializeComponent();
     _graphPanel  = gp;
     _graphParams = _graphPanel.GraphParameters;
 }
Пример #12
0
 public Marker(GraphPanel g)
 {
     _graphPanel      = g;
     _graphParameters = _graphPanel.GraphParameters;
 }
Пример #13
0
 public TabMouseOps(GraphPanel g)
 {
     _graphPanel       = g;
     _graphParameters  = _graphPanel.GraphParameters;
     _graphicsTabPanel = _graphPanel.GraphParameters.GraphTabPanel;
 }
Пример #14
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="g"></param>
 public GpContextMenu(GraphPanel g)
 {
     _graphPanel    = g;
     _graphParams   = _graphPanel.GraphParameters;
     _graphTabPanel = _graphPanel.GraphParameters.GraphTabPanel;
 }
Пример #15
0
 public LegendEvents(GraphPanel gp, Legend legend)
 {
     _graphPanel = gp;
     _legend     = legend;
 }