There's no "direct" graph support in Java2D, you'd have to write your own. Have you looked at http://www.jgraph.com/ or http://www.jfree.org/jfreechart/ ?
Thanks, Dmitri [EMAIL PROTECTED] wrote:
hi everyone I wonder if I there is a strong and easy to use API to represent Graph that is suitable for my own data structure program. Simply in my program i have built-in linked list of objects called Transaction class each Transaction represents vertex in a graph. Each vertex has two ArrayLists to keep the precedence and next vertices like following: Class Transaction { int id; ArrayList <Transaction> preTransactionList; ArrayList <Transaction> nxtTransactionList; } I don't know if there is a graph representation API in java to pass the vertex (Transaction) and their precedence and next vertices as long as the id (to be labeled in the node) to build a graphically depicted graph. Anyway i may customize my data structure to fit any API. [Message sent by forum member 'mansour_ksa' (mansour_ksa)] http://forums.java.net/jive/thread.jspa?messageID=280681 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".