Changeset 9963 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/VisualGenealogyGraphTextLabel.cs
- Timestamp:
- 09/13/13 14:42:38 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/VisualGenealogyGraphTextLabel.cs
r9420 r9963 1 using System; 2 using System.Drawing; 1 using System.Drawing; 3 2 using HeuristicLab.Visualization; 4 3 using Rectangle = HeuristicLab.Visualization.Rectangle; … … 12 11 public Font Font { get { return font; } set { font = value; } } 13 12 14 private Brush brush;15 public Brush Brush { get { return brush; } set { brush = value; } }13 private Brush fontBrush; 14 public Brush FontBrush { get { return fontBrush; } set { fontBrush = value; } } 16 15 17 16 public VisualGenealogyGraphTextLabel(IChart chart, PointD lowerLeft, PointD upperRight) … … 34 33 float fontSize = s.Height; 35 34 font = new Font(font.Name, fontSize, Font.Style, GraphicsUnit.Pixel); 36 graphics.DrawString(text, font, brush, p.X, p.Y);35 graphics.DrawString(text, font, fontBrush, p.X, p.Y); 37 36 } 38 37 39 public EventHandler Update; 40 protected virtual void OnUpdate() { 41 if ((UpdateEnabled) && (Update != null)) { 42 Update(this, new EventArgs()); 38 protected override void OnUpdate() { 39 if ((UpdateEnabled)) { 40 base.OnUpdate(); 43 41 } 44 base.OnUpdate();45 42 } 46 43 }
Note: See TracChangeset
for help on using the changeset viewer.