Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/PointMarkers/ShapePointMarker.cs @ 12503

Last change on this file since 12503 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 1.4 KB
Line 
1using System.Windows;
2using System.Windows.Media;
3
4namespace Microsoft.Research.DynamicDataDisplay.PointMarkers
5{
6    /// <summary>Abstract class that extends PointMarker and contains
7    /// marker property as Pen, Brush and Size</summary>
8  public abstract class ShapePointMarker : PointMarker {
9    /// <summary>Size of marker in points</summary>
10    public double Size {
11      get { return (double)GetValue(SizeProperty); }
12      set { SetValue(SizeProperty, value); }
13    }
14
15    public static readonly DependencyProperty SizeProperty =
16      DependencyProperty.Register(
17        "Size",
18        typeof(double),
19        typeof(ShapePointMarker),
20        new FrameworkPropertyMetadata(5.0));
21
22
23    /// <summary>Pen to outline marker</summary>
24    public Pen Pen {
25      get { return (Pen)GetValue(PenProperty); }
26      set { SetValue(PenProperty, value); }
27    }
28
29    public static readonly DependencyProperty PenProperty =
30      DependencyProperty.Register(
31        "Pen",
32        typeof(Pen),
33        typeof(ShapePointMarker),
34        new FrameworkPropertyMetadata(null));
35
36
37    public Brush Fill {
38      get { return (Brush)GetValue(FillProperty); }
39      set { SetValue(FillProperty, value); }
40    }
41
42    public static readonly DependencyProperty FillProperty =
43      DependencyProperty.Register(
44        "Fill",
45        typeof(Brush),
46        typeof(ShapePointMarker),
47        new FrameworkPropertyMetadata(Brushes.Red));
48  }
49}
Note: See TracBrowser for help on using the repository browser.