wx.Graph.View.INodeAppearance Interface Reference

Inheritance diagram for wx.Graph.View.INodeAppearance:

wx.Graph.View.LabelledNode

List of all members.

Public Member Functions

void Draw (DC dc, ImageList images, Point pos)
ICollection< Point > GetDockingPoints (Point pos)
Size GetSize (DC dc, ImageList images)

Public Attributes

event
ComponentModel.PropertyChangedHandler 
OnChange


Detailed Description

Implementors of this interface provide the data that will be used to display graph nodes.

Member Function Documentation

void wx.Graph.View.INodeAppearance.Draw ( DC  dc,
ImageList  images,
Point  pos 
)

This will be called to draw the node.

Parameters:
dc The device context that shall display the node
pos The upper left position of the free space that has been reserved by the layout algorithm.
images The list of images that is available to display nodes. This can be null if not available.

Implemented in wx.Graph.View.LabelledNode.

ICollection<Point> wx.Graph.View.INodeAppearance.GetDockingPoints ( Point  pos  ) 

If drawn by Draw() at the provided position, this returns a collection of positions that can be used as start or end of drawn edges.

Parameters:
pos 
Returns:

Implemented in wx.Graph.View.LabelledNode.

Size wx.Graph.View.INodeAppearance.GetSize ( DC  dc,
ImageList  images 
)

The size of the node. Layout algorithms will reserve free space of this size.

Parameters:
dc The device context that shall display the node. Use this context to determine text sizes.
images The list of images that is available to display nodes. This can be null if not available.
Returns:

Implemented in wx.Graph.View.LabelledNode.


Member Data Documentation

event ComponentModel.PropertyChangedHandler wx.Graph.View.INodeAppearance.OnChange

Call this if something changed. The graph views will update the display of this node.

Implemented in wx.Graph.View.LabelledNode.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads