Hi I'm currently making an application for some research I am doing. I need to be able to draw on a grid in a canvas. More detail:
- I need to create the grid, possibly displaying it in the canvas itself, with a customizable number of vertical/horizontal grid markers.
- I need to be able to draw points that snap only to grid line intersections.
- I need to be able to draw lines that can only snap to grid line intersections as well.
- I need a way to fill in an area that has been bounded by the lines that I drew with a certain color.
Please note that I am not looking for someone to write the program for me, I just need help taking that first step and where to look for additional resources etc. I have no idea where to begin. Also I am using NetBeans GUI Builder, if that is helpful. All I have now is the canvas set up. I have no idea where to go from there. Thank you very much.