Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Properly create arrow (Read 1381 times)
ooswald
YaBB Newbies
*
Offline



Posts: 16
Joined: Jun 15th, 2006
Properly create arrow
Aug 15th, 2006 at 6:38am
Print Post  
I have implemented a type that inherits from [b]Arrow[/b] as follows:

[code]public class ConnectorArrow : Arrow {
...
    // Constructor
    public ConnectorArrow(FlowChart parent, Node src, int srcAnchor, Node dest, int destAnchor) : base(parent, src, dest) {
//TODO:handle srcAnchor, destAnchor
    }
...
}[/code]

How do I handle srcAnchor and destAnchor in the constructor so that the two given anchors are properly connected?
In other words: how do I properly implement a function like [b]FlowChart.CreateArrow()[/b] for my own type?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Properly create arrow
Reply #1 - Aug 15th, 2006 at 8:57am
Print Post  
Hi,

Use the FlowChart.Add method and the Arrow.OrgnAnchor and Arrow.DestAnchor properties.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint