Author: Andreas Tille Last-Update: 2015-11-27 Description: Adapt usage hints to the fact that there is /usr/bin/cgview --- a/src/ca/ualberta/stothard/cgview/CgviewIO.java +++ b/src/ca/ualberta/stothard/cgview/CgviewIO.java @@ -105,7 +105,7 @@ public class CgviewIO implements CgviewC private final static String EXTERNAL_LEGEND = "legend.png"; private static void printUsage() { - System.err.println("usage: java -jar cgview.jar [OPTION]..."); + System.err.println("usage: cgview [OPTION]..."); System.err.println("-A Specifies a label font size."); System.err.println("-c Specifies the base to center on when zooming."); System.err.println("-D Specifies a legend font size."); @@ -129,8 +129,8 @@ public class CgviewIO implements CgviewC System.err.println("-W The width of the map."); System.err.println("-x Comma separated zoom values for image series."); System.err.println("-z The factor to zoom in by."); - System.err.println("Example usage: java -jar cgview.jar -f png -i cybercell.xml -o my_picture.png -h view_image.html."); - System.err.println("Example usage: java -jar cgview.jar -i cybercell.xml -s directory_for_series -e true."); + System.err.println("Example usage: cgview -f png -i cybercell.xml -o my_picture.png -h view_image.html."); + System.err.println("Example usage: cgview -i cybercell.xml -s directory_for_series -e true."); } /** --- a/README +++ b/README @@ -33,11 +33,11 @@ To test CGView, switch to the cgview dir command, which generates a PNG image of the map described in the cybercell.xml file: ->java -jar cgview.jar -i cybercell.xml -o cybercell.png -f png +> cgview -i cybercell.xml -o cybercell.png -f png ----------------------------------------------------------- Running CGView: -usage: java -jar cgview.jar [options] +usage: cgview [options] Where the options are: @@ -136,7 +136,7 @@ will generate a PNG image file called "m called "view_image.html" will also be created. This HTML file will contain the "my_picture.png" image: -java -jar cgview.jar -f png -i cybercell.xml -o my_picture.png -h +cgview -f png -i cybercell.xml -o my_picture.png -h view_image.html 2. The command below will read an XML file called "cybercell.xml", and @@ -146,10 +146,10 @@ explored by loading the file "index.html "directory_for_series" directory. Note that generating an image series can take more than an hour. -java -jar cgview.jar -i cybercell.xml -s directory_for_series -x true +cgview -i cybercell.xml -s directory_for_series -x true Note: If you obtain an "Out of Memory" error when drawing a very large map, try increasing Java's heap size using the -Xmx option. For example, use the command: -java -jar -Xmx500m cgview.jar -i cybercell.xml -o cybercell.png -f png +java -jar -Xmx500m /usr/share/java/cgview.jar -i cybercell.xml -o cybercell.png -f png