private void editorPaneMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_editorPaneMouseMoved
        int mousex=evt.getX();
        int mousey=evt.getY();

        int currentTab= this.editorPane.getSelectedIndex();

        if (this.cursor==cursorTypes.WALL || this.cursor==cursorTypes.DOOR || this.cursor==cursorTypes.EXIT){
            if (loadedEnvironment.getNumLevels()>0){
                int node1=0;
                int node2=0;

                if ((mousey-25)%32<15){
                    //add line to current floor - horizontal
                    node1=(int)Math.floor((mousex-25)/32)+(int)Math.floor((mousey-25)/32)*20+1;
                    node2=(int)Math.floor((mousex-25)/32)+(int)Math.floor((mousey-25)/32)*20;
                } else if((mousex-25)%32<15) {
                    //add line to current floor - vertical
                    node1=(int)Math.floor((mousex-25)/32)+(int)Math.floor((mousey-25)/32)*20+20;
                    node2=(int)Math.floor((mousex-25)/32)+(int)Math.floor((mousey-25)/32)*20;
                }
                if (node1%20!=0 && node2%20!=19) //temporary hack to avoid edges overflowing on the next line
                    ((buildingFloor)this.editorPane.getSelectedComponent()).highlight(node1, node2);
                this.editorPane.getSelectedComponent().repaint();
            }
        }        
    }//GEN-LAST:event_editorPaneMouseMoved