public StiEllipseIndicatorGeom(RectangleF rect, StiBrush background, StiBrush borderBrush, float borderWidth) { this.Rect = rect; this.Background = background; this.BorderBrush = borderBrush; this.BorderWidth = borderWidth; }
public StiRectangleGaugeGeom(RectangleF rect, StiBrush background, StiBrush borderBrush, float borderWidth) { this.Rect = rect; this.Background = background; this.BorderBrush = borderBrush; this.BorderWidth = borderWidth; }
public StiGraphicsPathGaugeGeom(RectangleF rect, PointF startPoint, StiBrush background, StiBrush borderBrush, float borderWidth) { this.Rect = rect; this.StartPoint = startPoint; this.Background = background; this.BorderBrush = borderBrush; this.BorderWidth = borderWidth; this.StartPoint = startPoint; }
public StiPieGaugeGeom(RectangleF rect, StiBrush background, StiBrush borderBrush, float borderWidth, float startAngle, float sweepAngle) { this.rect = rect; this.background = background; this.borderBrush = borderBrush; this.borderWidth = borderWidth; this.startAngle = startAngle; this.sweepAngle = sweepAngle; }
public static StiBrush Brush(JProperty prop) { if (prop.Value is JValue) { return(Brush((string)((JValue)prop.Value).Value)); } else { return(StiBrush.LoadFromJson((JObject)prop.Value)); } }
public StiRoundedRectangleGaugeGeom(RectangleF rect, StiBrush background, StiBrush borderBrush, float borderWidth, int leftTop, int rightTop, int rightBottom, int leftBottom) { this.Rect = rect; this.Background = background; this.BorderBrush = borderBrush; this.BorderWidth = borderWidth; this.LeftTop = leftTop; this.RightTop = rightTop; this.RightBottom = rightBottom; this.LeftBottom = leftBottom; }
public StiGraphicsArcGeometryGaugeGeom(RectangleF rect, StiBrush background, StiBrush borderBrush, float borderWidth, float startAngle, float sweepAngle, float startWidth, float endWidth) { this.rect = rect; this.background = background; this.borderBrush = borderBrush; this.borderWidth = borderWidth; this.startAngle = startAngle; this.sweepAngle = sweepAngle; this.startWidth = startWidth; this.endWidth = endWidth; }
public StiRadialRangeGaugeGeom(RectangleF rect, StiBrush background, StiBrush borderBrush, float borderWidth, PointF centerPoint, float startAngle, float sweepAngle, float radius1, float radius2, float radius3, float radius4) { this.rect = rect; this.background = background; this.borderBrush = borderBrush; this.borderWidth = borderWidth; this.centerPoint = centerPoint; this.startAngle = startAngle; this.sweepAngle = sweepAngle; this.radius1 = radius1; this.radius2 = radius2; this.radius3 = radius3; this.radius4 = radius4; }
public StiTextGaugeGeom(string text, Font font, StiBrush foreground, RectangleF rect, StringFormat sf) { this.Text = text; this.Font = font; this.Foreground = foreground; this.Rect = rect; if (sf == null) { sf = new StringFormat(); sf.Alignment = StringAlignment.Center; sf.LineAlignment = StringAlignment.Center; sf.FormatFlags = StringFormatFlags.NoWrap; } this.StringFormat = sf; }
public static string JBrush(StiBrush brush, StiBrush defaultBrush = null) { var builder = new StringBuilder(); #region StiSolidBrush if (brush is StiSolidBrush) { var solid = (StiSolidBrush)brush; builder.Append("solid:"); // Color builder.Append(JColor(solid.Color, Color.Transparent)); } #endregion #region StiEmptyBrush else if (brush is StiEmptyBrush) { builder.Append("empty"); } #endregion #region StiGlareBrush else if (brush is StiGlareBrush) { var glare = (StiGlareBrush)brush; builder.Append("glare:"); // StartColor builder.Append(JColor(glare.StartColor, Color.Black)); builder.Append(":"); // EndColor builder.Append(JColor(glare.EndColor, Color.White)); builder.Append(":"); // Angle if (glare.Angle != 0.0d) { builder.Append(glare.Angle); } builder.Append(":"); // Focus if (glare.Focus != 0.5f) { builder.Append(glare.Focus); } builder.Append(":"); // Scale if (glare.Scale != 1.0f) { builder.Append(glare.Scale); } } #endregion #region StiGlassBrush else if (brush is StiGlassBrush) { var glass = (StiGlassBrush)brush; builder.Append("glass:"); // Color builder.Append(JColor(glass.Color, Color.Silver)); builder.Append(":"); // Angle if (glass.DrawHatch) { builder.Append(glass.DrawHatch); } builder.Append(":"); // Focus if (glass.Blend != 0.2f) { builder.Append(glass.Blend); } } #endregion #region StiGradientBrush else if (brush is StiGradientBrush) { var gradient = (StiGradientBrush)brush; builder.Append("gradient:"); // StartColor builder.Append(JColor(gradient.StartColor, Color.Black)); builder.Append(":"); // EndColor builder.Append(JColor(gradient.EndColor, Color.White)); builder.Append(":"); // Angle if (gradient.Angle != 0.0d) { builder.Append(gradient.Angle); } } #endregion #region StiHatchBrush else if (brush is StiHatchBrush) { var hatch = (StiHatchBrush)brush; builder.Append("hatch:"); // BackColor builder.Append(JColor(hatch.BackColor, Color.Black)); builder.Append(":"); // ForeColor builder.Append(JColor(hatch.ForeColor, Color.White)); builder.Append(":"); // BackwardDiagonal if (hatch.Style != HatchStyle.BackwardDiagonal) { builder.Append(hatch.Style); } } #endregion return(builder.ToString()); }