Ignore:
Timestamp:
2013-12-25T11:40:00+01:00 (12 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed2/src/render
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/render/Renderer.java

    r30123 r30150  
    88 */
    99
    10 package seamap;
     10package render;
    1111
    1212import java.awt.*;
     
    1717
    1818import s57.S57val.*;
    19 import seamap.SeaMap;
    20 import seamap.SeaMap.*;
    21 import seamap.SeaMap.Area;
     19import s57.S57map;
     20import s57.S57map.*;
     21import s57.S57map.Area;
    2222import symbols.Areas;
    23 import symbols.Harbours;
    2423import symbols.Symbols;
    2524import symbols.Symbols.*;
     
    2928        public static final double symbolScale[] = { 256.0, 128.0, 64.0, 32.0, 16.0, 8.0, 4.0, 2.0, 1.0, 0.61, 0.372, 0.227, 0.138, 0.0843, 0.0514, 0.0313, 0.0191, 0.0117, 0.007, 0.138 };
    3029
    31         public static final Color Yland = new Color(0x50b0ff);
    32         public static final Color Mline = new Color(0xc480ff);
    33         public static final Color Msymb = new Color(0xa30075);
    34        
    3530        static final EnumMap<ColCOL, Color> bodyColours = new EnumMap<ColCOL, Color>(ColCOL.class);
    3631        static {
     
    6762
    6863        static MapContext context;
    69         static SeaMap map;
     64        static S57map map;
    7065        static double sScale;
    7166        static Graphics2D g2;
    7267        static int zoom;
    7368
    74         public static void reRender(Graphics2D g, int z, double factor, SeaMap m, MapContext c) {
     69        public static void reRender(Graphics2D g, int z, double factor, S57map m, MapContext c) {
    7570                g2 = g;
    7671                zoom = z;
     
    8277                        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);
    8378                        g2.setStroke(new BasicStroke(0, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER));
    84                         Rules.rules(map, zoom);
     79                        Rules.rules();
    8580                }
    8681        }
     
    525520                        Point2D curr = new Point2D.Double();
    526521                        Point2D succ = new Point2D.Double();
    527                         boolean gap = true;
    528522                        boolean piv = false;
    529523                        double len = 0;
     
    539533                                        if (first) {
    540534                                                curr = succ = next;
    541 //                                              gap = (space > 0);
    542 //                                              len = gap ? psize * space * 0.5 : psize;
     535//                                              len = psize;
    543536                                                first = false;
    544537                                        } else {
     
    559552                                                                succ = new Point2D.Double(curr.getX() + (len * Math.cos(angle)), curr.getY() + (len * Math.sin(angle)));
    560553                                                        }
    561                                                         if (!gap) {
    562554//                                                              Symbols.drawSymbol(g2, symbol, sScale, curr.getX(), curr.getY(), new Delta(Handle.BC, AffineTransform.getRotateInstance(Math.atan2((succ.getY() - curr.getY()), (succ.getX() - curr.getX())) + Math.toRadians(90))), null);
    563                                                         }
    564                                                         gap = false;
    565555                                                        curr = succ;
    566556//                                                      len = psize;
Note: See TracChangeset for help on using the changeset viewer.