I am making a Crop Field Map drawing application. For this purpose I need a Java applet that basically draws and edits multiple rectangles that will represent crop beds.
Its basic functionality should be very similar to this project by Mark Leather:
[url removed, login to view]
That is, it must allow drawing, selecting by marquee, deleting, grouping/ungrouping, and moving multiple rectangles. No other figures are necessary, only rectangles.
It’s important to select multiple rectangles by clicking and dragging a selection marquee enclosing them and by shift-clicking over 2 or more rectangles, just like the aforementioned applet does.
The aforementioned project also gives access to the source code so you can start from it if you want.
MULTIPLE RECTANGLE CREATION: (See [url removed, login to view] for this functionality)
It must implement a button for drawing a number of rectangles. When clicked it will display a set of text boxes on the right panel that will allow entering the following properties:
- Top, left coordinate from where to start rectangle generation.
- Rectangle’s length and rectangle’s width (all rectangles will have this same size in centimeters.)
- Number of rectangles along the X dimension.
- Number of rectangles along the Y dimension.
When the user clicks a “Create” button it will generate and draw the rectangles on the drawing area.
SINGLE RECTANGLE MODIFICATION:
A “Modify” button will allow modifying the properties of a selected rectangle, when clicked it will display a set of text boxes on the right panel. These will display the current properties of the selected rectangle and allow modifying them.
The modifiable properties are: top and left coordinates, length and width, name of the plant, and number of plants.
MULTIPLE RECTANGLE MODIFICATION:
When multiple rectangles are selected the “Modify” button will display on the right panel a set of radio buttons to choose which property should be modified, and then show the textbox to allow editing that property. The modifiable properties are:
- Length of each rectangle.
- Width of each rectangle.
- Name of the plant.
- Number of plants in each rectangle.
IMPORT AND EXPORT TO XML:
The applet should implement a method to read the rectangles from an XML file, the URL of this file should be passed as a parameter to the applet.
Similarly it should export the layout to an XML string so I can save it to a persistent store of my choice (file system or database).
If I need new features I would like to implement them myself. So please deliver all the source code, reasonably commented, I would like to be informed of which GUI editor, and IDE you used.
There is the possibility though, that I contact the chosen provider, for additional functionality.
-END OF DOCUMENT-