de.hattrickorganizer.tools
Class HelperWrapper

java.lang.Object
  extended by de.hattrickorganizer.tools.HelperWrapper
All Implemented Interfaces:
IHelper

public class HelperWrapper
extends java.lang.Object
implements IHelper

DOCUMENT ME!

Author:
thomas.werth

Method Summary
 void addTempSpieler(ISpieler spieler)
          TODO Missing Method Documentation
 java.lang.String[] convertTimeMillisToFormatString(double[] timewerte)
          TODO Missing Method Documentation
 void copyArray2Vector(java.lang.Object[] src, java.util.Vector dest)
          TODO Missing Method Documentation
 void copyVector2Array(java.util.Vector src, java.lang.Object[] dest)
          TODO Missing Method Documentation
 IHTCalendar createEconomyCalendar()
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
 IHTCalendar createEconomyCalendar(java.util.Date date)
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
 IHTCalendar createEconomyCalendar(IHOMiniModel model)
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
 IHTCalendar createEconomyCalendar(IHOMiniModel model, java.util.Date date)
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
 IHTCalendar createEconomyCalendar(java.sql.Timestamp timestamp)
          Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.
 IHTCalendar createGlobalCalendar()
          Creates a HTCalendar to calculate global (Swedish) values.
 IHTCalendar createGlobalCalendar(java.util.Date date)
          Creates a HTCalendar to calculate global (Swedish) values and presets it with he specified date a date.
 javax.swing.DefaultComboBoxModel createListModel(java.util.Vector vector)
          TODO Missing Method Documentation
 ISpieler createSpielerFromText(java.lang.String text)
          TODO Missing Method Documentation
 IHTCalendar createTrainingCalendar()
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
 IHTCalendar createTrainingCalendar(java.util.Date date)
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
 IHTCalendar createTrainingCalendar(IHOMiniModel model)
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
 IHTCalendar createTrainingCalendar(IHOMiniModel model, java.util.Date date)
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
 IHTCalendar createTrainingCalendar(java.sql.Timestamp timestamp)
          Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.
 java.lang.String decodeStringFromDatabase(java.lang.String text)
          TODO Missing Method Documentation
 java.lang.String deleteEscapeSequences(java.lang.String text)
          TODO Missing Method Documentation
 boolean downloadMatchData(int matchID)
          downloads all match related data and stores it in Database
 java.lang.String encodeString4Database(java.lang.String text)
          TODO Missing Method Documentation
 boolean existsMatchInDB(int matchID)
          checkes wheater matchdata is already stored in db or not
 int[] generateIntArray(java.lang.String text)
          TODO Missing Method Documentation
 java.lang.String[] generateStringArray(java.lang.String werte, char trenner)
          TODO Missing Method Documentation
 java.awt.Color getColor4SpielHighlight(int typ, int subtyp)
          TODO Missing Method Documentation
 java.util.Date getHattrickDate(java.lang.String string)
          TODO Missing Method Documentation
 int getHTSeason(java.util.Date date)
          Get HT-Season of a given date (using the economy calendar)
 int getHTSeason(java.util.Date date, boolean useTrainingCalendar)
          Get HT-Season of a given date
 int getHTSeason(java.sql.Timestamp timestamp)
          Get HT-Season of a given date (using the economy calendar)
 int getHTSeason(java.sql.Timestamp timestamp, boolean useTrainingCalendar)
          Get HT-Season of a given date
 int getHTWeek(java.util.Date date)
          Get HT-Week of a given date (using the economy calendar)
 int getHTWeek(java.util.Date date, boolean useTrainingCalendar)
          Get HT-Week of a given date
 int getHTWeek(java.sql.Timestamp timestamp)
          Get HT-Week of a given date (using the economy calendar)
 int getHTWeek(java.sql.Timestamp timestamp, boolean useTrainingCalendar)
          Get HT-Week of a given date
 javax.swing.ImageIcon getImage4Position(int posid, byte taktik)
          TODO Missing Method Documentation
 javax.swing.ImageIcon getImageIcon4Country(int country)
          TODO Missing Method Documentation
 javax.swing.ImageIcon getImageIcon4Spezialitaet(int wert)
          TODO Missing Method Documentation
 javax.swing.ImageIcon getImageIcon4SpielHighlight(int typ, int subtyp)
          TODO Missing Method Documentation
 javax.swing.ImageIcon getImageIcon4Spieltyp(int spieltyp)
          TODO Missing Method Documentation
 javax.swing.ImageIcon getImageIcon4Veraenderung(int wert)
          TODO Missing Method Documentation
 javax.swing.ImageIcon getImageIcon4Wetter(int wert)
          TODO Missing Method Documentation
 javax.swing.ImageIcon getImageIcon4WetterEffekt(int wert)
          TODO Missing Method Documentation
 int getLanguageID()
          TODO Missing Method Documentation
 java.lang.String getLanguageName()
          TODO Missing Method Documentation
 java.util.Calendar getLastTrainingDate(java.util.Date skillupDate, java.util.Date refTrainingDate)
          TODO Missing Method Documentation
 IMatchHelper getMatchHelper()
          Returns a match helper instance
 IMP3Player getMP3Player()
          Returns an IMP3Player.
 java.lang.String getNameForAggressivness(int value)
          TODO Missing Method Documentation
 java.lang.String getNameForBewertung(int value, boolean showNumber, boolean isMatch)
          TODO Missing Method Documentation
 java.lang.String getNameForCharacter(int value)
          TODO Missing Method Documentation
 java.lang.String getNameForConfidence(int value)
          TODO Missing Method Documentation
 java.lang.String getNameForGentleness(int value)
          TODO Missing Method Documentation
 java.lang.String getNameForMatchTyp(int typ)
          TODO Missing Method Documentation
 java.lang.String getNameForPosition(byte value)
          TODO Missing Method Documentation
 java.lang.String getNameForSkill(int value, boolean showNumber)
          TODO Missing Method Documentation
 java.lang.String getNameForSpeciality(int value)
          TODO Missing Method Documentation
 java.lang.String getNameForTaktik(int typ)
          TODO Missing Method Documentation
 java.lang.String getNameForTeamorder(int typ)
          TODO Missing Method Documentation
 java.lang.String getNameForTeamspirit(int value)
          TODO Missing Method Documentation
 java.lang.String getNameForTraining(int value)
          TODO Missing Method Documentation
 java.util.Vector getPlugins()
          TODO Missing Method Documentation
 int getPosition(int hoposcode)
          Utility Method that returns the field position from the HO Position Code (hoposcode) It is impossible to make difference between left and right so always the left position is returned
 java.lang.String getTooltiptext4SpielHighlight(int typ, int subtyp)
          TODO Missing Method Documentation
 void importHRF()
          TODO Missing Method Documentation
 java.lang.String insertEscapeSequences(java.lang.String text)
          TODO Missing Method Documentation
static HelperWrapper instance()
          TODO Missing Method Documentation
 boolean isDevVersion()
          Returns true if a development version
 boolean isUserMatch(java.lang.String matchID)
          TODO Missing Method Documentation
 java.awt.image.BufferedImage loadImage(java.lang.String datei)
          TODO Missing Method Documentation
 java.awt.Image makeColorTransparent(java.awt.Image im, java.awt.Color color)
          TODO Missing Method Documentation
 java.awt.Image makeColorTransparent(java.awt.Image im, int minr, int ming, int minb, int maxr, int maxg, int maxb)
          TODO Missing Method Documentation
 void openUrlInUserBRowser(java.lang.String url)
          TODO Missing Method Documentation
 java.sql.Timestamp parseDate(java.lang.String date)
          TODO Missing Method Documentation
 float round(double wert, int nachkommastellen)
          TODO Missing Method Documentation
 void showMessage(java.awt.Component parent, java.lang.String message, java.lang.String titel, int typ)
          TODO Missing Method Documentation
 int[][] sortintArray(int[][] toSort, int spaltenindex)
          TODO Missing Method Documentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static HelperWrapper instance()
TODO Missing Method Documentation

Returns:
TODO Missing Return Method Documentation

getMatchHelper

public IMatchHelper getMatchHelper()
Returns a match helper instance

Specified by:
getMatchHelper in interface IHelper
Returns:
an instance of the match helper class

getColor4SpielHighlight

public java.awt.Color getColor4SpielHighlight(int typ,
                                              int subtyp)
TODO Missing Method Documentation

Specified by:
getColor4SpielHighlight in interface IHelper
Parameters:
typ - TODO Missing Method Parameter Documentation
subtyp - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getHattrickDate

public java.util.Date getHattrickDate(java.lang.String string)
                               throws java.text.ParseException
TODO Missing Method Documentation

Specified by:
getHattrickDate in interface IHelper
Parameters:
string - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation
Throws:
java.text.ParseException - TODO Missing Method Exception Documentation

getImage4Position

public javax.swing.ImageIcon getImage4Position(int posid,
                                               byte taktik)
TODO Missing Method Documentation

Specified by:
getImage4Position in interface IHelper
Parameters:
posid - TODO Missing Method Parameter Documentation
taktik - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Country

public javax.swing.ImageIcon getImageIcon4Country(int country)
TODO Missing Method Documentation

Specified by:
getImageIcon4Country in interface IHelper
Parameters:
country - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Spezialitaet

public javax.swing.ImageIcon getImageIcon4Spezialitaet(int wert)
TODO Missing Method Documentation

Specified by:
getImageIcon4Spezialitaet in interface IHelper
Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4SpielHighlight

public javax.swing.ImageIcon getImageIcon4SpielHighlight(int typ,
                                                         int subtyp)
TODO Missing Method Documentation

Specified by:
getImageIcon4SpielHighlight in interface IHelper
Parameters:
typ - TODO Missing Method Parameter Documentation
subtyp - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Spieltyp

public javax.swing.ImageIcon getImageIcon4Spieltyp(int spieltyp)
TODO Missing Method Documentation

Specified by:
getImageIcon4Spieltyp in interface IHelper
Parameters:
spieltyp - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Veraenderung

public javax.swing.ImageIcon getImageIcon4Veraenderung(int wert)
TODO Missing Method Documentation

Specified by:
getImageIcon4Veraenderung in interface IHelper
Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Wetter

public javax.swing.ImageIcon getImageIcon4Wetter(int wert)
TODO Missing Method Documentation

Specified by:
getImageIcon4Wetter in interface IHelper
Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4WetterEffekt

public javax.swing.ImageIcon getImageIcon4WetterEffekt(int wert)
TODO Missing Method Documentation

Specified by:
getImageIcon4WetterEffekt in interface IHelper
Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getLanguageID

public int getLanguageID()
TODO Missing Method Documentation

Specified by:
getLanguageID in interface IHelper
Returns:
TODO Missing Return Method Documentation

getLanguageName

public java.lang.String getLanguageName()
TODO Missing Method Documentation

Specified by:
getLanguageName in interface IHelper
Returns:
TODO Missing Return Method Documentation

getLastTrainingDate

public java.util.Calendar getLastTrainingDate(java.util.Date skillupDate,
                                              java.util.Date refTrainingDate)
TODO Missing Method Documentation

Specified by:
getLastTrainingDate in interface IHelper
Parameters:
skillupDate - TODO Missing Method Parameter Documentation
refTrainingDate - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForAggressivness

public java.lang.String getNameForAggressivness(int value)
TODO Missing Method Documentation

Specified by:
getNameForAggressivness in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForBewertung

public java.lang.String getNameForBewertung(int value,
                                            boolean showNumber,
                                            boolean isMatch)
TODO Missing Method Documentation

Specified by:
getNameForBewertung in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
showNumber - TODO Missing Method Parameter Documentation
isMatch - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForCharacter

public java.lang.String getNameForCharacter(int value)
TODO Missing Method Documentation

Specified by:
getNameForCharacter in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForConfidence

public java.lang.String getNameForConfidence(int value)
TODO Missing Method Documentation

Specified by:
getNameForConfidence in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForGentleness

public java.lang.String getNameForGentleness(int value)
TODO Missing Method Documentation

Specified by:
getNameForGentleness in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForMatchTyp

public java.lang.String getNameForMatchTyp(int typ)
TODO Missing Method Documentation

Specified by:
getNameForMatchTyp in interface IHelper
Parameters:
typ - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForPosition

public java.lang.String getNameForPosition(byte value)
TODO Missing Method Documentation

Specified by:
getNameForPosition in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForSkill

public java.lang.String getNameForSkill(int value,
                                        boolean showNumber)
TODO Missing Method Documentation

Specified by:
getNameForSkill in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
showNumber - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForSpeciality

public java.lang.String getNameForSpeciality(int value)
TODO Missing Method Documentation

Specified by:
getNameForSpeciality in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForTaktik

public java.lang.String getNameForTaktik(int typ)
TODO Missing Method Documentation

Specified by:
getNameForTaktik in interface IHelper
Parameters:
typ - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForTeamorder

public java.lang.String getNameForTeamorder(int typ)
TODO Missing Method Documentation

Specified by:
getNameForTeamorder in interface IHelper
Parameters:
typ - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForTeamspirit

public java.lang.String getNameForTeamspirit(int value)
TODO Missing Method Documentation

Specified by:
getNameForTeamspirit in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getNameForTraining

public java.lang.String getNameForTraining(int value)
TODO Missing Method Documentation

Specified by:
getNameForTraining in interface IHelper
Parameters:
value - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getPlugins

public java.util.Vector getPlugins()
TODO Missing Method Documentation

Specified by:
getPlugins in interface IHelper
Returns:
TODO Missing Return Method Documentation

getPosition

public int getPosition(int hoposcode)
Utility Method that returns the field position from the HO Position Code (hoposcode) It is impossible to make difference between left and right so always the left position is returned

Specified by:
getPosition in interface IHelper
Parameters:
hoposcode -
Returns:
the field position

getTooltiptext4SpielHighlight

public java.lang.String getTooltiptext4SpielHighlight(int typ,
                                                      int subtyp)
TODO Missing Method Documentation

Specified by:
getTooltiptext4SpielHighlight in interface IHelper
Parameters:
typ - TODO Missing Method Parameter Documentation
subtyp - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

isUserMatch

public boolean isUserMatch(java.lang.String matchID)
TODO Missing Method Documentation

Specified by:
isUserMatch in interface IHelper
Parameters:
matchID - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

addTempSpieler

public void addTempSpieler(ISpieler spieler)
TODO Missing Method Documentation

Specified by:
addTempSpieler in interface IHelper
Parameters:
spieler - TODO Missing Method Parameter Documentation

convertTimeMillisToFormatString

public java.lang.String[] convertTimeMillisToFormatString(double[] timewerte)
TODO Missing Method Documentation

Specified by:
convertTimeMillisToFormatString in interface IHelper
Parameters:
timewerte - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

copyArray2Vector

public void copyArray2Vector(java.lang.Object[] src,
                             java.util.Vector dest)
TODO Missing Method Documentation

Specified by:
copyArray2Vector in interface IHelper
Parameters:
src - TODO Missing Method Parameter Documentation
dest - TODO Missing Method Parameter Documentation

copyVector2Array

public void copyVector2Array(java.util.Vector src,
                             java.lang.Object[] dest)
TODO Missing Method Documentation

Specified by:
copyVector2Array in interface IHelper
Parameters:
src - TODO Missing Method Parameter Documentation
dest - TODO Missing Method Parameter Documentation

createListModel

public javax.swing.DefaultComboBoxModel createListModel(java.util.Vector vector)
TODO Missing Method Documentation

Specified by:
createListModel in interface IHelper
Parameters:
vector - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

createSpielerFromText

public ISpieler createSpielerFromText(java.lang.String text)
                               throws java.lang.Exception
TODO Missing Method Documentation

Specified by:
createSpielerFromText in interface IHelper
Parameters:
text - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation
Throws:
java.lang.Exception - TODO Missing Method Exception Documentation

decodeStringFromDatabase

public java.lang.String decodeStringFromDatabase(java.lang.String text)
TODO Missing Method Documentation

Specified by:
decodeStringFromDatabase in interface IHelper
Parameters:
text - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

deleteEscapeSequences

public java.lang.String deleteEscapeSequences(java.lang.String text)
TODO Missing Method Documentation

Specified by:
deleteEscapeSequences in interface IHelper
Parameters:
text - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

downloadMatchData

public boolean downloadMatchData(int matchID)
downloads all match related data and stores it in Database

Specified by:
downloadMatchData in interface IHelper
Parameters:
matchID - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

encodeString4Database

public java.lang.String encodeString4Database(java.lang.String text)
TODO Missing Method Documentation

Specified by:
encodeString4Database in interface IHelper
Parameters:
text - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

existsMatchInDB

public boolean existsMatchInDB(int matchID)
checkes wheater matchdata is already stored in db or not

Specified by:
existsMatchInDB in interface IHelper
Parameters:
matchID - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

generateIntArray

public int[] generateIntArray(java.lang.String text)
TODO Missing Method Documentation

Specified by:
generateIntArray in interface IHelper
Parameters:
text - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

generateStringArray

public java.lang.String[] generateStringArray(java.lang.String werte,
                                              char trenner)
TODO Missing Method Documentation

Specified by:
generateStringArray in interface IHelper
Parameters:
werte - TODO Missing Method Parameter Documentation
trenner - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

importHRF

public void importHRF()
TODO Missing Method Documentation

Specified by:
importHRF in interface IHelper

insertEscapeSequences

public java.lang.String insertEscapeSequences(java.lang.String text)
TODO Missing Method Documentation

Specified by:
insertEscapeSequences in interface IHelper
Parameters:
text - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

loadImage

public java.awt.image.BufferedImage loadImage(java.lang.String datei)
TODO Missing Method Documentation

Specified by:
loadImage in interface IHelper
Parameters:
datei - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

makeColorTransparent

public java.awt.Image makeColorTransparent(java.awt.Image im,
                                           java.awt.Color color)
TODO Missing Method Documentation

Specified by:
makeColorTransparent in interface IHelper
Parameters:
im - TODO Missing Method Parameter Documentation
color - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

makeColorTransparent

public java.awt.Image makeColorTransparent(java.awt.Image im,
                                           int minr,
                                           int ming,
                                           int minb,
                                           int maxr,
                                           int maxg,
                                           int maxb)
TODO Missing Method Documentation

Specified by:
makeColorTransparent in interface IHelper
Parameters:
im - TODO Missing Method Parameter Documentation
minr - TODO Missing Method Parameter Documentation
ming - TODO Missing Method Parameter Documentation
minb - TODO Missing Method Parameter Documentation
maxr - TODO Missing Method Parameter Documentation
maxg - TODO Missing Method Parameter Documentation
maxb - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

openUrlInUserBRowser

public void openUrlInUserBRowser(java.lang.String url)
TODO Missing Method Documentation

Specified by:
openUrlInUserBRowser in interface IHelper
Parameters:
url - TODO Missing Method Parameter Documentation

parseDate

public java.sql.Timestamp parseDate(java.lang.String date)
TODO Missing Method Documentation

Specified by:
parseDate in interface IHelper
Parameters:
date - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

round

public float round(double wert,
                   int nachkommastellen)
TODO Missing Method Documentation

Specified by:
round in interface IHelper
Parameters:
wert - TODO Missing Method Parameter Documentation
nachkommastellen - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

showMessage

public void showMessage(java.awt.Component parent,
                        java.lang.String message,
                        java.lang.String titel,
                        int typ)
TODO Missing Method Documentation

Specified by:
showMessage in interface IHelper
Parameters:
parent - TODO Missing Method Parameter Documentation
message - TODO Missing Method Parameter Documentation
titel - TODO Missing Method Parameter Documentation
typ - TODO Missing Method Parameter Documentation

getMP3Player

public IMP3Player getMP3Player()
Description copied from interface: IHelper
Returns an IMP3Player. Set the mp3-filename and path with setMP3File( String ) and start the playback with run(). You can end the playback with close()

Specified by:
getMP3Player in interface IHelper

sortintArray

public int[][] sortintArray(int[][] toSort,
                            int spaltenindex)
TODO Missing Method Documentation

Specified by:
sortintArray in interface IHelper
Parameters:
toSort - TODO Missing Method Parameter Documentation
spaltenindex - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

isDevVersion

public boolean isDevVersion()
Description copied from interface: IHelper
Returns true if a development version

Specified by:
isDevVersion in interface IHelper
Returns:
version type

createEconomyCalendar

public IHTCalendar createEconomyCalendar()
Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.

Specified by:
createEconomyCalendar in interface IHelper
Returns:
a HTCalendar.
See Also:
a HTCalendar.

createEconomyCalendar

public IHTCalendar createEconomyCalendar(IHOMiniModel model)
Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.

Specified by:
createEconomyCalendar in interface IHelper
Parameters:
model - HO data model
Returns:
a HTCalendar.
See Also:
a HTCalendar.

createEconomyCalendar

public IHTCalendar createEconomyCalendar(java.util.Date date)
Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.

Specified by:
createEconomyCalendar in interface IHelper
Parameters:
date - Date to set the calendar
Returns:
a HTCalendar.

createEconomyCalendar

public IHTCalendar createEconomyCalendar(java.sql.Timestamp timestamp)
Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.

Specified by:
createEconomyCalendar in interface IHelper
Parameters:
timestamp - Date to set the calendar
Returns:
a HTCalendar.

createEconomyCalendar

public IHTCalendar createEconomyCalendar(IHOMiniModel model,
                                         java.util.Date date)
Creates a HTCalendar to calculate local values for a league, using the economy date to flip over to the next week.

Specified by:
createEconomyCalendar in interface IHelper
Parameters:
model - HO data model
date - Date to set the calendar
Returns:
a HTCalendar.

createGlobalCalendar

public IHTCalendar createGlobalCalendar()
Creates a HTCalendar to calculate global (Swedish) values.

Specified by:
createGlobalCalendar in interface IHelper
Returns:
a HTCalendar.

createGlobalCalendar

public IHTCalendar createGlobalCalendar(java.util.Date date)
Creates a HTCalendar to calculate global (Swedish) values and presets it with he specified date a date.

Specified by:
createGlobalCalendar in interface IHelper
Parameters:
date - Date to set the calendar
Returns:
a HTCalendar.

createTrainingCalendar

public IHTCalendar createTrainingCalendar()
Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.

Specified by:
createTrainingCalendar in interface IHelper
Returns:
a HTCalendar.

createTrainingCalendar

public IHTCalendar createTrainingCalendar(IHOMiniModel model)
Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.

Specified by:
createTrainingCalendar in interface IHelper
Parameters:
model - HO data model
Returns:
a HTCalendar.

createTrainingCalendar

public IHTCalendar createTrainingCalendar(java.util.Date date)
Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.

Specified by:
createTrainingCalendar in interface IHelper
Parameters:
date - Date to set the calendar
Returns:
a HTCalendar.

createTrainingCalendar

public IHTCalendar createTrainingCalendar(java.sql.Timestamp timestamp)
Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.

Specified by:
createTrainingCalendar in interface IHelper
Parameters:
timestamp - Date to set the calendar
Returns:
a HTCalendar.

createTrainingCalendar

public IHTCalendar createTrainingCalendar(IHOMiniModel model,
                                          java.util.Date date)
Creates a HTCalendar to calculate local values for a league, using the training date to flip over to the next week.

Specified by:
createTrainingCalendar in interface IHelper
Parameters:
model - HO data model
date - Date to set the calendar
Returns:
a HTCalendar.

getHTSeason

public int getHTSeason(java.util.Date date)
Get HT-Season of a given date (using the economy calendar)

Specified by:
getHTSeason in interface IHelper
Parameters:
date - the date to convert
Returns:
HT-Season

getHTSeason

public int getHTSeason(java.util.Date date,
                       boolean useTrainingCalendar)
Get HT-Season of a given date

Specified by:
getHTSeason in interface IHelper
Parameters:
date - the date to convert
useTrainingCalendar - use training calendar if true, else use economy calendar
Returns:
HT-Season

getHTWeek

public int getHTWeek(java.util.Date date)
Get HT-Week of a given date (using the economy calendar)

Specified by:
getHTWeek in interface IHelper
Parameters:
date - the date to convert
Returns:
HT-Week

getHTWeek

public int getHTWeek(java.util.Date date,
                     boolean useTrainingCalendar)
Get HT-Week of a given date

Specified by:
getHTWeek in interface IHelper
Parameters:
date - the date to convert
useTrainingCalendar - use training calendar if true, else use economy calendar
Returns:
HT-Week

getHTSeason

public int getHTSeason(java.sql.Timestamp timestamp)
Get HT-Season of a given date (using the economy calendar)

Specified by:
getHTSeason in interface IHelper
Parameters:
timestamp - the date to convert
Returns:
HT-Season

getHTSeason

public int getHTSeason(java.sql.Timestamp timestamp,
                       boolean useTrainingCalendar)
Get HT-Season of a given date

Specified by:
getHTSeason in interface IHelper
Parameters:
timestamp - the date to convert
useTrainingCalendar - use training calendar if true, else use economy calendar
Returns:
HT-Season

getHTWeek

public int getHTWeek(java.sql.Timestamp timestamp)
Get HT-Week of a given date (using the economy calendar)

Specified by:
getHTWeek in interface IHelper
Parameters:
timestamp - the date to convert
Returns:
HT-Week

getHTWeek

public int getHTWeek(java.sql.Timestamp timestamp,
                     boolean useTrainingCalendar)
Get HT-Week of a given date

Specified by:
getHTWeek in interface IHelper
Parameters:
timestamp - the date to convert
useTrainingCalendar - use training calendar if true, else use economy calendar
Returns:
HT-Week