Ejemplo n.º 1
0
 public AxisCore(IAxisView view)
 {
     View        = view;
     CleanFactor = 3;
     Cache       = new Dictionary <double, SeparatorElementCore>();
     LastAxisMax = null;
     LastAxisMin = null;
 }
Ejemplo n.º 2
0
 public AxisCore(IAxisView view)
 {
     View = view;
     CleanFactor = 3;
     Cache = new Dictionary<double, SeparatorElementCore>();
     LastAxisMax = null;
     LastAxisMin = null;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Attach the specified Model and View.
        /// </summary>
        /// <param name="model">The axis model</param>
        /// <param name="view">The axis view</param>
        /// <param name="explorerPresenter">The parent explorer presenter</param>
        public void Attach(object model, object view, ExplorerPresenter explorerPresenter)
        {
            axis      = model as Axis;
            this.view = view as AxisView;
            this.explorerPresenter = explorerPresenter;

            // Trap change event from the model.
            explorerPresenter.CommandHistory.ModelChanged += OnModelChanged;

            // Trap events from the view.
            this.view.TitleChanged    += OnTitleChanged;
            this.view.InvertedChanged += OnInvertedChanged;
            this.view.MinimumChanged  += OnMinimumChanged;
            this.view.MaximumChanged  += OnMaximumChanged;
            this.view.IntervalChanged += OnIntervalChanged;

            // Tell the view to populate the axis.
            PopulateView();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Attach the specified Model and View.
        /// </summary>
        /// <param name="model">The axis model</param>
        /// <param name="view">The axis view</param>
        /// <param name="explorerPresenter">The parent explorer presenter</param>
        public void Attach(object model, object view, ExplorerPresenter explorerPresenter)
        {
            this.axis = model as Axis;
            this.view = view as AxisView;
            this.explorerPresenter = explorerPresenter;

            // Trap change event from the model.
            explorerPresenter.CommandHistory.ModelChanged += this.OnModelChanged;

            // Trap events from the view.
            this.view.TitleChanged += this.OnTitleChanged;
            this.view.InvertedChanged += this.OnInvertedChanged;
            this.view.MinimumChanged += this.OnMinimumChanged;
            this.view.MaximumChanged += this.OnMaximumChanged;
            this.view.IntervalChanged += this.OnIntervalChanged;

            // Tell the view to populate the axis.
            this.PopulateView();
        }
Ejemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="view"></param>
 public WindowAxisCore(IAxisView view) : base(view)
 {
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="LogarithmicAxisCore" /> class.
 /// </summary>
 /// <param name="view">The view.</param>
 public LogarithmicAxisCore(IAxisView view) : base(view)
 {
     CleanFactor = 1.5;
 }