private static IScatterSymbol GetScatterSymbol(DeprecatedShape shape, DeprecatedStyle style) { var lm = ScatterSymbolListManager.Instance; ScatterSymbolList list; switch (style) { case DeprecatedStyle.Solid: list = lm.OldSolid; break; case DeprecatedStyle.Open: list = lm.OldOpen; break; case DeprecatedStyle.DotCenter: list = lm.OldDotCenter; break; case DeprecatedStyle.Hollow: list = lm.OldHollow; break; case DeprecatedStyle.Plus: list = lm.OldPlus; break; case DeprecatedStyle.Times: list = lm.OldTimes; break; case DeprecatedStyle.BarHorz: list = lm.OldBarHorz; break; case DeprecatedStyle.BarVert: list = lm.OldBarVert; break; default: throw new NotImplementedException(); } int iShape = (int)shape; if (0 == iShape) { return(new NoSymbol()); } else if (iShape <= 10) { return(list[iShape - 1]); // -1 because in those lists NoSymbol is not included } else { throw new NotImplementedException(); } }
private static IScatterSymbol GetScatterSymbol(DeprecatedShape shape, DeprecatedStyle style) { var lm = ScatterSymbolListManager.Instance; ScatterSymbolList list; switch (style) { case DeprecatedStyle.Solid: list = lm.OldSolid; break; case DeprecatedStyle.Open: list = lm.OldOpen; break; case DeprecatedStyle.DotCenter: list = lm.OldDotCenter; break; case DeprecatedStyle.Hollow: list = lm.OldHollow; break; case DeprecatedStyle.Plus: list = lm.OldPlus; break; case DeprecatedStyle.Times: list = lm.OldTimes; break; case DeprecatedStyle.BarHorz: list = lm.OldBarHorz; break; case DeprecatedStyle.BarVert: list = lm.OldBarVert; break; default: throw new NotImplementedException(); } int iShape = (int)shape; if (0 == iShape) return new NoSymbol(); else if (iShape <= 10) return list[iShape - 1]; // -1 because in those lists NoSymbol is not included else throw new NotImplementedException(); }