weka.gui.hierarchyvisualizer.HierarchyVisualizer Java Examples

The following examples show how to use weka.gui.hierarchyvisualizer.HierarchyVisualizer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WekaHierarchicalClustering2.java    From Java-Data-Analysis with MIT License 5 votes vote down vote up
public static void displayDendrogram(String graph) {
    JFrame frame = new JFrame("Dendrogram");
    frame.setSize(500, 400);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container pane = frame.getContentPane();
    pane.setLayout(new BorderLayout());
    pane.add(new HierarchyVisualizer(graph));
    frame.setVisible(true);
}
 
Example #2
Source File: APICallClustererMAPO.java    From api-mining with GNU General Public License v3.0 5 votes vote down vote up
public static void showDendrogram(final HierarchicalClusterer clusterer) throws Exception {
	final JFrame mainFrame = new JFrame("Dendrogram");
	mainFrame.setSize(1024, 768);
	mainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
	final Container content = mainFrame.getContentPane();
	content.setLayout(new GridLayout(1, 1));

	final HierarchyVisualizer visualizer = new HierarchyVisualizer(clusterer.graph());
	content.add(visualizer);

	mainFrame.setVisible(true);
}
 
Example #3
Source File: APICallClustererUPMiner.java    From api-mining with GNU General Public License v3.0 5 votes vote down vote up
public static void showDendrogram(final HierarchicalClusterer clusterer) throws Exception {
	final String timeStamp = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(new Date());
	final JFrame mainFrame = new JFrame("Dendrogram " + timeStamp);
	mainFrame.setSize(1024, 768);
	mainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
	final Container content = mainFrame.getContentPane();
	content.setLayout(new GridLayout(1, 1));

	final HierarchyVisualizer visualizer = new HierarchyVisualizer(clusterer.graph());
	content.add(visualizer);

	mainFrame.setVisible(true);
}