Ejemplo n.º 1
0
        /**
         *
         * @param xMin
         * @param xMax
         * @param yMin
         * @param yMax
         * @param curves
         *          - Liste von Kurven mit jeweils eigenen Parser
         *          bzw. geparste Funktion, könnte aber auch
         *          Datenbankfeld sein, dann kein Parser - Objekt
         * @param mp
         */
        public Diagramm(double xMin, double xMax,
                        double yMin, double yMax,
                        List <Kurve> curves, DiagParam mp)
        {
            HintColor   = Color.Green;
            this.curves = curves;
            this.xMin   = xMin;
            this.xMax   = xMax;
            this.yMin   = yMin;
            this.yMax   = yMax;
            // xMin bis yMax können sich ändern, die B- Werte davon
            // bleiben
            this.xMinB = xMin;
            this.xMaxB = xMax;
            this.yMinB = yMin;
            this.yMaxB = yMax;

            //this.setBorder(BorderFactory.createLineBorder(Color.GRAY));
            this.Dock       = System.Windows.Forms.DockStyle.Fill;
            this.mp         = mp;
            this.MouseMove += new System.Windows.Forms.MouseEventHandler(pb_MouseMove);
            this.MouseDown += new System.Windows.Forms.MouseEventHandler(pb_MouseDown);
        }