Ignore:
Timestamp:
2013-01-10T00:56:38+01:00 (13 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/symbols/Topmarks.java

    r29126 r29185  
    1313import java.awt.Color;
    1414import java.awt.Rectangle;
     15import java.awt.geom.AffineTransform;
    1516import java.awt.geom.Ellipse2D;
    1617import java.awt.geom.Line2D;
    1718import java.awt.geom.Path2D;
    1819import java.util.ArrayList;
    19 
    20 import symbols.Symbols.Instr;
    21 import symbols.Symbols.Prim;
     20import java.util.EnumMap;
     21
     22import s57.S57val.*;
     23import symbols.Symbols.*;
    2224
    2325public class Topmarks {
     
    226228                TopX.add(new Instr(Prim.PLIN, p));
    227229        }
     230       
     231        public static final EnumMap<BoySHP, Delta> Buoys = new EnumMap<BoySHP, Delta>(BoySHP.class);
     232        static {
     233                Buoys.put(BoySHP.BOY_PILR, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 31.5, -95.0)));
     234                Buoys.put(BoySHP.BOY_SPAR, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 31.5, -95.0)));
     235                Buoys.put(BoySHP.BOY_CAN, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
     236                Buoys.put(BoySHP.BOY_CONE, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
     237                Buoys.put(BoySHP.BOY_SPHR, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
     238                Buoys.put(BoySHP.BOY_BARL, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
     239                Buoys.put(BoySHP.BOY_SUPR, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -42.0)));
     240                Buoys.put(BoySHP.BOY_ICE, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -25.0)));
     241        }
     242        public static final Delta Floats = new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -70.0));
     243
    228244}
Note: See TracChangeset for help on using the changeset viewer.