Changeset 31060 in osm for applications/editors
- Timestamp:
- 2015-03-26T19:23:20+01:00 (10 years ago)
- 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 168 168 switch (item.conv) { 169 169 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"); 171 171 break; 172 172 case L: -
applications/editors/josm/plugins/seachartedit/src/panels/PanelS57.java
r30895 r31060 204 204 for (Map.Entry<Att, AttVal<?>> item : feature.atts.entrySet()) { 205 205 String attstr = S57att.stringAttribute(item.getKey()); 206 String valstr = S57val.stringValue(item.getValue() );206 String valstr = S57val.stringValue(item.getValue(), item.getKey()); 207 207 if (!attstr.isEmpty() && !valstr.isEmpty()) { 208 208 keys.put(("seamark:" + type + ":" + attstr), valstr); … … 216 216 for (Map.Entry<Att, AttVal<?>> item : atts.entrySet()) { 217 217 String attstr = S57att.stringAttribute(item.getKey()); 218 String valstr = S57val.stringValue(item.getValue() );218 String valstr = S57val.stringValue(item.getValue(), item.getKey()); 219 219 if (!attstr.isEmpty() && !valstr.isEmpty()) { 220 220 if ((ix == 0) && (tab.size() == 1)) { -
applications/editors/josm/plugins/seachartedit/src/panels/ShowFrame.java
r30895 r31060 13 13 import java.awt.Graphics; 14 14 import java.awt.Graphics2D; 15 import java.awt.Rectangle; 15 16 import java.awt.geom.Point2D; 16 17 import java.util.ArrayList; … … 23 24 import render.ChartContext; 24 25 import render.Renderer; 26 import render.Rules.RuleSet; 25 27 import s57.S57map; 26 28 import s57.S57map.*; … … 53 55 Graphics2D g2 = (Graphics2D)g; 54 56 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); 57 60 } 58 61 -
applications/editors/josm/plugins/seachartedit/src/scedit/SCeditAction.java
r30895 r31060 35 35 36 36 public class SCeditAction extends JosmAction implements EditLayerChangeListener, SelectionChangedListener { 37 private static String title = tr("Sea MapEditor");37 private static String title = tr("SeaChart Editor"); 38 38 public static JFrame editFrame = null; 39 39 public static ShowFrame showFrame = null; … … 88 88 89 89 public SCeditAction() { 90 super(title, "SC edit", title, null, true);90 super(title, "SC", title, null, true); 91 91 } 92 92
Note:
See TracChangeset
for help on using the changeset viewer.