Class TreeMapNode
Node (primitive element) of the TreeMap control
Inherited Members
Namespace: FastReport.BG.TreeMap
Assembly: FastReport.BG.dll
Syntax
public class TreeMapNode : HierarchicalNode, IHierarchicalNode, INode, IRecordOwner, IStyleOwner
Constructors
TreeMapNode(TreeMapNode, HierarchicalRecord, TreeMap)
Constructs a new instance of TreeMapNode
Declaration
public TreeMapNode(TreeMapNode parent, HierarchicalRecord record, TreeMap treeMap)
Parameters
Type | Name | Description |
---|---|---|
TreeMapNode | parent | Parent node reference |
HierarchicalRecord | record | Record which node represents |
TreeMap | treeMap | Reference to TreeMap control which owns this node |
Fields
treeMap
TreeMap reference
Declaration
protected TreeMap treeMap
Field Value
Type | Description |
---|---|
TreeMap |
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 TreeMapNodes Children { get; }
Property Value
Type | Description |
---|---|
TreeMapNodes |
ClientRectangle
Bouding rectangle - spacing
Declaration
public virtual Rectangle ClientRectangle { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
Parent
Parent node reference
Declaration
public TreeMapNode Parent { get; }
Property Value
Type | Description |
---|---|
TreeMapNode |
Methods
Build(Rectangle)
Build the node and children layout
Declaration
public void Build(Rectangle r)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | r | Rectangle for the node |
Draw(Graphics)
Draws node on 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 styles.
Declaration
protected virtual void UpdateStyle()