public AxisCore(IAxisView view) { View = view; CleanFactor = 3; Cache = new Dictionary <double, SeparatorElementCore>(); LastAxisMax = null; LastAxisMin = null; }
public AxisCore(IAxisView view) { View = view; CleanFactor = 3; Cache = new Dictionary<double, SeparatorElementCore>(); LastAxisMax = null; LastAxisMin = null; }
/// <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(); }
/// <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(); }
/// <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; }