/// <summary> /// Creates a SimpleSymbol with the specified color, shape and size. The size is used for /// both the horizontal and vertical directions. /// </summary> /// <param name="color">The color of the symbol</param> /// <param name="shape">The shape of the symbol</param> /// <param name="size">The size of the symbol</param> public SimpleSymbol(Color color, PointShapes shape, double size) { Configure(); _color = color; _pointShape = shape; Size = new Size2D(size, size); }
private void Configure() { base.SymbolType = SymbolTypes.Simple; _color = Global.RandomColor(); _pointShape = PointShapes.Rectangle; }
/// <summary> /// Creates a point symbol with the specified color and shape /// </summary> /// <param name="color">Creates a point symbol with the specified color and shape</param> /// <param name="shape">Creates a point Symbol with the specified shape</param> public SimpleSymbol(Color color, PointShapes shape) { Configure(); _color = color; _pointShape = shape; }
/// <summary> /// Occurs during the randomizing process /// </summary> /// <param name="generator"></param> protected override void OnRandomize(Random generator) { _color = generator.NextColor(); Opacity = generator.NextFloat(); _pointShape = generator.NextEnum<PointShapes>(); base.OnRandomize(generator); }
/// <summary> /// Creates a point symbolizer with one member, and that member is constructed /// based on the values specified. /// </summary> /// <param name="color"></param> /// <param name="shape"></param> /// <param name="size"></param> public PointSymbolizer(Color color, PointShapes shape, double size) { base.Smoothing = true; _symbols = new CopyList<ISymbol>(); ISimpleSymbol ss = new SimpleSymbol(color, shape, size); _symbols.Add(ss); }
/// <summary> /// Creates a simple point category where the symbolizer is based on the simple characteristics. /// The selection symbolizer has the same shape and size, but will be colored cyan. /// </summary> /// <param name="color">The color of the regular symbolizer</param> /// <param name="shape">The shape of the regular symbolizer</param> /// <param name="size">the size of the regular symbolizer</param> public PointCategory(Color color, PointShapes shape, double size) { Symbolizer = new PointSymbolizer(color, shape, size); SelectionSymbolizer = new PointSymbolizer(Color.Cyan, shape, size); }