Example #1
0
        protected override void AddToMap(Map map, SymDef symdef)
        {
            TextSymbol sym = new TextSymbol((TextSymDef) symdef, new string[1] { text }, topLeft, 0, 0, TextSymDefHorizAlignment.Default, TextSymDefVertAlignment.Default);

               /*Show size of text
            * PointF[] pts = { topLeft, new PointF(topLeft.X, topLeft.Y - size.Height), new PointF(topLeft.X + size.Width, topLeft.Y - size.Height), new PointF(topLeft.X + size.Width, topLeft.Y), topLeft };
               PointKind[] kinds = { PointKind.Normal, PointKind.Normal, PointKind.Normal, PointKind.Normal, PointKind.Normal };
               SymPathWithHoles path = new SymPathWithHoles(new SymPath(pts, kinds), null);
               AreaSymbol sym = new AreaSymbol((AreaSymDef) symdef, path, 0); */

               map.AddSymbol(sym);
        }
Example #2
0
 // Add a symbol to the map.
 protected abstract void AddToMap(Map map, SymDef symdef);
Example #3
0
 protected override void AddToMap(Map map, SymDef symdef)
 {
     throw new NotImplementedException("Must be overridden");
 }
Example #4
0
        protected override void AddToMap(Map map, SymDef symdef)
        {
            SymPath symPath = CreateSymPath();

            LineSymbol sym = new LineSymbol((LineSymDef)symdef, symPath);
            map.AddSymbol(sym);
        }
Example #5
0
 protected override void AddToMap(Map map, SymDef symdef)
 {
     AreaSymbol sym = new AreaSymbol((AreaSymDef)symdef, path, 0, new PointF());
     map.AddSymbol(sym);
 }
Example #6
0
 protected override void AddToMap(Map map, SymDef symdef)
 {
     PointSymbol sym = new PointSymbol((PointSymDef)symdef, location, orientation, CircleGap.StartsAndStops(gaps));
     map.AddSymbol(sym);
 }
Example #7
0
        protected override void AddToMap(Map map, SymDef symdef)
        {
            SymPath[] gappedPaths = LegGap.SplitPathWithGaps(path, gaps);

            foreach (SymPath p in gappedPaths) {
                LineSymbol sym = new LineSymbol((LineSymDef) symdef, p);
                map.AddSymbol(sym);
            }
        }
Example #8
0
 protected override void AddToMap(Map map, SymDef symdef)
 {
     // Shouldn't be called.
     throw new NotImplementedException();
 }
Example #9
0
 // This override is not needed because we are not using the base implemention of AddToMap.
 protected override void AddToMap(Map map, SymDef symdef)
 {
     throw new NotSupportedException("not supported");
 }
Example #10
0
 protected override void AddToMap(Map map, SymDef symdef)
 {
     throw new NotSupportedException("never needed, so intentionally unimplemented");
 }
 protected override void AddToMap(Map map, SymDef symdef)
 {
     throw new NotSupportedException("never needed, so intentionally unimplemented");
 }