Difference between revisions of "SaveMap"
From CMSC 420
(One intermediate revision 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. | + | 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 == | ||
Line 13: | Line 13: | ||
<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>