Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Is it possible to write outside of DiagramNode (Read 2532 times)
RickSalut
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Location: CANADA
Joined: Dec 10th, 2014
Is it possible to write outside of DiagramNode
Jul 10th, 2015 at 7:37pm
Print Post  
Hi,

I'm trying to do something and before I waste lot of time on it, I'd like to be sure it is doable.

I currently have diagrams with DiagramNodes that are shaped, colored, labeled differently and I would like to add extra information outside (but attached to, if possible) of the node itself.

These "labels" would be located near the external upper right corner of the node with different text color and a transparent bacgkground.

I think the attache picture is gonna make it easier to understand.

So my questions are:
1. Is it possible to do such a thing?
2. How?

Thank's a lot.

Eric
  

graph_time.png ( 41 KB | 134 Downloads )
graph_time.png
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is it possible to write outside of DiagramNode
Reply #1 - Jul 13th, 2015 at 9:01am
Print Post  
Hi,

You could display the extra information using additional ShapeNode attached to the main node. E.g. set the label node's Transparent property to true to hide its geometry and display only text, set Locked = true to prevent users from selecting and modifying it, and call attachTo method to group label with main node.

Another way to implement this is via custom node class that overrides draw and getRepaintRect methods to respectively draw the additional text and include its boundaries in area repainted when nodes are modified.

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