Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Few questions I would like to ask (Read 9920 times)
Achilles
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Apr 23rd, 2009
Few questions I would like to ask
Apr 23rd, 2009 at 7:59am
Print Post  
I have few questions about JDiagram component and I would like to get them clarified.

1. Does JDiagram support nested flows?
Say diagram-flow A has some nodes and diagram-flow B itself is displayed as a single node in flow A.

Diagram-Flow A
---------------
X ---> Y ---> FlowB ----> Z

When the user clicks on FlowB node, a new window/tab is opened and the actual Diagram-Flow B with its nodes is displayed.

Is this supported by JDiagram, How?

2. Is it possible to have JDiagram interact with other web technologies.
For Example
------------
1. Drag & Drop a node from html to JDiagram applet
2. Show a node's property in html table & allow the user to set the node's property from html table.

3. Web based JDiagram release
At present, Jdiagram is a swing based component and need to be used as an applet
in web pages. I'm wondering, Will there be any web based(html/dhtml/ajax) JDiagram release?

4. Individual flows in the same diagram
A single diagram can have more than one flows.
A -> B -> C is one flow
X -> Y -> Z is another flow
These flows are not connected to each other and they are in same diagram.

How can I uniquely identify these individual flows while parsing the diagram.

5. Start & End nodes
Is there a property to identify the start & end node of a flow?

6. Can I add custom properties to a node?
Example :
Node Name - Person
Incoming links from his Manager
Outgoing links to his subordinates

Custom properties : Name, Job Title, Join Date, Performance in %, and Salary.

I really appreciate your help on this.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Few questions I would like to ask
Reply #1 - Apr 23rd, 2009 at 9:31am
Print Post  
1. You could handle the NodeClicked event to open another window to let users edit the embedded diagram. When they close it, call saveTostring and save the result as a Tag of the parent node. When they open it again, call loadFromString to show the saved diagram.

2.1. I think it's possible through the standard Java Swing API. However you will have to override the JDiagramApplet to handle the drag-and-drop events. They are not exposed as JavaScript events at this time.

2.2. This can be done with some event handling.

3. We offer an ASP.NET control that renders the diagram using images and html image maps, and is fully interactive. Unfortunately its frontend can't be used without the ASP.NET backend at this time.

4. As shown here:
http://mindfusion.eu/Forum/YaBB.pl?board=diaglite_disc;action=display;num=123416...

Let me know if you need this as Java code.

5. You could search for nodes whose incomingLinks().size() or ourgoingLinks().size() is zero.

6. You could assign the custom values to the Tag property of items, e.g. as a JSON string. You might as well create your own type derived from ShapeNode and add any properties to it.

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