public bool NotifyViewportChanged(IVisibleTableRegion viewport)
                {
                    bool result = false;

                    result |= ViewportSensitiveProjection.NotifyViewportChanged(this.generatorDenominator, viewport);
                    result |= ViewportSensitiveProjection.NotifyViewportChanged(this.generatorNumerator, viewport);
                    return(result);
                }
Exemple #2
0
        /// <summary>
        ///     Notifies the given projection of a viewport change if the
        ///     projection depends on the viewport.
        /// </summary>
        /// <typeparam name="TProjection">
        ///     The <see cref="System.Type"/> being interrogated.
        /// </typeparam>
        /// <param name="self">
        ///     The projection being notified.
        /// </param>
        /// <param name="newViewport">
        ///     The new viewport.
        /// </param>
        public static bool NotifyViewportChanged <TProjection>(
            this TProjection self,
            IVisibleTableRegion newViewport)
            where TProjection : IProjectionDescription
        {
            var casted = self as IViewportSensitiveProjection;

            if (casted != null)
            {
                return(casted.NotifyViewportChanged(newViewport));
            }

            return(false);
        }
Exemple #3
0
 public bool NotifyViewportChanged(IVisibleTableRegion viewport)
 {
     return(ViewportSensitiveProjection.NotifyViewportChanged(this.generator, viewport));
 }
 public bool NotifyViewportChanged(IVisibleTableRegion viewport)
 {
     this.timeRangeColumnGenerator.NotifyViewportChanged(viewport);
     return(true);
 }
 public bool NotifyViewportChanged(IVisibleTableRegion viewport)
 {
     this.ViewPortContainer.VisibleTableRegion = viewport;
     ViewportSensitiveProjection.NotifyViewportChanged(this.Generator, viewport);
     return(true);
 }