Example #1
0
            public override Scale Create(DataValueType valueType)
            {
                CategoryScale categoryScale = new CategoryScale();

                categoryScale.ValueType = valueType;
                return((Scale)categoryScale);
            }
Example #2
0
 public VirtualizedTreeSource(CategoryScale scale, IHierarchyVirtualizationHelper virtualizer)
 {
     this._root        = (Category) new ShadowCategory();
     this._scale       = scale;
     this._virtualizer = virtualizer;
     this._leavesChangedWeakEventListener = new WeakEventListener <CategoryScale.VirtualizedTreeSource, object, EventArgs>(this);
     this._leavesChangedWeakEventListener.OnEventAction  = (Action <CategoryScale.VirtualizedTreeSource, object, EventArgs>)((instance, source, eventArgs) => instance.OnVirtualizerLeavesChanged(source, eventArgs));
     this._leavesChangedWeakEventListener.OnDetachAction = (Action <WeakEventListener <CategoryScale.VirtualizedTreeSource, object, EventArgs> >)(weakEventListener => this._virtualizer.LeavesChanged -= new EventHandler(weakEventListener.OnEvent));
     this._virtualizer.LeavesChanged += new EventHandler(this._leavesChangedWeakEventListener.OnEvent);
 }
Example #3
0
 public DefaultTreeSource(CategoryScale scale)
 {
     this._root              = new Category();
     this._root.Scale        = scale;
     this._root.TreeChanged += new EventHandler <TreeChangedEventArgs>(this._root_TreeChanged);
 }
Example #4
0
 public DefaultBinder(CategoryScale scale)
 {
     this._scale = scale;
 }