Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/13/13 14:42:38 (11 years ago)
Author:
bburlacu
Message:

#1772: Merged changes from the trunk and other branches. Added new ExtendedSymbolicExpressionTreeCanvas control for the visual exploration of tree genealogies. Reorganized some files and folders.

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;
     1using System.Drawing;
    32using HeuristicLab.Visualization;
    43using Rectangle = HeuristicLab.Visualization.Rectangle;
     
    1211    public Font Font { get { return font; } set { font = value; } }
    1312
    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; } }
    1615
    1716    public VisualGenealogyGraphTextLabel(IChart chart, PointD lowerLeft, PointD upperRight)
     
    3433      float fontSize = s.Height;
    3534      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);
    3736    }
    3837
    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();
    4341      }
    44       base.OnUpdate();
    4542    }
    4643  }
Note: See TracChangeset for help on using the changeset viewer.