Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link style (Read 1663 times)
Bob_HL
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Sep 8th, 2011
Link style
Sep 8th, 2011 at 11:21pm
Print Post  
Can you MindFusion create a demo to present different link styles? - different arrow (start & end point), different link pattern (ex. a hollow pipe - double line with empty in side).
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link style
Reply #1 - Sep 9th, 2011 at 6:42am
Print Post  
Links consist of simple line or curve segments and the easiest way I can think of making a link look hollow is by outlining it using a DropShadowEffect:

Code
Select All
link.StrokeThickness = 6;
link.Stroke = Brushes.White;
link.Effect = new DropShadowEffect
{
	BlurRadius = 7,
	Color = Colors.Blue,
	ShadowDepth = 0,
	Opacity = 1
}; 



Another option is to override the DiagramLink.UpdateVisuals method and draw thinner foreground segments over thicker background ones, so that only the outer part of the background remains visible.

Setting arrowhead shapes looks like this:

Code
Select All
link.BaseShape = ArrowHeads.Quill;
link.BaseShapeSize = 20;
link.HeadShape = ArrowHeads.CenteredCircle;
link.HeadShapeSize = 12; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint