Пример #1
0
 public ItemLabelPosition(ItemLabelAnchor itemLabelAnchor, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
 {
   base.\u002Ector();
   ItemLabelPosition itemLabelPosition = this;
   if (itemLabelAnchor == null)
   {
     string str = "Null 'itemLabelAnchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (textAnchor == null)
   {
     string str = "Null 'textAnchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (rotationAnchor == null)
   {
     string str = "Null 'rotationAnchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.itemLabelAnchor = itemLabelAnchor;
     this.textAnchor = textAnchor;
     this.rotationAnchor = rotationAnchor;
     this.angle = angle;
   }
 }
Пример #2
0
 public ItemLabelPosition(ItemLabelAnchor itemLabelAnchor, TextAnchor textAnchor)
   : this(itemLabelAnchor, textAnchor, TextAnchor.__\u003C\u003ECENTER, 0.0)
 {
 }