/// <summary>${iServer2_Theme_ThemeGraph_constructor_None_D}</summary> public ThemeGraph() { OffsetX = "0.0"; OffsetY = "0.0"; LeaderLineStyle = new ServerStyle(); ; AxesColor = new ServerColor(0, 0, 0); AxesTextStyle = new ServerTextStyle(); GraphTextStyle = new ServerTextStyle(); GraphTextFormat = GraphTextFormat.Value; MinGraphSize = 40.0; MaxGraphSize = 60.0; GraduatedMode = GraduatedMode.Constant; GraphType = GraphType.Pie; }
/// <summary>${iServer2_Theme_ThemeGraphItem_constructor_None_D}</summary> public ThemeGraphItem() { UniformStyle = new ServerStyle(); }
/// <summary>${iServer2_Theme_ThemeUnique_constructor_None_D}</summary> public ThemeUnique() { DefaultStyle = new ServerStyle(); }
/// <summary>${iServer2_Theme_ThemeGraduatedSymbol_constructor_None_D}</summary> public ThemeGraduatedSymbol() { PositiveStyle = new ServerStyle() { MarkerSize = 40 }; }
/// <summary>${iServer2_Theme_ThemeUniqueItem_constructor_None_D}</summary> public ThemeUniqueItem() { Visible = true; Style = new ServerStyle(); }
internal static string ToJson(ServerStyle serverStyle) { if (serverStyle == null) { return null; } string json = "{"; List<string> list = new List<string>(); list.Add(string.Format("\"fillGradientAngle\":{0}", serverStyle.FillGradientAngle)); if (ServerColor.ToJson(serverStyle.FillBackColor) != null) { list.Add(string.Format("\"fillBackColor\":{0}", ServerColor.ToJson(serverStyle.FillBackColor))); } list.Add(string.Format("\"fillBackOpaque\":{0}", serverStyle.FillBackOpaque)); list.Add(string.Format("\"fillGradientOffsetRatioX\":{0}", serverStyle.FillGradientOffsetRatioX)); list.Add(string.Format("\"fillGradientOffsetRatioY\":{0}", serverStyle.FillGradientOffsetRatioY)); if (ServerColor.ToJson(serverStyle.FillForeColor) != null) { list.Add(string.Format("\"fillForeColor\":{0}", ServerColor.ToJson(serverStyle.FillForeColor))); } list.Add(string.Format("\"fillOpaqueRate\":{0}", serverStyle.FillOpaqueRate)); list.Add(string.Format("\"fillSymbolID\":{0}", serverStyle.FillSymbolID)); if (ServerColor.ToJson(serverStyle.LineColor) != null) { list.Add(string.Format("\"lineColor\":{0}", ServerColor.ToJson(serverStyle.LineColor))); } list.Add(string.Format("\"lineSymbolID\":{0}", serverStyle.LineSymbolID)); list.Add(string.Format("\"lineWidth\":{0}", serverStyle.LineWidth)); list.Add(string.Format("\"markerAngle\":{0}", serverStyle.MarkerAngle)); list.Add(string.Format("\"markerSize\":{0}", serverStyle.MarkerSize)); list.Add(string.Format("\"fillGradientMode\":{0}", (int)serverStyle.FillGradientMode)); list.Add(string.Format("\"markerSymbolID\":{0}", serverStyle.MarkerSymbolID)); json += string.Join(",", list.ToArray()); json += "}"; return json; }
/// <summary>${iServer2_ServerStyle_method_FromJson_D}</summary> /// <returns>${iServer2_ServerStyle_method_FromJson_return}</returns> /// <param name="jsonObject">${iServer2_ServerStyle_method_FromJson_param_jsonObject}</param> public static ServerStyle FromJson(JsonObject jsonObject) { if (jsonObject == null) { return null; } ServerStyle result = new ServerStyle() { FillGradientAngle = (double)jsonObject["fillGradientAngle"], FillBackColor = ServerColor.FromJson((JsonObject)jsonObject["fillBackColor"]), FillBackOpaque = (bool)jsonObject["fillBackOpaque"], FillGradientOffsetRatioX = (double)jsonObject["fillGradientOffsetRatioX"], FillGradientOffsetRatioY = (double)jsonObject["fillGradientOffsetRatioY"], FillForeColor = ServerColor.FromJson((JsonObject)jsonObject["fillForeColor"]), FillGradientMode = (FillGradientMode)(int)jsonObject["fillGradientMode"], FillOpaqueRate = (int)jsonObject["fillOpaqueRate"], FillSymbolID = (int)jsonObject["fillSymbolID"], LineColor = ServerColor.FromJson((JsonObject)jsonObject["lineColor"]), LineSymbolID = (int)jsonObject["lineSymbolID"], LineWidth = (double)jsonObject["lineWidth"], MarkerAngle = (double)jsonObject["markerAngle"], MarkerSize = (double)jsonObject["markerSize"], MarkerSymbolID = (int)jsonObject["markerSymbolID"] }; return result; }
/// <summary>${iServer2_Theme_ThemeDotDensity_constructor_None_D}</summary> public ThemeDotDensity() { Style = new ServerStyle() { MarkerSize = 2 }; }