Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/PointMarkers/ShapeElementPointMarker.cs @ 13777

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

#2283 added GUI and charts; fixed MCTS

File size: 2.3 KB
Line 
1using System;
2using System.Windows;
3using System.Windows.Media;
4
5namespace Microsoft.Research.DynamicDataDisplay.PointMarkers
6{
7    /// <summary>Abstract class that extends ElementPointMarker and contains
8    /// marker property as Pen, Brush and Size</summary>
9  public abstract class ShapeElementPointMarker : ElementPointMarker {
10    /// <summary>Size of marker in points</summary>
11    public double Size {
12      get { return (double)GetValue(SizeProperty); }
13      set { SetValue(SizeProperty, value); }
14    }
15
16    public static readonly DependencyProperty SizeProperty =
17      DependencyProperty.Register(
18        "Size",
19        typeof(double),
20        typeof(ShapeElementPointMarker),
21        new FrameworkPropertyMetadata(5.0));
22
23        /// <summary>Tooltip to show when cursor on over</summary>
24        public string ToolTipText
25        {
26            get { return (string)GetValue(ToolTipTextProperty); }
27            set { SetValue(ToolTipTextProperty, value); }
28        }
29
30        public static readonly DependencyProperty ToolTipTextProperty =
31            DependencyProperty.Register(
32              "ToolTipText",
33              typeof(string),
34              typeof(ShapeElementPointMarker),
35              new FrameworkPropertyMetadata(String.Empty));
36
37    /// <summary>Pen to outline marker</summary>
38    public Pen Pen {
39      get { return (Pen)GetValue(PenProperty); }
40      set { SetValue(PenProperty, value); }
41    }
42
43    public static readonly DependencyProperty PenProperty =
44      DependencyProperty.Register(
45        "Pen",
46        typeof(Pen),
47        typeof(ShapeElementPointMarker),
48        new FrameworkPropertyMetadata(null));
49
50
51    public Brush Brush {
52      get { return (Brush)GetValue(BrushProperty); }
53      set { SetValue(BrushProperty, value); }
54    }
55
56    public static readonly DependencyProperty BrushProperty =
57      DependencyProperty.Register(
58        "Brush",
59        typeof(Brush),
60        typeof(ShapeElementPointMarker),
61        new FrameworkPropertyMetadata(Brushes.Red));
62
63    public Brush Fill
64    {
65      get { return (Brush)GetValue(FillProperty); }
66      set { SetValue(FillProperty, value); }
67    }
68
69    public static readonly DependencyProperty FillProperty =
70      DependencyProperty.Register(
71        "Fill",
72        typeof(Brush),
73        typeof(ShapeElementPointMarker),
74        new FrameworkPropertyMetadata(Brushes.Red));
75
76
77  }
78}
Note: See TracBrowser for help on using the repository browser.