- Download the Visualizer Package
- Keep the package folder in our project directory or on the classpath
- Import the package in your code
- Go to http://44.195.111.155/ [After December 15, 2023, this IP address will no longer be functional. Individuals seeking access to the Docker container for the web app, in order to host the site, are requested to get in touch with the owners.]
- If you don't have an account, sign-up for one, and then log-in (username is your email).
- Once you’ve logged in, click start a new program, and provide a name for the program and select the type of assignment (self-use).
- Once you’ve clicked create a program, copy the API key shown at the top of the screen.
- Now that you have your API key, go into your java file that you’ll be running tests in. You’ll call Visualizer.Initialize(“yourAPI”) with your API as an input string.
- Go through the Example.java file to learn more about what methods you’ll call to generate your figures.
- To see the visualization just go to the visualization web page and refresh the page. All your visualizations should show up in the tabs you’ve given to each visualization.
This method sets intended data-structure type for the visualizer. Default value is "graph" which is basically just inter-connected nodes. Currently only other data structure type that is available to visualize is "tree". Calling this method with invalid datat structure will reset it to default.
As the name suggests, this method resets the visualizer's target data structure to "graph"
By default the visualization block shows the values of class members having basic data types (int, double, float, String, boolean). To include values (return value of tostring method) in the visualtion block of any other class, we can pass class names as an array of String. If we do not want values of basic data types, we can set discardBasicClass to true.
Adds class to recursively explore for visualizations
Adds to recursively explore for visualization
Clears all the registered classes for recursive visualization
visualizes obj and all of the connected nodes that has datatypes registered for recursive visualization. Step is a string that marks a particular visualization call.
Visualizes all registered objects and all of their connected nodes that has datatypes registered for recursive visualization.
Manually registers an object and it's connected nodes for recursive visualization.
Manually unregister an object from visualization queue. The object might still get visualizaed if one of its ancestor is registered visualization.
Clears the visualization array