bass.stats
Class ChartThread

java.lang.Object
  extended by java.lang.Thread
      extended by bass.stats.ChartThread
All Implemented Interfaces:
java.lang.Runnable

public class ChartThread
extends java.lang.Thread

Thread for the different kinds of graphs and rankings. Prevents the GUI from freezing once the user requested a graph/ranking.

Author:
Fabian Winkhardt

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  int currentType
           
private  java.lang.String genre
           
private  java.lang.String[] genreArray
           
private  Gui theGui
           
static int TYPE_ACTIVITYCURVE
           
static int TYPE_GENREFREQUENCY_ALL_BANDS
           
static int TYPE_GENREFREQUENCY_USED_BANDS
           
static int TYPE_GENREGROWTH
           
static int TYPE_HYPECURVE
           
static int TYPE_LABELTYPE_BY_ALPHABET
           
static int TYPE_LABELTYPE_BY_FREQUENCY
           
static int TYPE_LONGTAIL
           
static int TYPE_TOP_FANS
           
static int TYPE_TOP_FANS_BY_DAY
           
static int TYPE_TOP_PLAYS
           
static int TYPE_TOP_SINCE
           
static int TYPE_TOP_VIEWS
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ChartThread(int chartType, Gui theGui)
           
 
Method Summary
 java.lang.String[] getGenreArray()
           
 void run()
           
 void setGenre(java.lang.String genre)
           
 void setGenreArray(java.lang.String[] genreArray)
           
 
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

TYPE_LONGTAIL

public static final int TYPE_LONGTAIL
See Also:
Constant Field Values

TYPE_GENREFREQUENCY_ALL_BANDS

public static final int TYPE_GENREFREQUENCY_ALL_BANDS
See Also:
Constant Field Values

TYPE_GENREFREQUENCY_USED_BANDS

public static final int TYPE_GENREFREQUENCY_USED_BANDS
See Also:
Constant Field Values

TYPE_GENREGROWTH

public static final int TYPE_GENREGROWTH
See Also:
Constant Field Values

TYPE_HYPECURVE

public static final int TYPE_HYPECURVE
See Also:
Constant Field Values

TYPE_ACTIVITYCURVE

public static final int TYPE_ACTIVITYCURVE
See Also:
Constant Field Values

TYPE_LABELTYPE_BY_ALPHABET

public static final int TYPE_LABELTYPE_BY_ALPHABET
See Also:
Constant Field Values

TYPE_LABELTYPE_BY_FREQUENCY

public static final int TYPE_LABELTYPE_BY_FREQUENCY
See Also:
Constant Field Values

TYPE_TOP_FANS

public static final int TYPE_TOP_FANS
See Also:
Constant Field Values

TYPE_TOP_VIEWS

public static final int TYPE_TOP_VIEWS
See Also:
Constant Field Values

TYPE_TOP_PLAYS

public static final int TYPE_TOP_PLAYS
See Also:
Constant Field Values

TYPE_TOP_SINCE

public static final int TYPE_TOP_SINCE
See Also:
Constant Field Values

TYPE_TOP_FANS_BY_DAY

public static final int TYPE_TOP_FANS_BY_DAY
See Also:
Constant Field Values

theGui

private Gui theGui

currentType

private int currentType

genreArray

private java.lang.String[] genreArray

genre

private java.lang.String genre
Constructor Detail

ChartThread

public ChartThread(int chartType,
                   Gui theGui)
Method Detail

run

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

getGenreArray

public java.lang.String[] getGenreArray()

setGenreArray

public void setGenreArray(java.lang.String[] genreArray)

setGenre

public void setGenre(java.lang.String genre)