Ignore:
Timestamp:
2015-03-26T19:23:20+01:00 (9 years ago)
Author:
malcolmh
Message:

[SeaChartEditor] refresh

Location:
applications/editors/josm/plugins/seachartedit/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachartedit/src/panels/PanelMain.java

    r30895 r31060  
    168168                                                switch (item.conv) {
    169169                                                case E:
    170                                                         decode.append("\t\t\t" + Messages.getString(att.name()) + ": " + Messages.getString(((Enum<?>)item.val).name()) + "\n");
     170                                                        decode.append("\t\t\t" + Messages.getString(att.name()) + ": " + Messages.getString(((Enum<?>)((ArrayList<?>)item.val).get(0)).name()) + "\n");
    171171                                                        break;
    172172                                                case L:
  • applications/editors/josm/plugins/seachartedit/src/panels/PanelS57.java

    r30895 r31060  
    204204                for (Map.Entry<Att, AttVal<?>> item : feature.atts.entrySet()) {
    205205                        String attstr = S57att.stringAttribute(item.getKey());
    206                         String valstr = S57val.stringValue(item.getValue());
     206                        String valstr = S57val.stringValue(item.getValue(), item.getKey());
    207207                        if (!attstr.isEmpty() && !valstr.isEmpty()) {
    208208                                        keys.put(("seamark:" + type + ":" + attstr), valstr);
     
    216216                                for (Map.Entry<Att, AttVal<?>> item : atts.entrySet()) {
    217217                                        String attstr = S57att.stringAttribute(item.getKey());
    218                                         String valstr = S57val.stringValue(item.getValue());
     218                                        String valstr = S57val.stringValue(item.getValue(), item.getKey());
    219219                                        if (!attstr.isEmpty() && !valstr.isEmpty()) {
    220220                                                if ((ix == 0) && (tab.size() == 1)) {
  • applications/editors/josm/plugins/seachartedit/src/panels/ShowFrame.java

    r30895 r31060  
    1313import java.awt.Graphics;
    1414import java.awt.Graphics2D;
     15import java.awt.Rectangle;
    1516import java.awt.geom.Point2D;
    1617import java.util.ArrayList;
     
    2324import render.ChartContext;
    2425import render.Renderer;
     26import render.Rules.RuleSet;
    2527import s57.S57map;
    2628import s57.S57map.*;
     
    5355                        Graphics2D g2 = (Graphics2D)g;
    5456                        g2.setBackground(new Color(0xb5d0d0));
    55                         g2.clearRect(0, 0, 300, 300);
    56                         Renderer.reRender(g2, 16, 32, showMap, this);
     57                        Rectangle rect =  new Rectangle(0, 0, 300, 300);
     58                        g2.clearRect(rect.x, rect.y, rect.width, rect.height);
     59                        Renderer.reRender(g2, RuleSet.ALL, rect, 16, 32, showMap, this);
    5760                }
    5861
  • applications/editors/josm/plugins/seachartedit/src/scedit/SCeditAction.java

    r30895 r31060  
    3535
    3636public class SCeditAction extends JosmAction implements EditLayerChangeListener, SelectionChangedListener {
    37         private static String title = tr("SeaMap Editor");
     37        private static String title = tr("SeaChart Editor");
    3838        public static JFrame editFrame = null;
    3939        public static ShowFrame showFrame = null;
     
    8888
    8989        public SCeditAction() {
    90                 super(title, "SCedit", title, null, true);
     90                super(title, "SC", title, null, true);
    9191        }
    9292
Note: See TracChangeset for help on using the changeset viewer.