Exemplo n.º 1
0
 protected Pen GetPen(RelevantObjectPreferences preferences)
 {
     return(new Pen {
         Brush = new SolidColorBrush {
             Color = AdjustColor(preferences.Color),
             Opacity = AdjustOpacity(preferences.Opacity)
         },
         DashStyle = preferences.GetDashStyle(),
         Thickness = preferences.Thickness
     });
 }
Exemplo n.º 2
0
 protected Pen GetPenSelected(RelevantObjectPreferences preferences)
 {
     return(new Pen {
         Brush = new SolidColorBrush {
             Color = Color.FromArgb(255, 255, 200, 0),
             Opacity = 1
         },
         DashStyle = DashStyles.Solid,
         Thickness = preferences.Thickness + 2
     });
 }
Exemplo n.º 3
0
 public abstract void DrawYourself(DrawingContext context, CoordinateConverter converter, RelevantObjectPreferences preferences, Pen pen);