aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes looking for a graphical representation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "looking for a graphical representation" Watch "looking for a graphical representation" New topic
Author

looking for a graphical representation

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
I am trying to think of a good way to represent graphically a logical framework.
Specifically, it's something like this:

Suppose you have some Strings A, B, C, D, E, F, and another String K which you want to evaluate.
You want to evaluate K like this:
K score is initially 0.
If K contains A or B, add 4 to the score.
If K contains C, add 10 to the score.
If K contains D, E, or F, add 5 to the score.

The program user wants to see a graphic representation of this logic.
I thought of two possible ways to represent this logic graphically.

One way is to put A through F on a table.
In the first row is the number 4, then A and B. In the second row is 10 and C, and in the third row is 5, D, E, and F.

Another way to represent this graphically is to put them in a JTree. The JTree has three nodes named '4', '10', and '5'.
The 4 node contains A and B, the 10 node contains C, and the 5 node contains D, E, and F.

Well, these are the two ways I thought of to represent the logic graphically. Any other ideas?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
Wow, that is a nice program! Thank you. I'll take a close look at it and use some of the main ideas in the program.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: looking for a graphical representation