Difference between revisions of "SaveMap"

From CMSC 420
(Created page with "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 partitio...")
 
 
(2 intermediate revisions by the same user not shown)
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 ==
 
* name (filename to save the image to)
 
* name (filename to save the image to)
  
== Possible <output> ==
+
== Possible ''<output>'' ==
 
* (None)
 
* (None)
  
== Possible <error> types ==
+
== Possible ''<error>'' types ==
 
* (None)
 
* (None)
  
== <success> Example ==
+
== ''<success>'' Example ==
 
<code>
 
<code>
 
     <success>
 
     <success>
         <command name="saveMap"/>
+
         <command name="saveMap" id="6"/>
 
         <parameters>
 
         <parameters>
 
             <name value="map_1"/>
 
             <name value="map_1"/>

Latest revision as of 16:14, 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" id="6"/>
       <parameters>
           <name value="map_1"/>
       </parameters>
       <output/>
   </success>