Changeset 35483 in osm for applications/editors
- Timestamp:
- 2020-06-04T10:36:16+02:00 (4 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/render
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Renderer.java
r35404 r35483 100 100 Point2D point = context.getPoint(Rules.feature.geom.centre); 101 101 Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), scheme, delta); 102 } 103 104 public static void colLetters(ArrayList<?> cols) { 105 String str = ""; 106 for (int i = 0; (i < cols.size()) && (i < 4); i++) { 107 str = str.concat(Rules.colourLetters.get(cols.get(i))); 108 } 109 labelText(str, new Font("Arial", Font.PLAIN, 40), Color.black, new Delta(Handle.TC, AffineTransform.getTranslateInstance(0, 40))); 102 110 } 103 111 -
applications/editors/josm/plugins/seachart/src/render/Rules.java
r35461 r35483 102 102 bodyColours.put(ColCOL.COL_MAG, new Color(0xf000f0)); 103 103 bodyColours.put(ColCOL.COL_PNK, Color.pink); 104 } 105 106 static final EnumMap<ColCOL, String> colourLetters = new EnumMap<>(ColCOL.class); 107 static { 108 colourLetters.put(ColCOL.COL_UNK, ""); 109 colourLetters.put(ColCOL.COL_WHT, "W"); 110 colourLetters.put(ColCOL.COL_BLK, "B"); 111 colourLetters.put(ColCOL.COL_RED, "R"); 112 colourLetters.put(ColCOL.COL_GRN, "G"); 113 colourLetters.put(ColCOL.COL_BLU, "Bu"); 114 colourLetters.put(ColCOL.COL_YEL, "Y"); 115 colourLetters.put(ColCOL.COL_GRY, "Gr"); 116 colourLetters.put(ColCOL.COL_BRN, "Bn"); 117 colourLetters.put(ColCOL.COL_AMB, "Am"); 118 colourLetters.put(ColCOL.COL_VIO, "Vi"); 119 colourLetters.put(ColCOL.COL_ORG, "Or"); 120 colourLetters.put(ColCOL.COL_MAG, "Mg"); 121 colourLetters.put(ColCOL.COL_PNK, "Pk"); 104 122 } 105 123 … … 1009 1027 break; 1010 1028 } 1029 if (Renderer.zoom >= 15) { 1030 Renderer.colLetters(getAttList(feature.type, Att.COLOUR)); 1031 } 1011 1032 Signals.addSignals(); 1012 1033 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50))); -
applications/editors/josm/plugins/seachart/src/render/Signals.java
r35388 r35483 609 609 cats = (ArrayList<CatLIT>) atts.get(Att.CATLIT).val; 610 610 } 611 str = cats.contains(CatLIT.LIT_DIR) ? "Dir" : "";611 str = (cats.contains(CatLIT.LIT_AIR) || cats.contains(CatLIT.LIT_AERO)) ? "Aero" : cats.contains(CatLIT.LIT_DIR) ? "Dir" : ""; 612 612 str += atts.containsKey(Att.MLTYLT) ? atts.get(Att.MLTYLT).val : ""; 613 613 if (atts.containsKey(Att.LITCHR)) {
Note:
See TracChangeset
for help on using the changeset viewer.