Sei sulla pagina 1di 3

FLARE DEPENDENCY GRAPH POPULATED BY XML In this project, we will be creating a flare dependency graph that is populated by xml

that is returned after submitting a form. For an example of the flare dependency graph, please go to http://flare.prefuse.org/apps/dependency_graph The graph will be created using information returned after a form is submitted from the user. The form should consist of a combobox, a text field, and a Submit Button. After submitting the form, XML should be returned in the following format: <?xml version="1.0"?> <RESULTS> <CASE> <NAME></NAME> <LINK></LINK> <DESCRIPTION></DESCRIPTION> <CITATIONS></CITATIONS> <HOLDING></HOLDING> <YEAR></YEAR> </CASE> </RESULTS> For example: After the following XML might be returned from the form: <?xml version="1.0"?> <RESULTS> <CASE> <NAME>Pete</NAME> <LINK>Jeffrey</LINK> <DESCRIPTION>Sample Description</DESCRIPTION> <CITATIONS>Sample Citation</CITATIONS> <HOLDING>Sample Holding</HOLDING> <YEAR>2013</YEAR> </CASE> <CASE> <NAME>John</NAME> <LINK>Jane</LINK> <DESCRIPTION>Sample Description</DESCRIPTION> <CITATIONS>Sample Citation</CITATIONS> <HOLDING>Sample Holding</HOLDING> <YEAR>2010</YEAR>

</CASE> <CASE> <NAME>John</NAME> <LINK>Sean</LINK> <DESCRIPTION>Sample Description</DESCRIPTION> <CITATIONS>Sample Citation</CITATIONS> <HOLDING>Sample Holding</HOLDING> <YEAR>2010</YEAR> </CASE> <CASE> <NAME>Sean</NAME> <LINK>Jeffrey</LINK> <DESCRIPTION>Sample Description</DESCRIPTION> <CITATIONS>Sample Citation</CITATIONS> <HOLDING>Sample Holding</HOLDING> <YEAR>2011</YEAR> </CASE> <CASE> <NAME>Jane</NAME> <LINK>John</LINK> <DESCRIPTION>Sample Description</DESCRIPTION> <CITATIONS>Sample Citation</CITATIONS> <HOLDING>Sample Holding</HOLDING> <YEAR>1998</YEAR> </CASE> <CASE> <NAME>Pete</NAME> <LINK>Sean</LINK> <DESCRIPTION>Sample Description</DESCRIPTION> <CITATIONS>Sample Citation</CITATIONS> <HOLDING>Sample Holding</HOLDING> <YEAR>2013</YEAR> </CASE> </RESULTS> The page should then create a dependency graph that basically looks like the following:

When the dependency graph is created, 1) there should be a connection made from the Name to the Link. 2) the font size for the text should be larger if there are more connections from that name. 3) The more recent the year, the higher it should be on the graph. For example, the year for Pete is 2013, so it should appear higher than Sean who is 2011. 1. If there is a person without a year, then that person should be placed below the people with a year. Next, when a person clicks on a name, two things should happen: The links from that person and to that person should be darkened and the other links should be greyed-out. 2) The name, year, description, citations, and holdings should appear in an html text area to the right of the graph. 3) In the description, there is going to be an html link to only show cases for this issue. When a person clicks on this link, a new page should open that generates XML similar to above and that creates a new dependency graph based on the new information.

Potrebbero piacerti anche