bicliqueviz
Class BicliqueTreeMenu

java.lang.Object
  extended by bicliqueviz.BicliqueTreeMenu
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.TreeSelectionListener

public class BicliqueTreeMenu
extends java.lang.Object
implements javax.swing.event.TreeSelectionListener

This class represents the tree menu in the GUI

Author:
Martin Schwartz

Constructor Summary
BicliqueTreeMenu(CacheFilesLoader loader, BiGraph g, TabbedPane t1, TabbedPane t2, VertexCommList vcl, BiCliqueWin w)
          Constructor for when files are cached already
BicliqueTreeMenu(java.lang.String sz, java.lang.String bi, BiGraph g, TabbedPane t1, TabbedPane t2, VertexCommList vcl, BiCliqueWin w, ProgWin pw, int minThresA, int minThresB, int maxThresA, int maxThresB)
          Constructor for when files are not cached
 
Method Summary
 boolean changeSorting()
           
 void createCommunityNetwork()
          Creates a window with the community network of the selected fixed k=a,b
 void createOverlapMatrix(ProgWin pw)
          Creates overlap matrix and returns all the communities in the bigraph
 void createTree(ProgWin pw, InfoFile info)
          Creates menu tree
 java.util.Vector<Biclique> getBicliques()
           
 java.util.Vector<java.util.Vector<Biclique>> getBicliquesTree()
           
 java.util.Vector<java.util.TreeSet<Community>> getCommunitiesTree()
           
 javax.swing.JTree getJTree()
           
 int getNumOfCliques()
           
 int getNumOfCliquesExcl()
           
 org.dotuseful.ui.tree.SortedTreeNode getRoot()
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BicliqueTreeMenu

public BicliqueTreeMenu(CacheFilesLoader loader,
                        BiGraph g,
                        TabbedPane t1,
                        TabbedPane t2,
                        VertexCommList vcl,
                        BiCliqueWin w)
Constructor for when files are cached already

Parameters:
loader - pointer to the cache file loader
g - pointer to bigraph object
t1 - pointer to upper tabbed pane in the gui
t2 - pointer to lower tabbed pane in the gui
vcl - pointer to vertex comm list object
w - pointer to GUI window object

BicliqueTreeMenu

public BicliqueTreeMenu(java.lang.String sz,
                        java.lang.String bi,
                        BiGraph g,
                        TabbedPane t1,
                        TabbedPane t2,
                        VertexCommList vcl,
                        BiCliqueWin w,
                        ProgWin pw,
                        int minThresA,
                        int minThresB,
                        int maxThresA,
                        int maxThresB)
Constructor for when files are not cached

Parameters:
sz - Name of the .sz file
bi - Name of the .bi file
g - Pointer to the Bigraph object
t1 - Upper tabbed pane
t2 - Lower tabbed pane
vcl - pointer to vertex comm list object
w - pointer to GUI window object
pw - progress window
minThresA - min. threshold for Node A
minThresB - min. threshold for Node B
maxThresA - max. threshold for Node A
maxThresB - max. threshold for Node B
Method Detail

createTree

public void createTree(ProgWin pw,
                       InfoFile info)
Creates menu tree

Parameters:
pw - progress window
info - info file

getNumOfCliques

public int getNumOfCliques()
Returns:
the number of bicliques in the bigraph

getNumOfCliquesExcl

public int getNumOfCliquesExcl()
Returns:
the number of bicliques excluding k=1,1 in the bigraph

getRoot

public org.dotuseful.ui.tree.SortedTreeNode getRoot()
Returns:
root of tree menu

changeSorting

public boolean changeSorting()

getJTree

public javax.swing.JTree getJTree()
Returns:
JTree in the menu

getCommunitiesTree

public java.util.Vector<java.util.TreeSet<Community>> getCommunitiesTree()
Returns:
all communities in tree format

getBicliquesTree

public java.util.Vector<java.util.Vector<Biclique>> getBicliquesTree()
Returns:
all bicliques in tree format

getBicliques

public java.util.Vector<Biclique> getBicliques()
Returns:
all bicliques

createCommunityNetwork

public void createCommunityNetwork()
Creates a window with the community network of the selected fixed k=a,b


createOverlapMatrix

public void createOverlapMatrix(ProgWin pw)
Creates overlap matrix and returns all the communities in the bigraph

Parameters:
pw - progress window

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener