|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.ipk_gatersleben.ag_nw.centilib.plugin.CentiLibPlugin<G,V,E>
G
- Type of the graphsV
- Type of the nodesE
- Type of the edgespublic class CentiLibPlugin<G,V,E>
This class represents a complete instance of CentiLib and it's GUI.
To create it, you need to implement the Interface CentiLibInteractions
which enables
CentiLib to access your data structures. Furthermore two Transformers for the graph names and
node labels are needed.
Furthermore you have to inform CentiLib if a graph changes. That is, if he was
changed or closed or a new graph was opened or focused. Use the appropriate methods to do so.
The GUI (a JTabbedPane) can be accessed with getPanel().
Constructor Summary | |
---|---|
CentiLibPlugin(CentiLibInteractions<G,V,E> plugin,
org.apache.commons.collections15.Transformer<G,String> graphNameTransformer,
org.apache.commons.collections15.Transformer<V,String> nodeLabelTransformer)
|
Method Summary | |
---|---|
Component |
getPanel()
Returns the CentiLib GUI (JTabbedPane). |
void |
graphClosed()
Deletes the current graph and all its values within CentiLib. |
void |
graphClosed(G graph)
Deletes the given graph and all its values within CentiLib. |
void |
graphFocused(G graph)
Sets the given graph in the panel. |
void |
nodesSelected(Collection<V> nodes)
Marks the appropriate entries for the given nodes in the list of centrality values if they exist (Result panel). |
void |
postGraphChanged()
Deletes all computed values of the current graph within CentiLib and removes existing centrality attributes from the nodes, because the values get unreliable. |
void |
postGraphChanged(G graph)
Deletes all computed values of the given graph within CentiLib and removes existing centrality attributes from the nodes, because the values get unreliable. |
void |
preGraphChanged()
Marks the current graph as modified. |
void |
preGraphChanged(G graph)
Marks the given graph as modified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CentiLibPlugin(CentiLibInteractions<G,V,E> plugin, org.apache.commons.collections15.Transformer<G,String> graphNameTransformer, org.apache.commons.collections15.Transformer<V,String> nodeLabelTransformer)
Method Detail |
---|
public Component getPanel()
public void graphFocused(G graph)
graph
- the selected graphpublic void graphClosed()
public void graphClosed(G graph)
graph
- The graph to delete from the cache.public void preGraphChanged()
public void preGraphChanged(G graph)
graph
- The graph that will be changedpublic void postGraphChanged()
public void postGraphChanged(G graph)
graph
- the graph that was changedpublic void nodesSelected(Collection<V> nodes)
nodes
- the nodes that were selected
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |