Class SunburstNode
Node (primitive element) of the Sunburst control
Inherited Members
Namespace: FastReport.BG.Sunburst
Assembly: FastReport.BG.dll
Syntax
public class SunburstNode : HierarchicalNode, IHierarchicalNode, INode, IRecordOwner, IStyleOwnerConstructors
SunburstNode(SunburstNode, HierarchicalRecord, Sunburst)
Construct a new SunburstNode instance
Declaration
public SunburstNode(SunburstNode parent, HierarchicalRecord record, Sunburst sunburst)Parameters
| Type | Name | Description | 
|---|---|---|
| SunburstNode | parent | Parent node reference | 
| HierarchicalRecord | record | Record which node represents | 
| Sunburst | sunburst | Reference to owner Sunburst control | 
Fields
sunburst
Reference to the Sunburst control which own this node
Declaration
protected Sunburst sunburstField Value
| Type | Description | 
|---|---|
| Sunburst | 
Properties
Bounds
Bounding rectangle
Declaration
public override Rectangle Bounds { get; }Property Value
| Type | Description | 
|---|---|
| System.Drawing.Rectangle | 
Overrides
Children
Collection of children nodes
Declaration
public SunburstNodes Children { get; }Property Value
| Type | Description | 
|---|---|
| SunburstNodes | 
DrawStyle
Style which is used to Draw the node
Declaration
protected virtual Style DrawStyle { get; }Property Value
| Type | Description | 
|---|---|
| Style | 
Geometry
Geometry which was used to layout this node
Declaration
public SunburstGeometry Geometry { get; }Property Value
| Type | Description | 
|---|---|
| SunburstGeometry | 
Parent
Reference to parent node
Declaration
public SunburstNode Parent { get; }Property Value
| Type | Description | 
|---|---|
| SunburstNode | 
Path
GraphicsPath of the node figure
Declaration
public GraphicsPath Path { get; }Property Value
| Type | Description | 
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | 
Methods
Build(SunburstGeometry)
Build the node and children layout
Declaration
public virtual void Build(SunburstGeometry geometry)Parameters
| Type | Name | Description | 
|---|---|---|
| SunburstGeometry | geometry | Geometry for the doughnut sector of the node | 
Draw(Graphics)
Draws node on the graphic context
Declaration
public override void Draw(Graphics g)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.Graphics | g | Graphic context | 
Overrides
GetNodeAt(Point)
Get node at the given location
Declaration
public override HierarchicalNode GetNodeAt(Point pt)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Drawing.Point | pt | Location to search for a node | 
Returns
| Type | Description | 
|---|---|
| HierarchicalNode | found node or null | 
Overrides
GetPaletteColor(Int32)
Get color from the color palette for the child at index
Declaration
public virtual Color GetPaletteColor(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | Index of child | 
Returns
| Type | Description | 
|---|---|
| System.Drawing.Color | Color for the node | 
UpdateStyle()
Updates Style.
Declaration
protected virtual void UpdateStyle()