Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/IPage.cs

    r2768 r4068  
    11using System;
    2 using System.Collections.Generic;
    3 using System.Text;
    42using System.Drawing;
    53
    6 namespace Netron.Diagramming.Core
    7 {
    8     // ----------------------------------------------------------------------
     4namespace Netron.Diagramming.Core {
     5  // ----------------------------------------------------------------------
     6  /// <summary>
     7  /// The interface of a page
     8  /// </summary>
     9  // ----------------------------------------------------------------------
     10  public interface IPage {
     11    #region Events
     12
     13    // ------------------------------------------------------------------
    914    /// <summary>
    10     /// The interface of a page
     15    /// Occurs when an entity is added.
     16    /// <remarks>This event usually is bubbled from one of the
     17    /// layers</remarks>
    1118    /// </summary>
    12     // ----------------------------------------------------------------------
    13     public interface IPage
    14     {
    15         #region Events
     19    // ------------------------------------------------------------------
     20    event EventHandler<EntityEventArgs> OnEntityAdded;
    1621
    17         // ------------------------------------------------------------------
    18         /// <summary>
    19         /// Occurs when an entity is added.
    20         /// <remarks>This event usually is bubbled from one of the
    21         /// layers</remarks>
    22         /// </summary>
    23         // ------------------------------------------------------------------
    24         event EventHandler<EntityEventArgs> OnEntityAdded;
     22    // ------------------------------------------------------------------
     23    /// <summary>
     24    /// Occurs when an entity is removed.
     25    /// <remarks>This event usually is bubbled from one of the
     26    /// layers</remarks>
     27    /// </summary>
     28    // ------------------------------------------------------------------
     29    event EventHandler<EntityEventArgs> OnEntityRemoved;
    2530
    26         // ------------------------------------------------------------------
    27         /// <summary>
    28         /// Occurs when an entity is removed.
    29         /// <remarks>This event usually is bubbled from one of the
    30         /// layers</remarks>
    31         /// </summary>
    32         // ------------------------------------------------------------------
    33         event EventHandler<EntityEventArgs> OnEntityRemoved;
     31    // ------------------------------------------------------------------
     32    /// <summary>
     33    /// Occurs when the page is cleared
     34    /// </summary>
     35    // ------------------------------------------------------------------
     36    event EventHandler OnClear;
    3437
    35         // ------------------------------------------------------------------
    36         /// <summary>
    37         /// Occurs when the page is cleared
    38         /// </summary>
    39         // ------------------------------------------------------------------
    40         event EventHandler OnClear;
     38    // ------------------------------------------------------------------
     39    /// <summary>
     40    /// Occurs when the Ambience has changed
     41    /// </summary>
     42    // ------------------------------------------------------------------
     43    event EventHandler<AmbienceEventArgs> OnAmbienceChanged;
    4144
    42         // ------------------------------------------------------------------
    43         /// <summary>
    44         /// Occurs when the Ambience has changed
    45         /// </summary>
    46         // ------------------------------------------------------------------
    47         event EventHandler<AmbienceEventArgs> OnAmbienceChanged;
     45    #endregion
    4846
    49         #endregion
     47    #region Properties
    5048
    51         #region Properties
     49    // ------------------------------------------------------------------
     50    /// <summary>
     51    /// Gets or sets the Name of this page.
     52    /// </summary>
     53    // ------------------------------------------------------------------
     54    string Name {
     55      get;
     56      set;
     57    }
    5258
    53         // ------------------------------------------------------------------
    54         /// <summary>
    55         /// Gets or sets the Name of this page.
    56         /// </summary>
    57         // ------------------------------------------------------------------
    58         string Name
    59         {
    60             get;
    61             set;
    62         }
     59    // ------------------------------------------------------------------
     60    /// <summary>
     61    /// Gets all the connections in the page.
     62    /// </summary>
     63    // ------------------------------------------------------------------
     64    CollectionBase<IConnection> Connections {
     65      get;
     66    }
    6367
    64         // ------------------------------------------------------------------
    65         /// <summary>
    66         /// Gets all the connections in the page.
    67         /// </summary>
    68         // ------------------------------------------------------------------
    69         CollectionBase<IConnection> Connections
    70         {
    71             get;
    72         }
     68    // ------------------------------------------------------------------
     69    /// <summary>
     70    /// Gets all entities in this page.
     71    /// </summary>
     72    // ------------------------------------------------------------------
     73    CollectionBase<IDiagramEntity> Entities {
     74      get;
     75    }
    7376
    74         // ------------------------------------------------------------------
    75         /// <summary>
    76         /// Gets all entities in this page.
    77         /// </summary>
    78         // ------------------------------------------------------------------
    79         CollectionBase<IDiagramEntity> Entities
    80         {
    81             get;
    82         }
     77    // ------------------------------------------------------------------
     78    /// <summary>
     79    /// Gets all shapes in this page.
     80    /// </summary>
     81    // ------------------------------------------------------------------
     82    CollectionBase<IShape> Shapes {
     83      get;
     84    }
    8385
    84         // ------------------------------------------------------------------
    85         /// <summary>
    86         /// Gets all shapes in this page.
    87         /// </summary>
    88         // ------------------------------------------------------------------
    89         CollectionBase<IShape> Shapes
    90         {
    91             get;
    92         }
     86    // ------------------------------------------------------------------
     87    /// <summary>
     88    /// Gets the layers.
     89    /// </summary>
     90    /// <value>The layers.</value>
     91    // ------------------------------------------------------------------
     92    CollectionBase<ILayer> Layers {
     93      get;
     94    }
    9395
    94         // ------------------------------------------------------------------
    95         /// <summary>
    96         /// Gets the layers.
    97         /// </summary>
    98         /// <value>The layers.</value>
    99         // ------------------------------------------------------------------
    100         CollectionBase<ILayer> Layers
    101         {
    102             get;
    103         }
     96    // ------------------------------------------------------------------
     97    /// <summary>
     98    /// Gets the default layer.
     99    /// </summary>
     100    /// <value>The default layer.</value>
     101    // ------------------------------------------------------------------
     102    ILayer DefaultLayer {
     103      get;
     104    }
    104105
    105         // ------------------------------------------------------------------
    106         /// <summary>
    107         /// Gets the default layer.
    108         /// </summary>
    109         /// <value>The default layer.</value>
    110         // ------------------------------------------------------------------
    111         ILayer DefaultLayer
    112         {
    113             get;
    114         }
     106    // ------------------------------------------------------------------
     107    /// <summary>
     108    /// Gets the ambience.
     109    /// </summary>
     110    /// <value>The ambience.</value>
     111    // ------------------------------------------------------------------
     112    Ambience Ambience {
     113      get;
     114    }
    115115
    116         // ------------------------------------------------------------------
    117         /// <summary>
    118         /// Gets the ambience.
    119         /// </summary>
    120         /// <value>The ambience.</value>
    121         // ------------------------------------------------------------------
    122         Ambience Ambience
    123         {
    124             get;
    125         }
     116    // ------------------------------------------------------------------
     117    /// <summary>
     118    /// Gets a reference to the model
     119    /// </summary>
     120    // ------------------------------------------------------------------
     121    IModel Model {
     122      get;
     123      set;
     124    }
    126125
    127         // ------------------------------------------------------------------
    128         /// <summary>
    129         /// Gets a reference to the model
    130         /// </summary>
    131         // ------------------------------------------------------------------
    132         IModel Model
    133         {
    134             get;
    135             set;
    136         }
     126    // ------------------------------------------------------------------
     127    /// <summary>
     128    /// Gets or sets the scaling factor of this page.
     129    /// </summary>
     130    // ------------------------------------------------------------------
     131    SizeF Magnification {
     132      get;
     133      set;
     134    }
    137135
    138         // ------------------------------------------------------------------
    139         /// <summary>
    140         /// Gets or sets the scaling factor of this page.
    141         /// </summary>
    142         // ------------------------------------------------------------------
    143         SizeF Magnification
    144         {
    145             get;
    146             set;
    147         }
     136    // ------------------------------------------------------------------
     137    /// <summary>
     138    /// Gets or sets the origin of this page.
     139    /// </summary>
     140    // ------------------------------------------------------------------
     141    Point Origin {
     142      get;
     143      set;
     144    }
    148145
    149         // ------------------------------------------------------------------
    150         /// <summary>
    151         /// Gets or sets the origin of this page.
    152         /// </summary>
    153         // ------------------------------------------------------------------
    154         Point Origin
    155         {
    156             get;
    157             set;
    158         }
     146    // ------------------------------------------------------------------
     147    /// <summary>
     148    /// Gets the page bounds, taking into account landscape and page
     149    /// settings (for printing).
     150    /// </summary>
     151    // ------------------------------------------------------------------
     152    RectangleF Bounds {
     153      get;
     154    }
    159155
    160         // ------------------------------------------------------------------
    161         /// <summary>
    162         /// Gets the page bounds, taking into account landscape and page
    163         /// settings (for printing).
    164         /// </summary>
    165         // ------------------------------------------------------------------
    166         RectangleF Bounds
    167         {
    168             get;
    169         }
     156    #endregion
    170157
    171         #endregion
     158    // ------------------------------------------------------------------
     159    /// <summary>
     160    /// Gets the layer that has the entity specified.  If the entity
     161    /// specified could not be found, 'null' is returned.
     162    /// </summary>
     163    /// <param name="entity">IDiagramEntity</param>
     164    /// <returns>ILayer</returns>
     165    // ------------------------------------------------------------------
     166    ILayer GetLayer(IDiagramEntity entity);
    172167
    173         // ------------------------------------------------------------------
    174         /// <summary>
    175         /// Gets the layer that has the entity specified.  If the entity
    176         /// specified could not be found, 'null' is returned.
    177         /// </summary>
    178         /// <param name="entity">IDiagramEntity</param>
    179         /// <returns>ILayer</returns>
    180         // ------------------------------------------------------------------
    181         ILayer GetLayer(IDiagramEntity entity);
     168    // ------------------------------------------------------------------
     169    /// <summary>
     170    /// Paints the page to the drawing surface specified.
     171    /// </summary>
     172    /// <param name="g">Graphics</param>
     173    /// <param name="showGrid">bool</param>
     174    // ------------------------------------------------------------------
     175    void Paint(Graphics g, bool showGrid);
    182176
    183         // ------------------------------------------------------------------
    184         /// <summary>
    185         /// Paints the page to the drawing surface specified.
    186         /// </summary>
    187         /// <param name="g">Graphics</param>
    188         /// <param name="showGrid">bool</param>
    189         // ------------------------------------------------------------------
    190         void Paint(Graphics g, bool showGrid);
    191        
    192     }
     177  }
    193178}
Note: See TracChangeset for help on using the changeset viewer.