示例#1
0
        internal void Init()
        {
            StyleBuilder sb = new StyleBuilder(null, null);

            penStyle       = sb.Parse("pc=blue");
            brushStyle     = sb.Parse("bc=LightGray");
            textStyle      = sb.Parse("fn=Tahoma fz=10");
            selStyle       = sb.Parse("pc=yellow pw=2 pc2=red pds2=dash");
            editLineStyle  = sb.Parse("pc=yellow pw=3 pc2=red");
            editPointStyle = sb.Parse("pc=red");
        }
示例#2
0
 public PenStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
     sbBrush = new BrushStyleBuilder(sb, prefix + "b");
 }
示例#3
0
文件: Text.cs 项目: AlexAbramov/gis
 public TextStyleBuilder(StyleBuilder sb) : base(sb, "")
 {
     sbBrush = new BrushStyleBuilder(sb, "tb");
 }
示例#4
0
文件: Image.cs 项目: AlexAbramov/gis
 public ImageStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
 }
示例#5
0
 public BrushStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
     sbImage = new ImageStyleBuilder(sb, prefix + "i");
 }
示例#6
0
 protected BaseStyleBuilder(StyleBuilder sb, string prefix)
 {
     this.sb     = sb;
     this.prefix = prefix;
 }