File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drawing box and connecting them

 
Nimmy
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to draw boxes (inside which I want to write the boxname)independently and connect them using connector(like -> so that I can make a tree structure. I can create tree which look like the windows directory structure. But here I want to drawboxes for each nodename and connect them later.

Is it possible to use JavaScript and accomplish this task?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
draw a box, all you need to do is set the border around your element. The line is tricky since You either have to use images or borders from other elements dynamicaly positioned.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Kathryn",

There aren't may rules that have been put into place here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Nimmy
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please explain this. Do you mean that I can use javascript or DHTML for doing this task? There is one more condition that I should be able to drag and drop this boxes.

Thanks
Kathryn
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kathryn,

My request for you to adjust your display name to JavaRanch standards was not a suggestion. It is a requirement of the JavaRanch. Please adjust your display name as requested in my post prior to your next post.

With regards to your question, HTML and Javascript are not well suited technologies to general drawing. You are limited to what you can fake using images and CSS attributes of rectangular areas. If you need general drawing abilities you may want to investigate alternate technologies, such as Applets.

thanks,
bear
Forum bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic