Ignore:
Timestamp:
2015-07-06T19:01:27+02:00 (9 years ago)
Author:
malcolmh
Message:

update jicons

Location:
applications/editors/josm/plugins/seachart
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/jicons/src/jicons/Jicons.java

    r31343 r31344  
    3434import s57.S57map;
    3535import s57.S57map.*;
    36 import symbols.Symbols;
    3736import render.*;
    3837import render.Rules.RuleSet;
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r31343 r31344  
    441441                                Renderer.symbol(feature, Beacons.Shapes.get(shape), getScheme(feature, feature.type));
    442442                                if (feature.objs.containsKey(Obj.TOPMAR)) {
    443                                         Symbol topmark = Topmarks.Shapes.get(feature.objs.get(Obj.TOPMAR).get(0).get(Att.TOPSHP).val);
    444                                         if (topmark != null)
    445                                                 Renderer.symbol(feature, Topmarks.Shapes.get(feature.objs.get(Obj.TOPMAR).get(0).get(Att.TOPSHP).val), getScheme(feature, Obj.TOPMAR), Topmarks.BeaconDelta);
     443                                        AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
     444                                        if (topmap.containsKey(Att.TOPSHP)) {
     445                                                Symbol topmark = Topmarks.Shapes.get(((ArrayList<TopSHP>)(topmap.get(Att.TOPSHP).val)).get(0));
     446                                                if (topmark != null)
     447                                                        Renderer.symbol(feature, topmark, getScheme(feature, Obj.TOPMAR), Topmarks.BeaconDelta);
     448                                        }
    446449                                } else if (feature.objs.containsKey(Obj.DAYMAR)) {
    447                                         Symbol topmark = Topmarks.Shapes.get(feature.objs.get(Obj.DAYMAR).get(0).get(Att.TOPSHP).val);
    448                                         if (topmark != null)
    449                                                 Renderer.symbol(feature, Topmarks.Shapes.get(feature.objs.get(Obj.DAYMAR).get(0).get(Att.TOPSHP).val), getScheme(feature, Obj.DAYMAR), Topmarks.BeaconDelta);
     450                                        AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
     451                                        if (topmap.containsKey(Att.TOPSHP)) {
     452                                                Symbol topmark = Topmarks.Shapes.get(((ArrayList<TopSHP>)(topmap.get(Att.TOPSHP).val)).get(0));
     453                                                if (topmark != null)
     454                                                        Renderer.symbol(feature, topmark, getScheme(feature, Obj.DAYMAR), Topmarks.BeaconDelta);
     455                                        }
    450456                                }
    451457                        }
     
    462468                                AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
    463469                                if (topmap.containsKey(Att.TOPSHP)) {
    464                                         Symbol topmark = Topmarks.Shapes.get(topmap.get(Att.TOPSHP).val);
     470                                        Symbol topmark = Topmarks.Shapes.get(((ArrayList<TopSHP>)(topmap.get(Att.TOPSHP).val)).get(0));
    465471                                        if (topmark != null)
    466472                                                Renderer.symbol(feature, topmark, getScheme(feature, Obj.TOPMAR), Topmarks.BuoyDeltas.get(shape));
     
    469475                                AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
    470476                                if (topmap.containsKey(Att.TOPSHP)) {
    471                                         Symbol topmark = Topmarks.Shapes.get(topmap.get(Att.TOPSHP).val);
     477                                        Symbol topmark = Topmarks.Shapes.get(((ArrayList<TopSHP>)(topmap.get(Att.TOPSHP).val)).get(0));
    472478                                        if (topmark != null)
    473479                                                Renderer.symbol(feature, topmark, getScheme(feature, Obj.DAYMAR), Topmarks.BuoyDeltas.get(shape));
Note: See TracChangeset for help on using the changeset viewer.