Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Create new lanes (Read 15638 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create new lanes
Reply #15 - Feb 28th, 2008 at 10:19am
Print Post  
Hi,

There isn't an id property, but you could use the Z index value to identify a box. It holds true that FlowChart.getItems.get(Z) returns the item whose getZIndex() method returns Z.

You could assign your own identifier using the setTag method, and then use findBox(tag) to get the box with a given tag value.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
PKS
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Feb 2nd, 2008
Re: Create new lanes
Reply #16 - Mar 3rd, 2008 at 11:40am
Print Post  
Hi,

It is nice to use the setTag and getTag methods. Thanks again.

I used :saveFile = xw.writeToString(true); for save the diagram. now i need to pass this string in to javascript. like your demo's. But i am getting javascript error because this string contains lot of line breaks.
Is there any possibility to get the string with out line breaks.

Regards,
PKS.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create new lanes
Reply #17 - Mar 3rd, 2008 at 12:44pm
Print Post  
Hi,

Get this version:
https://mindfusion.org/_temp/jdiag_linebreaks.zip

We have added a boolean lineBreaks parameter to the writeToString method. Call xw.writeToString(true, false) to get a base64 string without the line breaks.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
PKS
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Feb 2nd, 2008
Re: Create new lanes
Reply #18 - Mar 4th, 2008 at 4:28pm
Print Post  
Hi,

It seems good, Thanks for your kind responses.

For the findBox(tag) i can't able to get the box, it shows null all times. Here the code snippet i used:

PageProps props = new PageProps(); props.title="aaaaa2";
flowChart.findBox(props));

Can you give me the solution for this?.

Regards,
PKS.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create new lanes
Reply #19 - Mar 4th, 2008 at 4:56pm
Print Post  
findBox compares its argument with the Tag of boxes by calling the equals() method. If you implement PageProps.equals(object) so that it returns true if the PageProps instances have the same title, findBox() will work for you.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
PKS
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Feb 2nd, 2008
Re: Create new lanes
Reply #20 - Mar 10th, 2008 at 9:19am
Print Post  
Hi,

Thank you, it works fine. Smiley

How can i remove arrows(both incoming & outgoing) from a box.
I would like to create HTML image map from the XML file, which contains the flowChart. Can you explain the process with sample code?.

Thanks in advance.

Regards,
PKS.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create new lanes
Reply #21 - Mar 10th, 2008 at 2:51pm
Print Post  
Hi,

Call the FlowChart.deleteItem() method. If you need to remove all arrows, do that in a loop like this:

while (box.getIncomingArrows().size() > 0)
     fc.deleteItem(box.getIncomingArrows().get(0));

To create an image map that corresponds to the flowchart image, create an instance of the HtmlBuilder class and call its createImageMap method.

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