Ignore:
Timestamp:
2015-07-06T16:44:58+02:00 (10 years ago)
Author:
malcolmh
Message:

update jicons

Location:
applications/editors/josm/plugins/seachart/src/render
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/seachart/src/render/ChartContext.java

    r30894 r31343  
    1010package render;
    1111
     12import java.awt.Color;
    1213import java.awt.geom.Point2D;
    1314
     
    1718        Point2D getPoint(Snode coord);
    1819        double mile(Feature feature);
     20        boolean clip();
     21        Color background();
    1922}
  • TabularUnified applications/editors/josm/plugins/seachart/src/render/Renderer.java

    r31157 r31343  
    4343                sScale = symbolScale[zoom] * factor;
    4444                if (map != null) {
    45                         Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon));
    46                         Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon));
    47                         g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY())));
    48                         g2.setBackground(Symbols.Bwater);
     45                        if (context.clip()) {
     46                                Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon));
     47                                Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon));
     48                                g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY())));
     49                        }
     50                        g2.setBackground(context.background());
    4951                        g2.clearRect(rect.x, rect.y, rect.width, rect.height);
    5052                        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
  • TabularUnified applications/editors/josm/plugins/seachart/src/render/Rules.java

    r31044 r31343  
    887887                                int i = 0;
    888888                                for (AttMap atts : objs.values()) {
    889                                         if (atts.get(Att.MARSYS) != null) sys = (MarSYS)atts.get(Att.MARSYS).val;
     889                                        if (atts.get(Att.MARSYS) != null) sys = (MarSYS)(atts.get(Att.MARSYS).val);
    890890                                        CatNMK cat = CatNMK.NMK_UNKN;
    891                                         if (atts.get(Att.CATNMK) != null) cat = (CatNMK)atts.get(Att.CATNMK).val;
     891                                        if (atts.get(Att.CATNMK) != null) cat = (CatNMK)(atts.get(Att.CATNMK).val);
    892892                                        Symbol sym = Notices.getNotice(cat, sys);
    893893                                        Handle h = Handle.CC;
  • TabularUnified applications/editors/josm/plugins/seachart/src/render/Signals.java

    r31063 r31343  
    283283
    284284        public static void lights(Feature feature) {
    285                 Enum<ColCOL> col = null;
     285/*              Enum<ColCOL> col = null;
    286286                Enum<ColCOL> tcol = null;
    287287                ObjTab lights = feature.objs.get(Obj.LIGHTS);
     
    412412                                        AttMap m0 = group.get(i);
    413413                                        AttMap m1 = group.get(i+1);
    414                                         if (((m0.containsKey(Att.VALNMR) && m1.containsKey(Att.VALNMR) && ((int)m0.get(Att.VALNMR).val < (int)m1.get(Att.VALNMR).val)))
     414                                        if (((m0.containsKey(Att.VALNMR) && m1.containsKey(Att.VALNMR) && ((int)(m0.get(Att.VALNMR).val) < (int)(m1.get(Att.VALNMR).val))))
    415415                                                        || (!m0.containsKey(Att.VALNMR) && m1.containsKey(Att.VALNMR))) {
    416416                                                AttMap tmp = group.remove(i);
     
    421421                        }
    422422                }
    423         }
     423*/      }
    424424
    425425}
Note: See TracChangeset for help on using the changeset viewer.