Пример #1
0
    /// <summary>
    /// Set the member variables to default values. Intended only for use in constructors and deserialization code.
    /// </summary>
    protected virtual void SetMemberVariablesToDefault()
    {
      m_NonPageAreaColor = Color.Gray;
    
      m_PageGroundBrush = new BrushX(Color.LightGray);

      m_PrintableAreaBrush = new BrushX(Color.Snow);

      m_HorizRes  = 300;
    
      m_VertRes = 300;

      m_Zoom  = 0.4f;
    
      // If true, the view is zoomed so that the page fits exactly into the viewing area.</summary>
      m_AutoZoom = true; // if true, the sheet is zoomed as big as possible to fit into window
    
    
      // Number of the currently selected layer (or -1 if no layer is present).</summary>
      m_CurrentLayerNumber = -1;
    
      // Number of the currently selected plot (or -1 if no plot is present on the layer).</summary>
      m_CurrentPlotNumber = -1;
    
      // Currently selected GraphTool.</summary>
      // m_CurrentGraphTool = GraphTools.ObjectPointer;
    
      // A instance of a mouse handler class that currently handles the mouse events..</summary>
      m_MouseState= new ObjectPointerMouseHandler(this);

      

      // This holds a frozen image of the graph during the moving time
      m_FrozenGraph=null;
    }
Пример #2
0
		/// <summary>
		/// Set the member variables to default values. Intended only for use in constructors and deserialization code.
		/// </summary>
		protected virtual void SetMemberVariablesToDefault()
		{
			_nonPageAreaColor = Color.Gray;

			_pageGroundBrush = new BrushX(Color.LightGray);

			_graphAreaBrush = new BrushX(Color.Snow);

			_horizontalResolution = 300;

			_verticalResolution = 300;

			// A instance of a mouse handler class that currently handles the mouse events..</summary>
			_mouseState = new ObjectPointerMouseHandler(this._view);



			// This holds a frozen image of the graph during the moving time
			_cachedGraphImage = null;
		}