Example #1
0
 public ClassificationGraphicsForm(KohonenNeuronNet net)
 {
     InitializeComponent();
     clGraphics        = new ClassificationGraphics(net);
     clGraphics.Dock   = DockStyle.Fill;
     clGraphics.Parent = this;
 }
Example #2
0
        public ClassificationGraphics(KohonenNeuronNet net)
        {
            InitializeComponent();

            ReloadBitmap();
            Paint     += new PaintEventHandler(ClassificationGraphics_Paint);
            Resize    += new EventHandler(ClassificationGraphics_Resize);
            MouseDown += new MouseEventHandler(ClassificationGraphics_MouseDown);

            gridPen.DashStyle       = System.Drawing.Drawing2D.DashStyle.DashDotDot;
            strFormat.Alignment     = StringAlignment.Center;
            strFormat.LineAlignment = StringAlignment.Center;

            mainGraphics = CreateGraphics();

            this.kohonenNet = net;
            type            = NetType.KOHONEN;
        }