|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hattrickorganizer.tools.LanguageFiles
de.hattrickorganizer.tools.Helper
public class Helper
Now Removed method: public static String[] getSprachDateien() This method is now in LanguageFiles.java. Done by jailbird.
Field Summary | |
---|---|
static javax.swing.ImageIcon |
ANGESCHLAGEN
bruised |
static javax.swing.ImageIcon |
BEWOELKT
partial clouded |
static java.text.NumberFormat |
CURRENCYFORMAT
|
static java.text.DecimalFormat |
DEFAULTDEZIMALFORMAT
decimal format - 1 fraction digit |
static java.text.DecimalFormat |
DEZIMALFORMAT_2STELLEN
decimal format - 2 fraction digits |
static java.text.DecimalFormat |
DEZIMALFORMAT_3STELLEN
decimal format - 3 fraction digits |
static javax.swing.ImageIcon |
DOPPELGELB
double yellow |
static javax.swing.ImageIcon |
DOWNLOADMATCHICON
donload icon |
static CBItem[] |
EINSTUFUNG
Gesamteinstufung |
static CBItem[] |
EINSTUFUNG_FORM
Form |
static CBItem[] |
EINSTUFUNG_KONDITION
Kondition |
static CBItem[] |
EINSTUFUNG_SPECIALITY
Speciality |
static CBItem[] |
EINSTUFUNG_TRAINER
Form |
static de.hattrickorganizer.tools.ExtendedImageIcon |
EMPTYIMAGE
Images |
static javax.swing.ImageIcon |
GELBEKARTE
yellow card |
static javax.swing.ImageIcon |
GREYSTARIMAGEICON
grey star |
static java.text.DecimalFormat |
INTEGERFORMAT
wird für das Parsen in parseFloat benötigt |
static javax.swing.ImageIcon |
KEINTOR
default - no goal |
static ImagePanel |
LADECOMPONENTE
Componente zum Grafikenladen |
static javax.swing.ImageIcon |
LEER
empty 14px |
static javax.swing.ImageIcon |
MANUELL
manual |
static java.lang.String[] |
MANUELLSMILIES
smilies |
static javax.swing.ImageIcon |
MINILEER
empty small 8px |
static javax.swing.ImageIcon |
NOIMAGEICON
no icon |
static javax.swing.ImageIcon |
NOMATCHICON
no match icon |
static boolean |
paneShown
Schon eine Meldung angezeigt? |
static javax.swing.ImageIcon |
REGEN
rain |
static javax.swing.ImageIcon |
ROTEKARTE
red card |
static javax.swing.ImageIcon |
SHOWMATCHICON
show match icon |
static javax.swing.ImageIcon |
SONNIG
sunny |
static CBItem[] |
SPIELERPOSITIONEN
Spielerpositionen |
static java.lang.String[] |
TEAMSMILIES
team categories |
static javax.swing.ImageIcon |
TOR
default - goal |
static java.awt.Color |
TRICKOT_AUSSENVERTEIDIGER
shirt - WB |
static java.awt.Color |
TRICKOT_FLUEGEL
shirt - winger |
static java.awt.Color |
TRICKOT_INNENVERTEIDIGER
shirt - CD |
static java.awt.Color |
TRICKOT_MITTELFELD
shirt - inner mid |
static java.awt.Color |
TRICKOT_NONE
shirt - none |
static java.awt.Color |
TRICKOT_RESERVE_FLUEGEL
shirt - spare winger |
static java.awt.Color |
TRICKOT_RESERVE_INNENVERTEIDIGER
shirt - spare CD |
static java.awt.Color |
TRICKOT_RESERVE_MITTELFELD
shirt - spare inner |
static java.awt.Color |
TRICKOT_RESERVE_STURM
shirt - spare striker |
static java.awt.Color |
TRICKOT_RESERVE_TORWART
shirt - spare keeper |
static java.awt.Color |
TRICKOT_STURM
shirt - striker |
static java.awt.Color |
TRICKOT_TORWART
shirt colors |
static javax.swing.ImageIcon |
VERLETZT
injured |
static javax.swing.ImageIcon |
WEATHER_SE_RAIN_NEG
|
static javax.swing.ImageIcon |
WEATHER_SE_RAIN_POS
weather SEs |
static javax.swing.ImageIcon |
WEATHER_SE_SUN_NEG
|
static javax.swing.ImageIcon |
WEATHER_SE_SUN_POS
|
static CBItem[] |
WETTER
weather combo boxes |
static javax.swing.ImageIcon |
WETTERGUT
good weather |
static javax.swing.ImageIcon |
WETTERSCHLECHT
bad weather |
static javax.swing.ImageIcon |
WOLKIG
clouds |
static javax.swing.ImageIcon |
YELLOWSTARIMAGEICON
yellow star |
static javax.swing.ImageIcon |
ZAHNRAD
gear wheel |
Constructor Summary | |
---|---|
Helper()
|
Method Summary | |
---|---|
static int |
calcCellWidth(int width)
Errechnet die Spaltenbreite für den User-Schriftgrösse |
static java.awt.Image |
changeColor(java.awt.Image im,
java.awt.Color original,
java.awt.Color change)
Tauscht eine Farbe im Image durch eine andere |
static java.lang.String[] |
convertTimeMillisToFormatString(double[] timewerte)
Macht aus einem double[] mit Timevalues einen formatierten String[] |
static javax.swing.DefaultComboBoxModel |
createListModel(java.util.Vector vector)
Erzeugt ein ComboBoxModel aus einem Vector |
static void |
debugCacheTest()
Debugausgaben Cache |
static void |
expandTree(javax.swing.JTree tree)
Klappt den JTree komplett auf |
static int[] |
generateIntArray(java.lang.String text)
Überprüft den Inhalt eines Textfields, ob der Wert aus ints mit , getrennt besteht, ansonsten setzt er den Wert auf 0 |
static java.awt.Color |
getColor4SpielHighlight(int typ,
int subtyp)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImage4Position(int posid,
byte taktik,
int trickotnummer)
Gibt die Grafik zu der Position zurück |
static javax.swing.ImageIcon |
getImage4Position(SpielerPosition position,
int trickotnummer)
TODO Missing Method Documentation |
static java.awt.Image |
getImageDurchgestrichen(java.awt.Image image)
Macht einen Kreuz durch das Image |
static java.awt.Image |
getImageDurchgestrichen(java.awt.Image image,
java.awt.Color helleFarbe,
java.awt.Color dunkleFarbe)
Macht einen Kreuz durch das Image |
static javax.swing.ImageIcon |
getImageIcon4Color(java.awt.Color color)
|
static javax.swing.ImageIcon |
getImageIcon4Country(int country)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImageIcon4GruppeSmilie(java.lang.String gruppe)
Gibt die Grafik für die Gruppe oder Smilie zurück |
static javax.swing.ImageIcon |
getImageIcon4MiniGruppe(java.lang.String gruppe)
Gibt die Grafik für die Gruppe in 7px Grösse für die Aufstellung zurück |
static javax.swing.ImageIcon |
getImageIcon4Spezialitaet(int wert)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImageIcon4SpielHighlight(int typ,
int subtyp)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImageIcon4Spieltyp(int spieltyp)
Gibt die Grafik für die Spieltypen zurück |
static javax.swing.ImageIcon |
getImageIcon4Trickotnummer(int wert)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImageIcon4Veraenderung(int wert)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImageIcon4Veraenderung(int wert,
boolean aktuell)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImageIcon4Wetter(int wert)
TODO Missing Method Documentation |
static javax.swing.ImageIcon |
getImageIcon4WetterEffekt(int wert)
Get the icon for a certain weather effect. |
static float |
getLogarithmus(int value,
int base)
|
static int |
getMaxBewertungWidth(java.util.Vector spieler)
Benötigte Breite für die Spalte in den Tabellen |
static java.text.NumberFormat |
getNumberFormat(boolean currencyformat,
int nachkommastellen)
Returns a NumberFormat based on the parameters |
static int |
getRandom(int maxZahl)
liefert Zufalls Zahl von 0 =< maxZahl |
static java.lang.String |
getTooltiptext4SpielHighlight(int typ,
int subtyp)
TODO Missing Method Documentation |
static boolean |
isAlpha(java.lang.String input)
proof if input is a word |
static boolean |
isUserMatch(java.lang.String matchID)
TODO Missing Method Documentation |
static boolean |
isWeatherSEHighlight(int typ,
int subtyp)
Check, if the highlight is a weather SE highlight. |
static java.awt.image.BufferedImage |
loadImage(java.lang.String datei)
Lädt Grafiken auch im jar-File |
static java.awt.Image |
makeColorTransparent(java.awt.Image im,
java.awt.Color color)
Macht eine Farbe in dem Bild transparent |
static java.awt.Image |
makeColorTransparent(java.awt.Image im,
int minred,
int mingreen,
int minblue,
int maxred,
int maxgreen,
int maxblue)
Macht eine Farbe in dem Bild transparent |
static java.awt.Image |
makeGray(java.awt.Image im,
float value)
Tauscht eine Farbe im Image durch eine andere |
static void |
markierenComboBox(javax.swing.JComboBox combobox,
int id)
Markiert das Element mit der angegeben Id |
static boolean |
parseFloat(java.awt.Window parent,
javax.swing.JTextField field,
boolean negativErlaubt)
Parsen mit Defaultdezimaltformat |
static boolean |
parseFloat(java.awt.Window parent,
javax.swing.JTextField field,
boolean negativErlaubt,
java.text.DecimalFormat format)
Überprüft den Inhalt eines Textfields, ob der Wert ein float ist, ansonsten setzt er den Wert auf 0.0 |
static boolean |
parseInt(java.awt.Window parent,
javax.swing.JTextField field,
boolean negativErlaubt)
Überprüft den Inhalt eines Textfields, ob der Wert ein int ist, ansonsten setzt er den Wert auf 0 |
static int[] |
parseMultiInt(java.awt.Window parent,
javax.swing.JTextField field,
boolean negativErlaubt,
int maxValue)
Deprecated. Keine Fehlermeldungen! Keine negativ/max Prüfung! |
static float |
round(double wert)
Runden auf eine Nachkommastelle |
static float |
round(double wert,
int nachkommastellen)
Rundet den übergeben wert auf eine bestimmte nachkommastellen-Anzahl |
static void |
showMessage(java.awt.Component parent,
java.lang.String message,
java.lang.String titel,
int typ)
Zeigt eine Meldung per JOptionPane an, aber immer nur eine! |
static int[][] |
sortintArray(int[][] toSort,
int spaltenindex)
|
static java.awt.Image |
zusammenfuehren(java.awt.Image background,
java.awt.Image foreground)
Kopiert das zweite Image auf das erste |
Methods inherited from class de.hattrickorganizer.tools.LanguageFiles |
---|
getSprachDateien |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ImagePanel LADECOMPONENTE
public static javax.swing.ImageIcon YELLOWSTARIMAGEICON
public static javax.swing.ImageIcon GREYSTARIMAGEICON
public static javax.swing.ImageIcon NOIMAGEICON
public static javax.swing.ImageIcon NOMATCHICON
public static javax.swing.ImageIcon DOWNLOADMATCHICON
public static javax.swing.ImageIcon SHOWMATCHICON
public static javax.swing.ImageIcon ROTEKARTE
public static javax.swing.ImageIcon GELBEKARTE
public static javax.swing.ImageIcon DOPPELGELB
public static javax.swing.ImageIcon ANGESCHLAGEN
public static javax.swing.ImageIcon VERLETZT
public static javax.swing.ImageIcon TOR
public static javax.swing.ImageIcon KEINTOR
public static javax.swing.ImageIcon ZAHNRAD
public static javax.swing.ImageIcon MANUELL
public static javax.swing.ImageIcon WEATHER_SE_RAIN_POS
public static javax.swing.ImageIcon WEATHER_SE_RAIN_NEG
public static javax.swing.ImageIcon WEATHER_SE_SUN_POS
public static javax.swing.ImageIcon WEATHER_SE_SUN_NEG
public static final CBItem[] EINSTUFUNG
public static final CBItem[] EINSTUFUNG_FORM
public static final CBItem[] EINSTUFUNG_KONDITION
public static final CBItem[] EINSTUFUNG_TRAINER
public static final CBItem[] EINSTUFUNG_SPECIALITY
public static final CBItem[] SPIELERPOSITIONEN
public static final java.lang.String[] TEAMSMILIES
public static final java.lang.String[] MANUELLSMILIES
public static final CBItem[] WETTER
public static java.awt.Color TRICKOT_TORWART
public static java.awt.Color TRICKOT_INNENVERTEIDIGER
public static java.awt.Color TRICKOT_AUSSENVERTEIDIGER
public static java.awt.Color TRICKOT_MITTELFELD
public static java.awt.Color TRICKOT_FLUEGEL
public static java.awt.Color TRICKOT_STURM
public static java.awt.Color TRICKOT_RESERVE_TORWART
public static java.awt.Color TRICKOT_RESERVE_INNENVERTEIDIGER
public static java.awt.Color TRICKOT_RESERVE_MITTELFELD
public static java.awt.Color TRICKOT_RESERVE_FLUEGEL
public static java.awt.Color TRICKOT_RESERVE_STURM
public static java.awt.Color TRICKOT_NONE
public static de.hattrickorganizer.tools.ExtendedImageIcon EMPTYIMAGE
public static javax.swing.ImageIcon WETTERSCHLECHT
public static javax.swing.ImageIcon WETTERGUT
public static javax.swing.ImageIcon SONNIG
public static javax.swing.ImageIcon WOLKIG
public static javax.swing.ImageIcon BEWOELKT
public static javax.swing.ImageIcon REGEN
public static javax.swing.ImageIcon LEER
public static javax.swing.ImageIcon MINILEER
public static java.text.NumberFormat CURRENCYFORMAT
public static java.text.DecimalFormat INTEGERFORMAT
public static java.text.DecimalFormat DEFAULTDEZIMALFORMAT
public static java.text.DecimalFormat DEZIMALFORMAT_2STELLEN
public static java.text.DecimalFormat DEZIMALFORMAT_3STELLEN
public static boolean paneShown
Constructor Detail |
---|
public Helper()
Method Detail |
---|
public static java.awt.Color getColor4SpielHighlight(int typ, int subtyp)
typ
- TODO Missing Method Parameter Documentationsubtyp
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImage4Position(SpielerPosition position, int trickotnummer)
position
- TODO Missing Method Parameter Documentationtrickotnummer
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImage4Position(int posid, byte taktik, int trickotnummer)
posid
- TODO Missing Constructuor Parameter Documentationtaktik
- TODO Missing Constructuor Parameter Documentationtrickotnummer
- TODO Missing Constructuor Parameter Documentation
public static java.awt.Image getImageDurchgestrichen(java.awt.Image image)
image
- TODO Missing Constructuor Parameter Documentation
public static java.awt.Image getImageDurchgestrichen(java.awt.Image image, java.awt.Color helleFarbe, java.awt.Color dunkleFarbe)
image
- TODO Missing Constructuor Parameter DocumentationhelleFarbe
- TODO Missing Constructuor Parameter DocumentationdunkleFarbe
- TODO Missing Constructuor Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4Color(java.awt.Color color)
public static javax.swing.ImageIcon getImageIcon4Country(int country)
country
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4GruppeSmilie(java.lang.String gruppe)
gruppe
- TODO Missing Constructuor Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4MiniGruppe(java.lang.String gruppe)
gruppe
- TODO Missing Constructuor Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4Spezialitaet(int wert)
wert
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4SpielHighlight(int typ, int subtyp)
typ
- TODO Missing Method Parameter Documentationsubtyp
- TODO Missing Method Parameter Documentation
public static boolean isWeatherSEHighlight(int typ, int subtyp)
public static javax.swing.ImageIcon getImageIcon4Spieltyp(int spieltyp)
spieltyp
- TODO Missing Constructuor Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4Trickotnummer(int wert)
wert
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4Veraenderung(int wert)
wert
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4Veraenderung(int wert, boolean aktuell)
wert
- TODO Missing Method Parameter Documentationaktuell
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4Wetter(int wert)
wert
- TODO Missing Method Parameter Documentation
public static javax.swing.ImageIcon getImageIcon4WetterEffekt(int wert)
public static float getLogarithmus(int value, int base)
public static int getMaxBewertungWidth(java.util.Vector spieler)
spieler
- TODO Missing Constructuor Parameter Documentation
public static int getRandom(int maxZahl)
maxZahl
- TODO Missing Constructuor Parameter Documentation
public static java.lang.String getTooltiptext4SpielHighlight(int typ, int subtyp)
typ
- TODO Missing Method Parameter Documentationsubtyp
- TODO Missing Method Parameter Documentation
public static boolean isUserMatch(java.lang.String matchID)
matchID
- TODO Missing Method Parameter Documentation
public static int calcCellWidth(int width)
width
- TODO Missing Constructuor Parameter Documentation
public static java.awt.Image changeColor(java.awt.Image im, java.awt.Color original, java.awt.Color change)
im
- TODO Missing Constructuor Parameter Documentationoriginal
- TODO Missing Constructuor Parameter Documentationchange
- TODO Missing Constructuor Parameter Documentation
public static java.lang.String[] convertTimeMillisToFormatString(double[] timewerte)
timewerte
- TODO Missing Constructuor Parameter Documentation
public static javax.swing.DefaultComboBoxModel createListModel(java.util.Vector vector)
vector
- TODO Missing Constructuor Parameter Documentation
public static void debugCacheTest()
public static void expandTree(javax.swing.JTree tree)
tree
- TODO Missing Constructuor Parameter Documentationpublic static int[] generateIntArray(java.lang.String text)
text
- TODO Missing Constructuor Parameter Documentation
public static java.awt.image.BufferedImage loadImage(java.lang.String datei)
datei
- TODO Missing Constructuor Parameter Documentation
public static java.awt.Image makeColorTransparent(java.awt.Image im, java.awt.Color color)
im
- TODO Missing Constructuor Parameter Documentationcolor
- TODO Missing Constructuor Parameter Documentation
public static java.awt.Image makeColorTransparent(java.awt.Image im, int minred, int mingreen, int minblue, int maxred, int maxgreen, int maxblue)
im
- TODO Missing Constructuor Parameter Documentationminred
- TODO Missing Constructuor Parameter Documentationmingreen
- TODO Missing Constructuor Parameter Documentationminblue
- TODO Missing Constructuor Parameter Documentationmaxred
- TODO Missing Constructuor Parameter Documentationmaxgreen
- TODO Missing Constructuor Parameter Documentationmaxblue
- TODO Missing Constructuor Parameter Documentation
public static java.awt.Image makeGray(java.awt.Image im, float value)
im
- TODO Missing Constructuor Parameter Documentationvalue
- TODO Missing Constructuor Parameter Documentation
public static void markierenComboBox(javax.swing.JComboBox combobox, int id)
combobox
- TODO Missing Constructuor Parameter Documentationid
- TODO Missing Constructuor Parameter Documentationpublic static boolean parseFloat(java.awt.Window parent, javax.swing.JTextField field, boolean negativErlaubt)
parent
- TODO Missing Constructuor Parameter Documentationfield
- TODO Missing Constructuor Parameter DocumentationnegativErlaubt
- TODO Missing Constructuor Parameter Documentation
public static boolean parseFloat(java.awt.Window parent, javax.swing.JTextField field, boolean negativErlaubt, java.text.DecimalFormat format)
parent
- Window, in dem der Fehlerdialog angezeigt werden soll.field
- Das Textfeld mit dem zu prüfenden WertnegativErlaubt
- true, wenn negative Werte erlaubt sindformat
- das Dezimalformat
public static boolean parseInt(java.awt.Window parent, javax.swing.JTextField field, boolean negativErlaubt)
parent
- Window, in dem der Fehlerdialog angezeigt werden soll.field
- Das Textfeld mit dem zu prüfenden WertnegativErlaubt
- true, wenn negative Werte erlaubt sind
public static int[] parseMultiInt(java.awt.Window parent, javax.swing.JTextField field, boolean negativErlaubt, int maxValue)
parent
- Window, in dem der Fehlerdialog angezeigt werden soll.field
- Das Textfeld mit dem zu prüfenden WertnegativErlaubt
- true, wenn negative Werte erlaubt sindmaxValue
- der maximal erlaubte Wert
public static float round(double wert)
wert
- TODO Missing Constructuor Parameter Documentation
public static float round(double wert, int nachkommastellen)
wert
- Der zu rundene Wertnachkommastellen
- Anzahl der Nachkommastellen
public static 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 Documentationpublic static int[][] sortintArray(int[][] toSort, int spaltenindex)
public static java.awt.Image zusammenfuehren(java.awt.Image background, java.awt.Image foreground)
background
- TODO Missing Constructuor Parameter Documentationforeground
- TODO Missing Constructuor Parameter Documentation
public static boolean isAlpha(java.lang.String input)
input
-
public static java.text.NumberFormat getNumberFormat(boolean currencyformat, int nachkommastellen)
currencyformat
- nachkommastellen
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |