SparkNode
Provides the shared tree, layout, and property-change state for spark elements and data points.
Definition
Namespace:Telerik.WinControls.UI.Sparkline
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class SparkNode : PropertyBagObject, IDisposable, INotifyPropertyChanged
Inheritance: objectDisposableObjectPropertyBagObjectSparkNode
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the SparkNode class.
protected SparkNode()
Properties
Gets the index of this node in its owning typed collection.
[Browsable(false)]
public int CollectionIndex { get; }
Gets the index of this node in its parent SparkElement nodes collection.
[Browsable(false)]
public int Index { get; }
Gets a value indicating whether the node is laid-out on the chart scene.
[Browsable(false)]
public bool IsArrangeValid { get; }
Gets a value indicating whether the logical tree this node is part of is loaded.
[Browsable(false)]
public virtual bool IsTreeLoaded { get; }
This actually checks for a valid SparkAreaModel reference and asks whether the area itself is loaded. This value may differ from the current NodeState.
Gets the rectangle (in physical coordinates) where this node resides.
[Browsable(false)]
public RadRect LayoutSlot { get; }
Gets the current state of the node.
[Browsable(false)]
public NodeState NodeState { get; }
Gets the SparkElement where this node resides.
[Browsable(false)]
public SparkElement Parent { get; }
Gets the ISparkElementPresenter instance where this node is visualized.
[Browsable(false)]
public virtual ISparkElementPresenter Presenter { get; }
Gets the spark area whre this node resides.
[Browsable(false)]
public SparkAreaModel SparkArea { get; }
Methods
Clears a property and invokes the changing and changed hooks according to their independent tracking flags. Those hooks dispatch notifications only while the node is loaded; a canceled changing notification prevents the clear.
Delegates an "Invalidate" request to the owning ISparkView instance (if any).
public virtual void Invalidate()
Sets a property and invokes the changing and changed hooks according to their independent tracking flags. Those hooks dispatch notifications only while the node is loaded; a canceled changing notification prevents the update.
public override bool SetValueCore(int key, object value)
The registered property key.
valueobjectThe value to store.
Returns:When either tracking flag is enabled, false if the value is unchanged or the change is canceled, and true if stored. When both flags are disabled, the result of the base implementation.
Overrides:
Changes the height of the current layout slot without arranging the node again.
protected virtual void UpdateLayoutSlotHeight(double newHeight)
The replacement height.
Changes the width of the current layout slot without arranging the node again.
protected virtual void UpdateLayoutSlotWidth(double newWidth)
The replacement width.
Changes the X coordinate of the current layout slot without arranging the node again.
protected virtual void UpdateLayoutSlotX(double newX)
The replacement X coordinate.
Changes the Y coordinate of the current layout slot without arranging the node again.
protected virtual void UpdateLayoutSlotY(double newY)
The replacement Y coordinate.
Events
Occurs when a value of some property has changed.
public event PropertyChangedEventHandler PropertyChanged
Implements: