public CategoryTick(IComparable category, TextBlock label, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle)
   : base("", TextAnchor.__\u003C\u003ECENTER, rotationAnchor, angle)
 {
   CategoryTick categoryTick = this;
   this.category = category;
   this.label = label;
   this.labelAnchor = labelAnchor;
 }
Beispiel #2
0
 public LabelBlock(string text, Font font, Paint paint)
 {
   LabelBlock labelBlock = this;
   this.text = text;
   this.paint = paint;
   this.label = TextUtilities.createTextBlock(text, font, this.paint);
   this.font = font;
   this.toolTipText = (string) null;
   this.urlText = (string) null;
   this.contentAlignmentPoint = TextBlockAnchor.__\u003C\u003ECENTER;
   this.textAnchor = RectangleAnchor.__\u003C\u003ECENTER;
 }
 public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, TextAnchor rotationAnchor, double angle, CategoryLabelWidthType widthType, float widthRatio)
 {
   base.\u002Ector();
   CategoryLabelPosition categoryLabelPosition = this;
   if (categoryAnchor == null)
   {
     string str = "Null 'categoryAnchor' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (labelAnchor == null)
   {
     string str = "Null 'labelAnchor' 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 if (widthType == null)
   {
     string str = "Null 'widthType' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.categoryAnchor = categoryAnchor;
     this.labelAnchor = labelAnchor;
     this.rotationAnchor = rotationAnchor;
     this.angle = angle;
     this.widthType = widthType;
     this.widthRatio = widthRatio;
   }
 }
 public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor, CategoryLabelWidthType widthType, float widthRatio)
   : this(categoryAnchor, labelAnchor, TextAnchor.__\u003C\u003ECENTER, 0.0, widthType, widthRatio)
 {
 }
 public CategoryLabelPosition(RectangleAnchor categoryAnchor, TextBlockAnchor labelAnchor)
   : this(categoryAnchor, labelAnchor, TextAnchor.__\u003C\u003ECENTER, 0.0, CategoryLabelWidthType.__\u003C\u003ECATEGORY, 0.95f)
 {
 }