Class BubbleNode
Node (primitive element) of the Bubble control
Inherited Members
Namespace: FastReport.BG.Bubble
Assembly: FastReport.BG.dll
Syntax
public class BubbleNode : HierarchicalNode, IHierarchicalNode, INode, IRecordOwner, IStyleOwner
Constructors
BubbleNode(BubbleNode, HierarchicalRecord, Bubble)
Constructs a new instance of BubbleNode
Declaration
public BubbleNode(BubbleNode parent, HierarchicalRecord record, Bubble bubble)
Parameters
Type | Name | Description |
---|---|---|
BubbleNode | parent | Parent node reference |
HierarchicalRecord | record | Record which node represents |
Bubble | bubble | Reference to Bubble control which owns this node |
Fields
bubble
Bubble reference
Declaration
protected Bubble bubble
Field Value
Type | Description |
---|---|
Bubble |
circle
Circle.
Declaration
public Circle circle
Field Value
Type | Description |
---|---|
Circle |
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 BubbleNodes Children { get; }
Property Value
Type | Description |
---|---|
BubbleNodes |
ClientRectangle
Bouding rectangle - spacing
Declaration
public virtual Rectangle ClientRectangle { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
Parent
Parent node reference
Declaration
public BubbleNode Parent { get; }
Property Value
Type | Description |
---|---|
BubbleNode |
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 |
HitTest(Point)
Tests that the point belongs to current bubble.
Declaration
public bool HitTest(Point pt)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | pt | Point. |
Returns
Type | Description |
---|---|
System.Boolean |
UpdateStyle()
Update Style.
Declaration
protected virtual void UpdateStyle()