Ignore:
Timestamp:
2015-02-19T21:52:40+01:00 (10 years ago)
Author:
malcolmh
Message:

add base map rendering

File:
1 edited

Legend:

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

    r31014 r31027  
    1616import java.util.*;
    1717
     18import render.Rules.*;
    1819import s57.S57val.*;
    1920import s57.S57map;
     21import s57.S57obj.Obj;
    2022import s57.S57map.*;
    2123import symbols.Areas;
     
    4547                        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);
    4648                        g2.setStroke(new BasicStroke(0, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER));
    47                         Rules.rules();
     49                        Rules.rules(RuleSet.BASE);
    4850                }
    4951        }
     
    267269                        }
    268270                }
     271                if ((style.fill != null) && (feature.geom.prim == Pflag.AREA)) {
     272                        g2.setPaint(style.fill);
     273                        g2.fill(p);
     274                }
    269275                if (style.line != null) {
    270276                        if (style.dash != null) {
     
    276282                                g2.setStroke(new BasicStroke((float) (style.width * sScale), BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND, 1, dash, 0));
    277283                        } else {
    278                                 g2.setStroke(new BasicStroke((float) (style.width * sScale), BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND));
     284                                g2.setStroke(new BasicStroke((float) (style.width * sScale), BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
    279285                        }
    280286                        g2.setPaint(style.line);
    281287                        g2.draw(p);
    282                 }
    283                 if (style.fill != null) {
    284                         g2.setPaint(style.fill);
    285                         g2.fill(p);
    286288                }
    287289        }
Note: See TracChangeset for help on using the changeset viewer.