Changeset 32101 in osm for applications/editors/josm/plugins/seachart/src/symbols/Symbols.java
- Timestamp:
- 2016-03-08T10:10:33+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/symbols/Symbols.java
r32090 r32101 25 25 public static final Color Mline = new Color(0x9a6078); 26 26 public static final Color Msymb = new Color(0xa30075); 27 public static final Color Mtss = new Color(0x 80c480ff, true);27 public static final Color Mtss = new Color(0xc0c480ff, true); 28 28 29 29 public enum Form { 30 BBOX, STRK, COLR, FILL, LINE, RECT, RRCT, ELPS, EARC, PLIN, PGON, RSHP, TEXT, SYMB, P1, P2, H2, H3, H4, H5, V2, V3, D2, D3, D4, B1, S2, S3, S4, C2, X2 30 BBOX, STRK, COLR, FILL, LINE, RECT, RRCT, ELPS, EARC, PLIN, PGON, RSHP, TEXT, SYMB, N1, N2, P1, P2, H2, H3, H4, H5, V2, V3, D2, D3, D4, B1, S2, S3, S4, C2, X2 31 31 } 32 32 … … 67 67 public ArrayList<Color> col; 68 68 69 public Scheme(ArrayList<Color> icol) { 70 pat = new ArrayList<Patt>(); 71 col = icol; 72 } 69 73 public Scheme(ArrayList<Patt> ipat, ArrayList<Color> icol) { 70 74 pat = ipat; … … 233 237 for (Instr patch : (Symbol) item.params) { 234 238 switch (patch.type) { 239 case N1: 240 if (cn > 0) { 241 Symbol s = (Symbol) patch.params; 242 drawSymbol(g2, s, 1.0, 0, 0, new Scheme(cs.col.get(0)), null); 243 } 244 break; 245 case N2: 246 if (cn > 0) { 247 Symbol s = (Symbol) patch.params; 248 drawSymbol(g2, s, 1.0, 0, 0, new Scheme((cn > 1) ? cs.col.get(1) : cs.col.get(0)), null); 249 } 250 break; 235 251 case P1: 236 252 if (cn > 0) { … … 288 304 if (bpat == Patt.B) { 289 305 g2.setPaint(bcol); 306 g2.fill((Path2D.Double) patch.params); 307 } 308 break; 309 case S2: 310 if ((cn > 1) && (pn > 0) && (cs.pat.get(0) == Patt.S)) { 311 g2.setPaint(cs.col.get(1)); 312 g2.fill((Path2D.Double) patch.params); 313 } 314 break; 315 case S3: 316 if ((cn > 2) && (pn > 0) && (cs.pat.get(0) == Patt.S)) { 317 g2.setPaint(cs.col.get(2)); 318 g2.fill((Path2D.Double) patch.params); 319 } 320 break; 321 case S4: 322 if ((cn == 4) && (pn > 0) && (cs.pat.get(0) == Patt.S)) { 323 g2.setPaint(cs.col.get(3)); 290 324 g2.fill((Path2D.Double) patch.params); 291 325 }
Note:
See TracChangeset
for help on using the changeset viewer.
