Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/28/09 21:21:59 (15 years ago)
Author:
mstoeger
Message:

General housekeeping (#498) Removed some old unused Z-Order values. Replaced some var types by concrete types. Renamed some LineShape properties. Added caching of Pens and Brushes in LineShape and RectangleShape. Put axis tick calculation algorithm into its own class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/HorizontalLineShape.cs

    r1187 r1233  
    11using System.Drawing;
    2 using System.Drawing.Drawing2D;
    32
    43namespace HeuristicLab.Visualization {
    54  public class MinMaxLineShape : WorldShape {
    6     private LineShape minLineShape;
    7     private LineShape maxLineShape;
     5    private readonly LineShape minLineShape;
     6    private readonly LineShape maxLineShape;
    87
    98    /// <summary>
    109    /// Initializes the HorizontalLineShape.
    1110    /// </summary>
    12     /// <param name="z">Z-order</param>
    1311    /// <param name="color">color for the LineShape</param>
    1412    /// <param name="yMin">y value for lower line</param>
     
    1614    /// <param name="thickness">line thickness</param>
    1715    /// <param name="style">line style</param>
    18     public MinMaxLineShape(double yMin, double yMax, double z, Color color, int thickness, DrawingStyle style) {
    19       minLineShape = new LineShape(0, yMin, 1, yMin, z, color, thickness, style);
    20       maxLineShape = new LineShape(0, yMax, 1, yMax, z, color, thickness, style);
     16    public MinMaxLineShape(double yMin, double yMax, Color color, int thickness, DrawingStyle style) {
     17      minLineShape = new LineShape(0, yMin, 1, yMin, color, thickness, style);
     18      maxLineShape = new LineShape(0, yMax, 1, yMax, color, thickness, style);
    2119      shapes.Add(minLineShape);
    2220      shapes.Add(maxLineShape);
Note: See TracChangeset for help on using the changeset viewer.