|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHelper
Interface to several Helper funcs, that make life/programming much easier
Method Summary | |
---|---|
void |
addTempSpieler(ISpieler spieler)
Add a player to HO! temporary |
java.lang.String[] |
convertTimeMillisToFormatString(double[] timewerte)
:) |
void |
copyArray2Vector(java.lang.Object[] src,
java.util.Vector dest)
Copy the values for a arry to an vector |
void |
copyVector2Array(java.util.Vector src,
java.lang.Object[] dest)
Copy the values for a vector to an array |
javax.swing.DefaultComboBoxModel |
createListModel(java.util.Vector vector)
Puts the vectorelements in a ComboBoxModel |
ISpieler |
createSpielerFromText(java.lang.String text)
Parse a text ( from HT-playerpage ) and create an ISpieler from it. |
java.lang.String |
decodeStringFromDatabase(java.lang.String text)
Decode the string from the database Use this methode for all strings you receive directly from the database # are replaced by ' |
java.lang.String |
deleteEscapeSequences(java.lang.String text)
undo replacing, after reading from DB |
boolean |
downloadMatchData(int matchID)
downloads all match related data and stores it in Database |
java.lang.String |
encodeString4Database(java.lang.String text)
Encode the string to put it in the database Use this methode on all strings you want to store in the database via sql ' and " are replaced by # |
boolean |
existsMatchInDB(int matchID)
checkes wheater matchdata is already stored in db or not |
int[] |
generateIntArray(java.lang.String text)
Like generateStringArray, but returns an int[] and has a fix seperator ',' |
java.lang.String[] |
generateStringArray(java.lang.String werte,
char trenner)
Generate a Stringarray by seperate the string werte by the seperator trenner |
java.awt.Color |
getColor4SpielHighlight(int typ,
int subtyp)
Returns a (Text)Color for a Highlight |
java.util.Date |
getHattrickDate(java.lang.String string)
TODO Missing Method Documentation |
javax.swing.ImageIcon |
getImage4Position(int posid,
byte taktik)
Returns an Image represent the Position of a player |
javax.swing.ImageIcon |
getImageIcon4Country(int country)
Returns the Flag-Image for a player ( ISpieler.getNationalitaet() ) |
javax.swing.ImageIcon |
getImageIcon4Spezialitaet(int wert)
Returns an Image represent the special ablility of a player |
javax.swing.ImageIcon |
getImageIcon4SpielHighlight(int typ,
int subtyp)
Returns an Image represent the Matchhighlight |
javax.swing.ImageIcon |
getImageIcon4Spieltyp(int spieltyp)
Returns an Image für the Matchtyp |
javax.swing.ImageIcon |
getImageIcon4Veraenderung(int wert)
Returns an ArrowImage, green up für pos values, red down für neg values and a - for 0 values |
javax.swing.ImageIcon |
getImageIcon4Wetter(int wert)
Returns an Image for the weather |
javax.swing.ImageIcon |
getImageIcon4WetterEffekt(int wert)
Returns an Image for the Effect of the weather for a player |
int |
getLanguageID()
ID of the actual used Language |
java.lang.String |
getLanguageName()
Name of the actual used Language. |
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)
fiery, temperamental, ... |
java.lang.String |
getNameForBewertung(int value,
boolean showNumber,
boolean isMatch)
like the methode above, but if isMatch is set the values goes from 1 to 80 instead of 1 to 20 and the numbers shows sublevels. |
java.lang.String |
getNameForCharacter(int value)
righteous, dishonest, ... |
java.lang.String |
getNameForConfidence(int value)
wonderful, decent, ... |
java.lang.String |
getNameForGentleness(int value)
popular, controversial, ... |
java.lang.String |
getNameForMatchTyp(int typ)
leaguematch, ... |
java.lang.String |
getNameForPosition(byte value)
Positionnames use Const from ISpielerPosition |
java.lang.String |
getNameForSkill(int value,
boolean showNumber)
inadequate, divine, ... |
java.lang.String |
getNameForSpeciality(int value)
Quick, Powerful, ... |
java.lang.String |
getNameForTaktik(int typ)
pressing, .. |
java.lang.String |
getNameForTeamorder(int typ)
pic, normal, mots Use static from IMatchConst |
java.lang.String |
getNameForTeamspirit(int value)
Like the cold War, delirious, ... |
java.lang.String |
getNameForTraining(int value)
Name of Training |
java.util.Vector |
getPlugins()
Deprecated. |
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)
Returns a short Text for a Highlight |
void |
importHRF()
Download the actual HRF |
java.lang.String |
insertEscapeSequences(java.lang.String text)
DB String Parser ' and other tokens are replaced to be db conform, before storing in DB |
boolean |
isDevVersion()
Returns true if a development version |
boolean |
isUserMatch(java.lang.String matchID)
checks if given matchID is a match from UserTeam |
java.awt.image.BufferedImage |
loadImage(java.lang.String datei)
Load an image and cache it. |
java.awt.Image |
makeColorTransparent(java.awt.Image im,
java.awt.Color color)
Returns an Image with transparent pixels, where color-pixels are found in im |
java.awt.Image |
makeColorTransparent(java.awt.Image im,
int minr,
int ming,
int minb,
int maxr,
int maxg,
int maxb)
Returns an Image with transparent pixels, where the pixels has colorvalues between the specified values |
void |
openUrlInUserBRowser(java.lang.String url)
opens given url in default System Browser |
java.sql.Timestamp |
parseDate(java.lang.String date)
Parse a String an return a Timestamp for it |
float |
round(double wert,
int nachkommastellen)
Round a value wert |
void |
showMessage(java.awt.Component parent,
java.lang.String message,
java.lang.String titel,
int typ)
Shows an MessageDialog JOptionPane only, if there is not still an other MessageDialog shown (can be a Deadlock!) |
int[][] |
sortintArray(int[][] toSort,
int spaltenindex)
Sort an multiintarray |
Method Detail |
---|
IMatchHelper getMatchHelper()
java.awt.Color getColor4SpielHighlight(int typ, int subtyp)
typ
- Use constant values from IMatchHighlightsubtyp
- Use constant values from IMatchHighlight
java.util.Date getHattrickDate(java.lang.String string) throws java.text.ParseException
string
- TODO Missing Method Parameter Documentation
java.text.ParseException
- TODO Missing Method Exception Documentationjavax.swing.ImageIcon getImage4Position(int posid, byte taktik)
posid
- PositionID from Hattrick, 1-16 are valid values, all others will result in an
empty Imagetaktik
- TakticID, is unused but for additional Players
javax.swing.ImageIcon getImageIcon4Country(int country)
country
- TODO Missing Constructuor Parameter Documentation
javax.swing.ImageIcon getImageIcon4Spezialitaet(int wert)
wert
- the hattrickvalue of the ability
javax.swing.ImageIcon getImageIcon4SpielHighlight(int typ, int subtyp)
typ
- Use constant values from IMatchHighlightsubtyp
- Use constant values from IMatchHighlight
javax.swing.ImageIcon getImageIcon4Spieltyp(int spieltyp)
spieltyp
- hattrickvalue for that Matchtyp Use static from IMatchConst
javax.swing.ImageIcon getImageIcon4Veraenderung(int wert)
wert
- TODO Missing Constructuor Parameter Documentation
javax.swing.ImageIcon getImageIcon4Wetter(int wert)
wert
- 0 for Rain to 3 for Sun
javax.swing.ImageIcon getImageIcon4WetterEffekt(int wert)
wert
- <0 Bad Weathereffect, >0 good Weathereffect, =0 no Effect (return null)
int getLanguageID()
java.lang.String getLanguageName()
java.util.Calendar getLastTrainingDate(java.util.Date skillupDate, java.util.Date refTrainingDate)
skillupDate
- TODO Missing Method Parameter DocumentationrefTrainingDate
- TODO Missing Method Parameter Documentation
java.lang.String getNameForAggressivness(int value)
value
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForBewertung(int value, boolean showNumber, boolean isMatch)
value
- the value of the skillshowNumber
- true, adds the value to the String in () : passable (6), Defaultvalue is
IHOMiniModel.getUserSettings().zahlenFuerSkillisMatch
- use values from 1-80 for lineupskills instead of the 1-20 for playerskills
java.lang.String getNameForCharacter(int value)
value
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForConfidence(int value)
value
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForGentleness(int value)
value
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForMatchTyp(int typ)
typ
- hattrickvalue for that Matchtyp Use static from IMatchConst
java.lang.String getNameForPosition(byte value)
value
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForSkill(int value, boolean showNumber)
value
- TODO Missing Constructuor Parameter DocumentationshowNumber
- true, adds the value to the String in () : passable (6)
java.lang.String getNameForSpeciality(int value)
value
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForTaktik(int typ)
typ
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForTeamorder(int typ)
typ
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForTeamspirit(int value)
value
- TODO Missing Constructuor Parameter Documentation
java.lang.String getNameForTraining(int value)
value
- TODO Missing Constructuor Parameter Documentation
java.util.Vector getPlugins()
int getPosition(int hoposcode)
hoposcode
-
java.lang.String getTooltiptext4SpielHighlight(int typ, int subtyp)
typ
- Use constant values from IMatchHighlightsubtyp
- Use constant values from IMatchHighlight
boolean isUserMatch(java.lang.String matchID)
matchID
- matchID Id of match to check
void addTempSpieler(ISpieler spieler)
spieler
- TODO Missing Constructuor Parameter Documentationjava.lang.String[] convertTimeMillisToFormatString(double[] timewerte)
timewerte
- TODO Missing Constructuor Parameter Documentation
void copyArray2Vector(java.lang.Object[] src, java.util.Vector dest)
src
- TODO Missing Constructuor Parameter Documentationdest
- TODO Missing Constructuor Parameter Documentationvoid copyVector2Array(java.util.Vector src, java.lang.Object[] dest)
src
- TODO Missing Constructuor Parameter Documentationdest
- TODO Missing Constructuor Parameter Documentationjavax.swing.DefaultComboBoxModel createListModel(java.util.Vector vector)
vector
- TODO Missing Constructuor Parameter Documentation
ISpieler createSpielerFromText(java.lang.String text) throws java.lang.Exception
text
- TODO Missing Constructuor Parameter Documentation
java.lang.Exception
- TODO Missing Constructuor Exception Documentationjava.lang.String decodeStringFromDatabase(java.lang.String text)
text
- TODO Missing Constructuor Parameter Documentation
java.lang.String deleteEscapeSequences(java.lang.String text)
text
- TODO Missing Constructuor Parameter Documentation
boolean downloadMatchData(int matchID)
matchID
- TODO Missing Constructuor Parameter Documentation
java.lang.String encodeString4Database(java.lang.String text)
text
- TODO Missing Constructuor Parameter Documentation
boolean existsMatchInDB(int matchID)
matchID
- TODO Missing Constructuor Parameter Documentation
int[] generateIntArray(java.lang.String text)
text
- TODO Missing Constructuor Parameter Documentation
java.lang.String[] generateStringArray(java.lang.String werte, char trenner)
werte
- TODO Missing Constructuor Parameter Documentationtrenner
- TODO Missing Constructuor Parameter Documentation
void importHRF()
java.lang.String insertEscapeSequences(java.lang.String text)
text
- TODO Missing Constructuor Parameter Documentation
java.awt.image.BufferedImage loadImage(java.lang.String datei)
datei
- TODO Missing Constructuor Parameter Documentation
java.awt.Image makeColorTransparent(java.awt.Image im, java.awt.Color color)
im
- TODO Missing Constructuor Parameter Documentationcolor
- TODO Missing Constructuor Parameter Documentation
java.awt.Image makeColorTransparent(java.awt.Image im, int minr, int ming, int minb, int maxr, int maxg, int maxb)
im
- TODO Missing Constructuor Parameter Documentationminr
- TODO Missing Constructuor Parameter Documentationming
- TODO Missing Constructuor Parameter Documentationminb
- TODO Missing Constructuor Parameter Documentationmaxr
- TODO Missing Constructuor Parameter Documentationmaxg
- TODO Missing Constructuor Parameter Documentationmaxb
- TODO Missing Constructuor Parameter Documentation
void openUrlInUserBRowser(java.lang.String url)
url
- TODO Missing Constructuor Parameter Documentationjava.sql.Timestamp parseDate(java.lang.String date)
date
- TODO Missing Constructuor Parameter Documentation
float round(double wert, int nachkommastellen)
wert
- TODO Missing Constructuor Parameter Documentationnachkommastellen
- TODO Missing Constructuor Parameter Documentation
void showMessage(java.awt.Component parent, java.lang.String message, java.lang.String titel, int typ)
parent
- TODO Missing Constructuor Parameter Documentationmessage
- TODO Missing Constructuor Parameter Documentationtitel
- TODO Missing Constructuor Parameter Documentationtyp
- TODO Missing Constructuor Parameter DocumentationIMP3Player getMP3Player()
int[][] sortintArray(int[][] toSort, int spaltenindex)
toSort
- TODO Missing Constructuor Parameter Documentationspaltenindex
- TODO Missing Constructuor Parameter Documentation
boolean isDevVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |