Exemplo n.º 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";
 }
Exemplo n.º 2
0
        private int LabelPlacementMethod_ToIndex(LabelPlacementMethod labelPlacement)
        {
            switch (labelPlacement)
            {
            case LabelPlacementMethod.Centroid:
                return(0);

            case LabelPlacementMethod.Center:
                return(1);

            case LabelPlacementMethod.InteriorPoint:
                return(2);

            default:
                return(2);
            }
        }
Exemplo n.º 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";
 }