Difference between revisions of "SaveMap"

From CMSC 420
Line 1: Line 1:
Saves the current map to a file. The image file should be saved with the correct name. It should match our image file: same dimensions, same cities, same colors, same partitions, etc. How to keep track of your graphic map is discussed in the previous section. Printing it out is discussed there too.
+
Saves the current map to a file. The image file should be saved with the correct name. It should match our image file: same dimensions, same cities, same colors, same partitions, etc. Roads should be drawn as black (java.awt.Color.BLACK) line segments. Everything else from Part 1 will be the same (e.g. Cities should be drawn as black (java.awt.Color.BLACK) named points) with one exception: '''To differentiate from Roads, quadtree partitions should now be gray (java.awt.Color.GRAY) crosses.'''
  
 
== Parameters ==
 
== Parameters ==

Revision as of 16:12, 30 September 2013

Saves the current map to a file. The image file should be saved with the correct name. It should match our image file: same dimensions, same cities, same colors, same partitions, etc. Roads should be drawn as black (java.awt.Color.BLACK) line segments. Everything else from Part 1 will be the same (e.g. Cities should be drawn as black (java.awt.Color.BLACK) named points) with one exception: To differentiate from Roads, quadtree partitions should now be gray (java.awt.Color.GRAY) crosses.

Parameters[edit]

  • name (filename to save the image to)

Possible <output>[edit]

  • (None)

Possible <error> types[edit]

  • (None)

<success> Example[edit]

   <success>
       <command name="saveMap"/>
       <parameters>
           <name value="map_1"/>
       </parameters>
       <output/>
   </success>