|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbass.stats.StatsFactory
public class StatsFactory
Basically responsible for creating the different graphs in statistics section.
| Field Summary | |
|---|---|
static java.awt.GradientPaint |
bgColor
|
static javax.swing.JList |
genreJList
|
static int |
MODE_GENREGROWTH
|
static int |
tempMode
|
static Gui |
thisGui
|
static int |
TOP_FANS
|
static int |
TOP_FPD
|
static int |
TOP_PLAYS
|
static int |
TOP_SINCE
|
static int |
TOP_VIEWS
|
| Constructor Summary | |
|---|---|
StatsFactory()
|
|
| Method Summary | |
|---|---|
static java.awt.Component |
generateActivityCurve(Gui theGui)
Generates the time series chart showing the growth of registered bands at MySpace and the amount of bands that went inactive after registration. |
static java.awt.Component |
generateGenreFrequency(Gui theGui,
java.lang.String mode)
Generates the bar chart based on the amount of bands in every genre |
static java.awt.Component |
generateGenreGrowth(Gui theGui,
java.lang.String[] genreArray)
Generates the time series chart displaying the growth of single genres in comparison |
static java.awt.Component |
generateGenreJList(java.lang.String[] genreArray,
int listMode)
generates a jlist with all genres, adds it into a scrollpane and returns the component |
static java.lang.String |
generateHTML(int mode,
DTO_BandWithFPD[] bands,
java.lang.String genre)
Creates a html formatted string of the given bands, putting them into a ranking table. |
static java.awt.Component |
generateHypeCurve(Gui theGui)
Generates the time series chart based amount of bands/musicians registered per day. |
static java.awt.Component |
generateLabelType(Gui theGui,
java.lang.String mode)
Generates the bar chart showing the label ratio for all bands and single genres |
static java.awt.Component |
generateLongTailChart(Gui theGui)
Generates the pie chart based on the long tail data |
static java.awt.Component |
generateTopBands(Gui theGui,
java.lang.String genre,
int mode)
Generates a ranking based on "mode" for all genres or a specific one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Gui thisGui
public static final int MODE_GENREGROWTH
public static final int TOP_FANS
public static final int TOP_VIEWS
public static final int TOP_PLAYS
public static final int TOP_SINCE
public static final int TOP_FPD
public static int tempMode
public static java.awt.GradientPaint bgColor
public static javax.swing.JList genreJList
| Constructor Detail |
|---|
public StatsFactory()
| Method Detail |
|---|
public static java.awt.Component generateLongTailChart(Gui theGui)
theGui - - used for (re)setting the progress bar
public static java.awt.Component generateGenreFrequency(Gui theGui,
java.lang.String mode)
theGui - - used for (re)setting the progress bar
public static java.awt.Component generateGenreGrowth(Gui theGui,
java.lang.String[] genreArray)
theGui - - used for (re)setting the progress bar
public static java.awt.Component generateLabelType(Gui theGui,
java.lang.String mode)
theGui - - used for (re)setting the progress bar
public static java.awt.Component generateHypeCurve(Gui theGui)
theGui - - used for (re)setting the progress bar
public static java.awt.Component generateActivityCurve(Gui theGui)
theGui - - used for (re)setting the progress bar
public static java.awt.Component generateTopBands(Gui theGui,
java.lang.String genre,
int mode)
theGui - - used for (re)setting the progress countergenre - - the specified genre ("all" for all genres)mode - - the ranking mode (fans, plays, views, membership, friends per day)
public static java.awt.Component generateGenreJList(java.lang.String[] genreArray,
int listMode)
resetAL - the action listener for the reset buttonstartAL - the action listener for the start button
public static java.lang.String generateHTML(int mode,
DTO_BandWithFPD[] bands,
java.lang.String genre)
mode - - The different kinds of rankingbands - - The array of bandsgenre - - The specified genre (or "all genres")
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||