Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Create HTML image maps (Read 5892 times)
bigsky
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Apr 2nd, 2008
Create HTML image maps
Apr 2nd, 2008 at 11:57am
Print Post  
Hi, please help me !
i know in class Flowchart has method creatImage for create an image but i want to create a HTML image maps....I don't know how to do...please help me.

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create HTML image maps
Reply #1 - Apr 2nd, 2008 at 12:21pm
Print Post  
Hi,

JDiagram comes with the HtmlBuilder class, which lets you create image map corresponding to a diagram image. Call the HtmlBuilder.createImageMap method to get the map HTML code - its AREA elements will describe the diagram elements' shapes.

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


I love YaBB 1G - SP1!

Posts: 5
Joined: Apr 2nd, 2008
Re: Create HTML image maps
Reply #2 - Apr 2nd, 2008 at 5:08pm
Print Post  
Thank Stoyo verymuch
but how could i create HTML map avec each item(box) of flowchat...I want after when it create un image, i click on the item(box) of flowchat(maintenant it's image), it will link to another address on the internet.

merci !
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create HTML image maps
Reply #3 - Apr 2nd, 2008 at 5:39pm
Print Post  
Use the Box.setHyperLink(string url) method - the URL will be assigned to the AREA's HREF attribute. You could also run some client-side script when a box is clicked by setting "javascript : code" as the hyperlink value.

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


I love YaBB 1G - SP1!

Posts: 5
Joined: Apr 2nd, 2008
Re: Create HTML image maps
Reply #4 - Apr 3rd, 2008 at 7:54am
Print Post  
thank you....but i don't know if i can get coordinates of a box.

thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create HTML image maps
Reply #5 - Apr 3rd, 2008 at 8:02am
Print Post  
Call getBounds() if you need to find out item's coordinates.

Stoyan
  
Back to top
 
IP Logged
 
bigsky
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Apr 2nd, 2008
Re: Create HTML image maps
Reply #6 - Apr 3rd, 2008 at 8:12am
Print Post  
i mean that item's coordinates after convert to image.
it's coordinate in the code HTML(AREA's HREF attribute)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Create HTML image maps
Reply #7 - Apr 3rd, 2008 at 8:18am
Print Post  
The HtmlBuilder already sets the AREA's coordinates to match the shapes in the exported image. What else do you need to do with them?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint