comirva.visu
Class SunburstVisu

java.lang.Object
  extended by java.lang.Thread
      extended by comirva.visu.SunburstVisu
All Implemented Interfaces:
Runnable

public class SunburstVisu
extends Thread

This class implements a Sunburst visualization. To avoid blocking the GUI, it is implemented as thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SunburstVisu(VisuPane vp)
          Constructs a new SunburstVisu.
 
Method Summary
protected  void drawSunburstNodes(SunburstNode sn)
          Draws the nodes of a sunburst given the root node.
 JMenuItem[] getSunburstContextMenu(Point location)
          returns a sunburst visualisation specific context menu.
 void initMouseListener()
          inits the mouse listeners that are needed for this visualisation.
 void run()
          Start drawing the visualization.
protected  void showSunburst()
          Paints a sunburst visualization of a given term occurrence matrix.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SunburstVisu

public SunburstVisu(VisuPane vp)
Constructs a new SunburstVisu.

Parameters:
vp - the VisuPane of CoMIRVA which is responsible for drawing
Method Detail

initMouseListener

public void initMouseListener()
inits the mouse listeners that are needed for this visualisation.


run

public void run()
Start drawing the visualization. Paints a sunburst visualization of a given term occurrence matrix. For detailed information of sunburst visualizations, see "Focus+Context Display and Navigation Techniques for Enhancing Radial, Space-Filling Hierarchy Visualizations" by John Stasko and Eugene Zhang.

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run()

showSunburst

protected void showSunburst()
Paints a sunburst visualization of a given term occurrence matrix. For detailed information of sunburst visualizations, see "Focus+Context Display and Navigation Techniques for Enhancing Radial, Space-Filling Hierarchy Visualizations" by John Stasko and Eugene Zhang.


drawSunburstNodes

protected void drawSunburstNodes(SunburstNode sn)
Draws the nodes of a sunburst given the root node.

Parameters:
sn - a SunburstNode representing the root node of the sunburst

getSunburstContextMenu

public JMenuItem[] getSunburstContextMenu(Point location)
returns a sunburst visualisation specific context menu. The entries of the menu are dependent on which position of the visualisation has been clicked so the MouseEvent parameter must contain the coordinates of the current click which triggered the context menu.

Parameters:
e - the mouse event that triggers context menu display