Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ShapeNode Color (Read 2394 times)
jcjanz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Aug 27th, 2009
ShapeNode Color
Sep 6th, 2009 at 10:57pm
Print Post  
It's possible draw Shape area of my ShapeLibrary in one color and decorations (line, ellipse, etc) in other color?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode Color
Reply #1 - Sep 7th, 2009 at 8:14am
Print Post  
It's possible by using the shape-element constructors that take color and dash-style parameters:

Code
Select All
Shape myShape = new Shape(Shapes.Rectangle.Outline,
	new ElementTemplate[] { new LineTemplate(0, 0, 100, 100, Color.Red, DashStyle.Solid, 0) },
	null, FillMode.Winding, "myShape");

diagram.Factory.CreateShapeNode(10, 10, 100, 100, myShape);
 



When specified as arguments, the element's color and style override the one se through the ShapeNode.Pen property.

You could also set the pen values in a shape-library file using the "color", "dash-style" and "width" attributes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode Color
Reply #2 - Sep 7th, 2009 at 8:24am
Print Post  
I haven't noticed you are using the Java version... Unfortunately this feature is not supported yet in JDiagram. We'll try to implement it later this week.

Stoyan
  
Back to top
 
IP Logged
 
jcjanz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Aug 27th, 2009
Re: ShapeNode Color
Reply #3 - Sep 7th, 2009 at 2:10pm
Print Post  
I am testing Java version, I will wait news.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint