bass.visualisation.view
Class VisCalculationThread

java.lang.Object
  extended by java.lang.Thread
      extended by bass.visualisation.view.VisCalculationThread
All Implemented Interfaces:
java.lang.Runnable

public class VisCalculationThread
extends java.lang.Thread

calculation thread for visualization content

Version:
0.1
Author:
Thomas Klein

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  int bandId
           
private  boolean conBetweenFriends
           
private  boolean firstLevelFriendsConnection
           
private  int hierarchy
           
private  int minFListSize
           
private  boolean showNames
           
private  GraphCanvas theCanvas
           
private  Gui theGui
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
VisCalculationThread(GraphCanvas theCanvas, int bandId, int minFListSize, int hierarchy, boolean conBetweenFriends, boolean firstLevelFriendsConnection, boolean showNames, Gui theGui)
          generates a new thread object with the specified values for generating a visualization after generating you just need to call the start() method to start the calculation
 
Method Summary
 void run()
           
 
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
 

Field Detail

bandId

private int bandId

minFListSize

private int minFListSize

hierarchy

private int hierarchy

conBetweenFriends

private boolean conBetweenFriends

firstLevelFriendsConnection

private boolean firstLevelFriendsConnection

showNames

private boolean showNames

theCanvas

private GraphCanvas theCanvas

theGui

private Gui theGui
Constructor Detail

VisCalculationThread

public VisCalculationThread(GraphCanvas theCanvas,
                            int bandId,
                            int minFListSize,
                            int hierarchy,
                            boolean conBetweenFriends,
                            boolean firstLevelFriendsConnection,
                            boolean showNames,
                            Gui theGui)
generates a new thread object with the specified values for generating a visualization after generating you just need to call the start() method to start the calculation

Parameters:
theCanvas - the reference to the GraphCanvas in the Gui
bandId - the bandId for the visualization
minFListSize - the min friendlist size for friends to be drawn in the vis
hierarchy - the vis depth
conBetweenFriends - set to true if you want connections between friends to drawn
firstLevelFriendsConnection - enable/disable first level friends list connections
showNames - set to true to show the band names
theGui - reference to the GUI so progressbar & status texts can be set
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread