示例#1
0
 /// <summary>
 /// Creates a new instance of TextSymbolizer
 /// </summary>
 public LabelSymbolizer()
 {
     _angle                      = 0;
     UseAngle                    = false;
     LabelAngleField             = null;
     UseLabelAngleField          = false;
     _borderEnabled              = false;
     _borderColor                = Color.Black;
     _backColor                  = Color.AntiqueWhite;
     _backColorEnabled           = false;
     _dropShadowColor            = Color.FromArgb(20, 0, 0, 0);
     _dropShadowEnabled          = false;
     _dropShadowGeographicOffset = new Coordinate(0, 0);
     _dropShadowPixelOffset      = new PointF(2F, 2F);
     _fontSize                   = 10F;
     _fontFamily                 = "Arial Unicode MS";
     _fontStyle                  = FontStyle.Regular;
     _fontColor                  = Color.Black;
     _haloColor                  = Color.White;
     _haloEnabled                = false;
     _scaleMode                  = ScaleMode.Symbolic;
     _labelPlacementMethod       = LabelPlacementMethod.Centroid;
     _partsLabelingMethod        = PartLabelingMethod.LabelLargestPart;
     _preventCollisions          = true;
     _priorityField              = "FID";
 }
示例#2
0
        private int PartLabelingMethod_ToIndex(PartLabelingMethod partLabeling)
        {
            switch (partLabeling)
            {
            case PartLabelingMethod.LabelAllParts:
                return(0);

            case PartLabelingMethod.LabelLargestPart:
                return(1);

            default:
                return(1);
            }
        }
示例#3
0
 /// <summary>
 /// Creates a new instance of TextSymbolizer
 /// </summary>
 public LabelSymbolizer()
 {
     _angle = 0;
     UseAngle = false;
     LabelAngleField = null;
     UseLabelAngleField = false;
     _borderEnabled = false;
     _borderColor = Color.Black;
     _backColor = Color.AntiqueWhite;
     _backColorEnabled = false;
     _dropShadowColor = Color.FromArgb(20, 0, 0, 0);
     _dropShadowEnabled = false;
     _dropShadowGeographicOffset = new Coordinate(0, 0);
     _dropShadowPixelOffset = new PointF(2F, 2F);
     _fontSize = 10F;
     _fontFamily = "Arial Unicode MS";
     _fontStyle = FontStyle.Regular;
     _fontColor = Color.Black;
     _haloColor = Color.White;
     _haloEnabled = false;
     _scaleMode = ScaleMode.Symbolic;
     _labelPlacementMethod = LabelPlacementMethod.Centroid;
     _partsLabelingMethod = PartLabelingMethod.LabelLargestPart;
     _preventCollisions = true;
     _priorityField = "FID";
 }