bicliqueviz
Class BiGraph

java.lang.Object
  extended by bicliqueviz.BiGraph

public class BiGraph
extends java.lang.Object

This class represents the bigraph

Author:
Martin Schwartz

Constructor Summary
BiGraph(BiCliqueWin w, java.awt.Dimension d)
           
 
Method Summary
 void changeGraph(edu.uci.ics.jung.graph.Graph<VertexObj,EdgeObj> g)
           
 void clearGraph()
          clears the graph
 edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> createBiclique(java.util.Vector<Biclique> bs)
           
 javax.swing.JList findCommunities(java.util.Set<VertexObj> set)
           
 edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> getGraph()
           
 edu.uci.ics.jung.algorithms.layout.FRLayout<VertexObj,EdgeObj> getGraphLayout()
           
 java.util.Hashtable<IDNodeTypePair,VertexObj> getInfoFile()
           
 java.util.Set<VertexObj> getPickedVertices()
           
 edu.uci.ics.jung.visualization.VisualizationViewer<VertexObj,EdgeObj> getVV()
           
 edu.uci.ics.jung.visualization.GraphZoomScrollPane getZoomPane()
           
 void selectPartOfGraph(edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> g)
           
 void setLabelSize(int s)
           
 void setScaleSize(int d)
           
 void setScaling(boolean b)
           
 void setVertexLocations(int numOfA, int numOfB)
          Sets locations of the vertices in the graph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BiGraph

public BiGraph(BiCliqueWin w,
               java.awt.Dimension d)
Parameters:
w - pointer to the GUI window
d - the dimensions of the panel which will contain the graph
Method Detail

getVV

public edu.uci.ics.jung.visualization.VisualizationViewer<VertexObj,EdgeObj> getVV()
Returns:
the visualisation viewer

getInfoFile

public java.util.Hashtable<IDNodeTypePair,VertexObj> getInfoFile()
Returns:
the info file hash table

clearGraph

public void clearGraph()
clears the graph


getZoomPane

public edu.uci.ics.jung.visualization.GraphZoomScrollPane getZoomPane()
Returns:
the zoom scrollpane

getGraph

public edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> getGraph()
Returns:
the graph object

getGraphLayout

public edu.uci.ics.jung.algorithms.layout.FRLayout<VertexObj,EdgeObj> getGraphLayout()
Returns:
the graph layout

getPickedVertices

public java.util.Set<VertexObj> getPickedVertices()
Returns:
the selected vertices in the graph

findCommunities

public javax.swing.JList findCommunities(java.util.Set<VertexObj> set)
Parameters:
set - the set of selected vertices
Returns:
the list of all communities that contain all selected vertices in them

setLabelSize

public void setLabelSize(int s)
Parameters:
s - size for the labels

setScaling

public void setScaling(boolean b)
Parameters:
b - boolean for if scaling should be set or not

setScaleSize

public void setScaleSize(int d)
Parameters:
d - the size for the scaling

selectPartOfGraph

public void selectPartOfGraph(edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> g)
Parameters:
g - part-graph to be selected

createBiclique

public edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> createBiclique(java.util.Vector<Biclique> bs)
Parameters:
bs - biclique to be converted to a graph object
Returns:
a graph object of the biclique

changeGraph

public void changeGraph(edu.uci.ics.jung.graph.Graph<VertexObj,EdgeObj> g)
Parameters:
g - the new graph to substitute the old one

setVertexLocations

public void setVertexLocations(int numOfA,
                               int numOfB)
Sets locations of the vertices in the graph

Parameters:
numOfA - number of Node A
numOfB - number of Node B