| 1 |
Author: Andreas Tille <[email protected]> |
| 2 |
Last-Update: 2015-11-27 |
| 3 |
Description: Adapt usage hints to the fact that there is /usr/bin/cgview |
| 4 |
|
| 5 |
--- a/src/ca/ualberta/stothard/cgview/CgviewIO.java |
| 6 |
+++ b/src/ca/ualberta/stothard/cgview/CgviewIO.java |
| 7 |
@@ -105,7 +105,7 @@ public class CgviewIO implements CgviewC |
| 8 |
private final static String EXTERNAL_LEGEND = "legend.png"; |
| 9 |
|
| 10 |
private static void printUsage() { |
| 11 |
|
| 12 |
+ System.err.println("usage: cgview [OPTION]..."); |
| 13 |
System.err.println("-A <integer> Specifies a label font size."); |
| 14 |
System.err.println("-c <integer> Specifies the base to center on when zooming."); |
| 15 |
System.err.println("-D <integer> Specifies a legend font size."); |
| 16 |
@@ -129,8 +129,8 @@ public class CgviewIO implements CgviewC |
| 17 |
System.err.println("-W <integer> The width of the map."); |
| 18 |
System.err.println("-x <string> Comma separated zoom values for image series."); |
| 19 |
System.err.println("-z <real> The factor to zoom in by."); |
| 20 |
|
| 21 |
|
| 22 |
+ System.err.println("Example usage: cgview -f png -i cybercell.xml -o my_picture.png -h view_image.html."); |
| 23 |
+ System.err.println("Example usage: cgview -i cybercell.xml -s directory_for_series -e true."); |
| 24 |
} |
| 25 |
|
| 26 |
/** |
| 27 |
--- a/README |
| 28 |
+++ b/README |
| 29 |
@@ -33,11 +33,11 @@ To test CGView, switch to the cgview dir |
| 30 |
command, which generates a PNG image of the map described in the |
| 31 |
cybercell.xml file: |
| 32 |
|
| 33 |
|
| 34 |
+> cgview -i cybercell.xml -o cybercell.png -f png |
| 35 |
----------------------------------------------------------- |
| 36 |
Running CGView: |
| 37 |
|
| 38 |
|
| 39 |
+usage: cgview [options] |
| 40 |
|
| 41 |
Where the options are: |
| 42 |
|
| 43 |
@@ -136,7 +136,7 @@ will generate a PNG image file called "m |
| 44 |
called "view_image.html" will also be created. This HTML file will |
| 45 |
contain the "my_picture.png" image: |
| 46 |
|
| 47 |
|
| 48 |
+cgview -f png -i cybercell.xml -o my_picture.png -h |
| 49 |
view_image.html |
| 50 |
|
| 51 |
2. The command below will read an XML file called "cybercell.xml", and |
| 52 |
@@ -146,10 +146,10 @@ explored by loading the file "index.html |
| 53 |
"directory_for_series" directory. Note that generating an image series |
| 54 |
can take more than an hour. |
| 55 |
|
| 56 |
|
| 57 |
+cgview -i cybercell.xml -s directory_for_series -x true |
| 58 |
|
| 59 |
Note: If you obtain an "Out of Memory" error when drawing a very large |
| 60 |
map, try increasing Java's heap size using the -Xmx option. For |
| 61 |
example, use the command: |
| 62 |
|
| 63 |
|
| 64 |
+java -jar -Xmx500m /usr/share/java/cgview.jar -i cybercell.xml -o cybercell.png -f png |