Ignore:
Timestamp:
2021-01-13T10:42:07+01:00 (4 years ago)
Author:
malcolmh
Message:

null exception fix + misc updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/jchart/src/jchart/Jchart.java

    r35404 r35685  
    44import java.awt.Color;
    55import java.awt.Dimension;
     6import java.awt.Font;
    67import java.awt.Graphics2D;
    78import java.awt.Rectangle;
     
    127128    public static void main(String[] args) throws Exception {
    128129        if (args.length < 4) {
    129             System.err.println("Usage: java -jar jrender.jar <osm data file> <zoom> <scale> <output image file> [<bounds (S W N E)>]");
     130            System.err.println("Usage: java -jar jchart.jar <osm data file> <zoom> <scale> <output image file> [<bounds (S W N E)>]");
    130131            System.exit(-1);
    131132        }
     
    152153            Graphics2D g2 = img.createGraphics();
    153154            Renderer.reRender(g2, new Rectangle((int) size.getX(), (int) size.getY()), zoom, Double.parseDouble(args[2]), map, context);
     155           
     156            //Renderer.labelText("000", new Font("Arial", Font.PLAIN, 20), Color.red);
    154157            try {
    155158                ImageIO.write(img, "png", new File(args[3]));
Note: See TracChangeset for help on using the changeset viewer.