Ignore:
Timestamp:
2016-03-08T10:10:33+01:00 (10 years ago)
Author:
malcolmh
Message:

[SeaChart] finish notices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/src/symbols/Symbols.java

    r32090 r32101  
    2525        public static final Color Mline = new Color(0x9a6078);
    2626        public static final Color Msymb = new Color(0xa30075);
    27         public static final Color Mtss = new Color(0x80c480ff, true);
     27        public static final Color Mtss = new Color(0xc0c480ff, true);
    2828       
    2929        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
    3131        }
    3232
     
    6767                public ArrayList<Color> col;
    6868
     69                public Scheme(ArrayList<Color> icol) {
     70                        pat = new ArrayList<Patt>();
     71                        col = icol;
     72                }
    6973                public Scheme(ArrayList<Patt> ipat, ArrayList<Color> icol) {
    7074                        pat = ipat;
     
    233237                                                for (Instr patch : (Symbol) item.params) {
    234238                                                        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;
    235251                                                        case P1:
    236252                                                                if (cn > 0) {
     
    288304                                                                if (bpat == Patt.B) {
    289305                                                                        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));
    290324                                                                        g2.fill((Path2D.Double) patch.params);
    291325                                                                }
Note: See TracChangeset for help on using the changeset viewer.