There are three tasks.
Edit [login to view URL] so that when you left click on the canvas it places the first polyline point. Each subsequent left click on the canvas adds a line segment to the polyline. A final right click ends the polyline. The next left click starts another polyline. As the mouse moves over the canvas, the current potential next line segment is on display.
a user interface that allows me to specify where to save the Paint, then saves all Paint commands to a file. IMPLEMENTATION DETAIL : Implementation details for the save feature:
This amounts to saving the command list to a file according to the Paint Save File Format. Do this using what you have learned in class about FileIO. You can find the format of the save file in the Assignment3 project under Assignment3/paintSaveFileFormat.txt. (CLASS NOTES PROVIDED IN FOLDER CLASS NOTES)
the ability to open previously saved Paint programs. A file dialog should appear, allowing me to choose the file to load. If the file is not in the correct format, provide an appropriate error message.
IMPLEMENTATION DETAIL: Implementation details for the load feature:
Read a file in Paint Save File Format, being careful to parse each line using an appropriate regular expression/expression. You can find the format of the save file in the Assignment3 project under Assignment3/paintSaveFileFormat.txt.
The result of the execution of the load method should modify the given PaintModel. Some ShapeCommands will require careful parsing. For example, you will have to walk through a squiggle to properly parse it using Patterns and groups.
HINT: Since spaces don't matter, strip them out of the line immediately after you read them from the file. This simplifies your regular expressions! That is, in [login to view URL], add
l = [login to view URL]("\\s+",""); // right at the start of the while loop
Được trao cho:
Hello I am Java expert and interested in the project. I have reviewed provided details and would like to help you out with this project. Please share files so we can discuss this further. Regards Anshu
3 freelancer đang chào giá trung bình $153 cho công việc này
Hi I'm an expert. If you hire me, i won't let you down. I can provide you all these things with unlimited revisions till the satisfactorily completion of [login to view URL] you