Ignore:
Timestamp:
2015-02-20T01:43:42+01:00 (10 years ago)
Author:
malcolmh
Message:

add base map rendering

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

Legend:

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

    r31027 r31028  
    1919import s57.S57val.*;
    2020import s57.S57map;
    21 import s57.S57obj.Obj;
    2221import s57.S57map.*;
    2322import symbols.Areas;
     
    3736        static int zoom;
    3837
    39         public static void reRender(Graphics2D g, int z, double factor, S57map m, ChartContext c) {
     38        public static void reRender(Graphics2D g, Rectangle rect, int z, double factor, S57map m, ChartContext c) {
    4039                g2 = g;
    4140                zoom = z;
     
    4443                sScale = symbolScale[zoom] * factor;
    4544                if (map != null) {
     45                        g2.setBackground(Rules.Bwater);
     46                        g2.clearRect(rect.x, rect.y, rect.width, rect.height);
    4647                        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    4748                        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r31027 r31028  
    282282                switch (feature.type) {
    283283                case BUAARE:
    284                         Renderer.lineVector(feature, new LineStyle(new Color(0x40000000, true)));
     284                        Renderer.lineVector(feature, new LineStyle(new Color(0x20000000, true)));
    285285                        break;
    286286                case COALNE:
     
    289289                case DEPARE:
    290290                        Double depmax = 0.0;
    291                         if (((depmax = (Double) getAttVal(feature, feature.type, 0, Att.DRVAL2)) != null) && (depmax <= 0.0)) {
     291                        if (((depmax = (Double) getAttVal(feature, Obj.DEPARE, 0, Att.DRVAL2)) != null) && (depmax <= 0.0)) {
    292292                                Renderer.lineVector(feature, new LineStyle(Gdries));
    293293                        }
Note: See TracChangeset for help on using the changeset viewer.