private static void BuildAnnotations(WidgetBase widget) { widget.Annotations.AutoScale = true; var annGroup = new AnnotationGroupElement { X = 175, Y = 105 }; var textAnnotation = new TextAnnotation { X = 0, Y = 0, Label = "Current status" }; textAnnotation.Color = "666666"; textAnnotation.FontAttr.FontSize = "11"; textAnnotation.Align = FusionTextAlign.Center; annGroup.Add(textAnnotation); widget.Annotations.Add(annGroup); annGroup = new AnnotationGroupElement() { Id = "GrpRED", X = 175, Y = 125, Visible = false }; var circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "FFBFBF,FF0000" }; circle.Border.Show = false; annGroup.Add(circle); widget.Annotations.Add(annGroup); annGroup = new AnnotationGroupElement() { Id = "GrpYELLOW", X = 175, Y = 125, Visible = false }; circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "FFFF00,BBBB00" }; circle.Border.Show = false; annGroup.Add(circle); widget.Annotations.Add(annGroup); annGroup = new AnnotationGroupElement() { Id = "GrpGREEN", X = 175, Y = 125, Visible = false }; circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "00FF00,339933" }; circle.Border.Show = false; annGroup.Add(circle); widget.Annotations.Add(annGroup); }
private static void BuildAnnotations(WidgetBase widget) { widget.Annotations.AutoScale = true; var annGroup = new AnnotationGroupElement { X = 175, Y = 105 }; var textAnnotation = new TextAnnotation { X = 0, Y = 0, Label = "Current status" }; textAnnotation.Color = "666666"; textAnnotation.FontAttr.FontSize = "11"; textAnnotation.Align = FusionTextAlign.Center; annGroup.Add(textAnnotation); widget.Annotations.Add(annGroup); annGroup = new AnnotationGroupElement() { Id = "GrpRED", X = 175, Y = 125, Visible = false }; var circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "FFBFBF,FF0000" }; circle.Border.Show = false; annGroup.Add(circle); widget.Annotations.Add(annGroup); annGroup = new AnnotationGroupElement() { Id = "GrpYELLOW", X = 175, Y = 125, Visible = false }; circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "FFFF00,BBBB00" }; circle.Border.Show = false; annGroup.Add(circle); widget.Annotations.Add(annGroup); annGroup = new AnnotationGroupElement() { Id = "GrpGREEN", X = 175, Y = 125, Visible = false }; circle = new CircleAnnotation { X = 0, Y = 0, Radius = 10, FillPattern = FillMethod.Radial, Color = "00FF00,339933" }; circle.Border.Show = false; annGroup.Add(circle); widget.Annotations.Add(annGroup); }
public virtual AnnotationGroupElement AddAnnotationGroup(double? x, double? y) { var annotationGroup = new AnnotationGroupElement { X = x, Y = y, }; Annotations.Add(annotationGroup); return annotationGroup; }