de.hattrickorganizer.tools
Class Helper

java.lang.Object
  extended by de.hattrickorganizer.tools.LanguageFiles
      extended by de.hattrickorganizer.tools.Helper

public class Helper
extends LanguageFiles

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

LADECOMPONENTE

public static ImagePanel LADECOMPONENTE
Componente zum Grafikenladen


YELLOWSTARIMAGEICON

public static javax.swing.ImageIcon YELLOWSTARIMAGEICON
yellow star


GREYSTARIMAGEICON

public static javax.swing.ImageIcon GREYSTARIMAGEICON
grey star


NOIMAGEICON

public static javax.swing.ImageIcon NOIMAGEICON
no icon


NOMATCHICON

public static javax.swing.ImageIcon NOMATCHICON
no match icon


DOWNLOADMATCHICON

public static javax.swing.ImageIcon DOWNLOADMATCHICON
donload icon


SHOWMATCHICON

public static javax.swing.ImageIcon SHOWMATCHICON
show match icon


ROTEKARTE

public static javax.swing.ImageIcon ROTEKARTE
red card


GELBEKARTE

public static javax.swing.ImageIcon GELBEKARTE
yellow card


DOPPELGELB

public static javax.swing.ImageIcon DOPPELGELB
double yellow


ANGESCHLAGEN

public static javax.swing.ImageIcon ANGESCHLAGEN
bruised


VERLETZT

public static javax.swing.ImageIcon VERLETZT
injured


TOR

public static javax.swing.ImageIcon TOR
default - goal


KEINTOR

public static javax.swing.ImageIcon KEINTOR
default - no goal


ZAHNRAD

public static javax.swing.ImageIcon ZAHNRAD
gear wheel


MANUELL

public static javax.swing.ImageIcon MANUELL
manual


WEATHER_SE_RAIN_POS

public static javax.swing.ImageIcon WEATHER_SE_RAIN_POS
weather SEs


WEATHER_SE_RAIN_NEG

public static javax.swing.ImageIcon WEATHER_SE_RAIN_NEG

WEATHER_SE_SUN_POS

public static javax.swing.ImageIcon WEATHER_SE_SUN_POS

WEATHER_SE_SUN_NEG

public static javax.swing.ImageIcon WEATHER_SE_SUN_NEG

EINSTUFUNG

public static final CBItem[] EINSTUFUNG
Gesamteinstufung


EINSTUFUNG_FORM

public static final CBItem[] EINSTUFUNG_FORM
Form


EINSTUFUNG_KONDITION

public static final CBItem[] EINSTUFUNG_KONDITION
Kondition


EINSTUFUNG_TRAINER

public static final CBItem[] EINSTUFUNG_TRAINER
Form


EINSTUFUNG_SPECIALITY

public static final CBItem[] EINSTUFUNG_SPECIALITY
Speciality


SPIELERPOSITIONEN

public static final CBItem[] SPIELERPOSITIONEN
Spielerpositionen


TEAMSMILIES

public static final java.lang.String[] TEAMSMILIES
team categories


MANUELLSMILIES

public static final java.lang.String[] MANUELLSMILIES
smilies


WETTER

public static final CBItem[] WETTER
weather combo boxes


TRICKOT_TORWART

public static java.awt.Color TRICKOT_TORWART
shirt colors


TRICKOT_INNENVERTEIDIGER

public static java.awt.Color TRICKOT_INNENVERTEIDIGER
shirt - CD


TRICKOT_AUSSENVERTEIDIGER

public static java.awt.Color TRICKOT_AUSSENVERTEIDIGER
shirt - WB


TRICKOT_MITTELFELD

public static java.awt.Color TRICKOT_MITTELFELD
shirt - inner mid


TRICKOT_FLUEGEL

public static java.awt.Color TRICKOT_FLUEGEL
shirt - winger


TRICKOT_STURM

public static java.awt.Color TRICKOT_STURM
shirt - striker


TRICKOT_RESERVE_TORWART

public static java.awt.Color TRICKOT_RESERVE_TORWART
shirt - spare keeper


TRICKOT_RESERVE_INNENVERTEIDIGER

public static java.awt.Color TRICKOT_RESERVE_INNENVERTEIDIGER
shirt - spare CD


TRICKOT_RESERVE_MITTELFELD

public static java.awt.Color TRICKOT_RESERVE_MITTELFELD
shirt - spare inner


TRICKOT_RESERVE_FLUEGEL

public static java.awt.Color TRICKOT_RESERVE_FLUEGEL
shirt - spare winger


TRICKOT_RESERVE_STURM

public static java.awt.Color TRICKOT_RESERVE_STURM
shirt - spare striker


TRICKOT_NONE

public static java.awt.Color TRICKOT_NONE
shirt - none


EMPTYIMAGE

public static de.hattrickorganizer.tools.ExtendedImageIcon EMPTYIMAGE
Images


WETTERSCHLECHT

public static javax.swing.ImageIcon WETTERSCHLECHT
bad weather


WETTERGUT

public static javax.swing.ImageIcon WETTERGUT
good weather


SONNIG

public static javax.swing.ImageIcon SONNIG
sunny


WOLKIG

public static javax.swing.ImageIcon WOLKIG
clouds


BEWOELKT

public static javax.swing.ImageIcon BEWOELKT
partial clouded


REGEN

public static javax.swing.ImageIcon REGEN
rain


LEER

public static javax.swing.ImageIcon LEER
empty 14px


MINILEER

public static javax.swing.ImageIcon MINILEER
empty small 8px


CURRENCYFORMAT

public static java.text.NumberFormat CURRENCYFORMAT

INTEGERFORMAT

public static java.text.DecimalFormat INTEGERFORMAT
wird für das Parsen in parseFloat benötigt


DEFAULTDEZIMALFORMAT

public static java.text.DecimalFormat DEFAULTDEZIMALFORMAT
decimal format - 1 fraction digit


DEZIMALFORMAT_2STELLEN

public static java.text.DecimalFormat DEZIMALFORMAT_2STELLEN
decimal format - 2 fraction digits


DEZIMALFORMAT_3STELLEN

public static java.text.DecimalFormat DEZIMALFORMAT_3STELLEN
decimal format - 3 fraction digits


paneShown

public static boolean paneShown
Schon eine Meldung angezeigt?

Constructor Detail

Helper

public Helper()
Method Detail

getColor4SpielHighlight

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

Parameters:
typ - TODO Missing Method Parameter Documentation
subtyp - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImage4Position

public static javax.swing.ImageIcon getImage4Position(SpielerPosition position,
                                                      int trickotnummer)
TODO Missing Method Documentation

Parameters:
position - TODO Missing Method Parameter Documentation
trickotnummer - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImage4Position

public static javax.swing.ImageIcon getImage4Position(int posid,
                                                      byte taktik,
                                                      int trickotnummer)
Gibt die Grafik zu der Position zurück

Parameters:
posid - TODO Missing Constructuor Parameter Documentation
taktik - TODO Missing Constructuor Parameter Documentation
trickotnummer - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageDurchgestrichen

public static java.awt.Image getImageDurchgestrichen(java.awt.Image image)
Macht einen Kreuz durch das Image

Parameters:
image - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageDurchgestrichen

public static java.awt.Image getImageDurchgestrichen(java.awt.Image image,
                                                     java.awt.Color helleFarbe,
                                                     java.awt.Color dunkleFarbe)
Macht einen Kreuz durch das Image

Parameters:
image - TODO Missing Constructuor Parameter Documentation
helleFarbe - TODO Missing Constructuor Parameter Documentation
dunkleFarbe - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Color

public static javax.swing.ImageIcon getImageIcon4Color(java.awt.Color color)

getImageIcon4Country

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

Parameters:
country - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4GruppeSmilie

public static javax.swing.ImageIcon getImageIcon4GruppeSmilie(java.lang.String gruppe)
Gibt die Grafik für die Gruppe oder Smilie zurück

Parameters:
gruppe - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4MiniGruppe

public 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

Parameters:
gruppe - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Spezialitaet

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

Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4SpielHighlight

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

Parameters:
typ - TODO Missing Method Parameter Documentation
subtyp - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

isWeatherSEHighlight

public static boolean isWeatherSEHighlight(int typ,
                                           int subtyp)
Check, if the highlight is a weather SE highlight.


getImageIcon4Spieltyp

public static javax.swing.ImageIcon getImageIcon4Spieltyp(int spieltyp)
Gibt die Grafik für die Spieltypen zurück

Parameters:
spieltyp - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Trickotnummer

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

Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Veraenderung

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

Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Veraenderung

public static javax.swing.ImageIcon getImageIcon4Veraenderung(int wert,
                                                              boolean aktuell)
TODO Missing Method Documentation

Parameters:
wert - TODO Missing Method Parameter Documentation
aktuell - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4Wetter

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

Parameters:
wert - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getImageIcon4WetterEffekt

public static javax.swing.ImageIcon getImageIcon4WetterEffekt(int wert)
Get the icon for a certain weather effect.


getLogarithmus

public static float getLogarithmus(int value,
                                   int base)

getMaxBewertungWidth

public static int getMaxBewertungWidth(java.util.Vector spieler)
Benötigte Breite für die Spalte in den Tabellen

Parameters:
spieler - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getRandom

public static int getRandom(int maxZahl)
liefert Zufalls Zahl von 0 =< maxZahl

Parameters:
maxZahl - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getTooltiptext4SpielHighlight

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

Parameters:
typ - TODO Missing Method Parameter Documentation
subtyp - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

isUserMatch

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

Parameters:
matchID - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calcCellWidth

public static int calcCellWidth(int width)
Errechnet die Spaltenbreite für den User-Schriftgrösse

Parameters:
width - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

changeColor

public 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

Parameters:
im - TODO Missing Constructuor Parameter Documentation
original - TODO Missing Constructuor Parameter Documentation
change - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

convertTimeMillisToFormatString

public static java.lang.String[] convertTimeMillisToFormatString(double[] timewerte)
Macht aus einem double[] mit Timevalues einen formatierten String[]

Parameters:
timewerte - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

createListModel

public static javax.swing.DefaultComboBoxModel createListModel(java.util.Vector vector)
Erzeugt ein ComboBoxModel aus einem Vector

Parameters:
vector - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

debugCacheTest

public static void debugCacheTest()
Debugausgaben Cache


expandTree

public static void expandTree(javax.swing.JTree tree)
Klappt den JTree komplett auf

Parameters:
tree - TODO Missing Constructuor Parameter Documentation

generateIntArray

public 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

Parameters:
text - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

loadImage

public static java.awt.image.BufferedImage loadImage(java.lang.String datei)
Lädt Grafiken auch im jar-File

Parameters:
datei - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

makeColorTransparent

public static java.awt.Image makeColorTransparent(java.awt.Image im,
                                                  java.awt.Color color)
Macht eine Farbe in dem Bild transparent

Parameters:
im - TODO Missing Constructuor Parameter Documentation
color - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

makeColorTransparent

public 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

Parameters:
im - TODO Missing Constructuor Parameter Documentation
minred - TODO Missing Constructuor Parameter Documentation
mingreen - TODO Missing Constructuor Parameter Documentation
minblue - TODO Missing Constructuor Parameter Documentation
maxred - TODO Missing Constructuor Parameter Documentation
maxgreen - TODO Missing Constructuor Parameter Documentation
maxblue - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

makeGray

public static java.awt.Image makeGray(java.awt.Image im,
                                      float value)
Tauscht eine Farbe im Image durch eine andere

Parameters:
im - TODO Missing Constructuor Parameter Documentation
value - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

markierenComboBox

public static void markierenComboBox(javax.swing.JComboBox combobox,
                                     int id)
Markiert das Element mit der angegeben Id

Parameters:
combobox - TODO Missing Constructuor Parameter Documentation
id - TODO Missing Constructuor Parameter Documentation

parseFloat

public static boolean parseFloat(java.awt.Window parent,
                                 javax.swing.JTextField field,
                                 boolean negativErlaubt)
Parsen mit Defaultdezimaltformat

Parameters:
parent - TODO Missing Constructuor Parameter Documentation
field - TODO Missing Constructuor Parameter Documentation
negativErlaubt - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

parseFloat

public 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

Parameters:
parent - Window, in dem der Fehlerdialog angezeigt werden soll.
field - Das Textfeld mit dem zu prüfenden Wert
negativErlaubt - true, wenn negative Werte erlaubt sind
format - das Dezimalformat
Returns:
true, wenn der Wert im Textfeld ein float ist, ansonsten false

parseInt

public 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

Parameters:
parent - Window, in dem der Fehlerdialog angezeigt werden soll.
field - Das Textfeld mit dem zu prüfenden Wert
negativErlaubt - true, wenn negative Werte erlaubt sind
Returns:
true, wenn der Wert im Textfeld ein int ist, ansonsten false

parseMultiInt

public static int[] parseMultiInt(java.awt.Window parent,
                                  javax.swing.JTextField field,
                                  boolean negativErlaubt,
                                  int maxValue)
Deprecated. Keine Fehlermeldungen! Keine negativ/max Prüfung!

Überprüft den Inhalt eines Textfields, ob der Wert aus ints mit , getrennt besteht, ansonsten setzt er den Wert auf 0

Parameters:
parent - Window, in dem der Fehlerdialog angezeigt werden soll.
field - Das Textfeld mit dem zu prüfenden Wert
negativErlaubt - true, wenn negative Werte erlaubt sind
maxValue - der maximal erlaubte Wert
Returns:
Die Zahlen, wenn der Wert im Textfeld ints sind, ansonsten null

round

public static float round(double wert)
Runden auf eine Nachkommastelle

Parameters:
wert - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

round

public static float round(double wert,
                          int nachkommastellen)
Rundet den übergeben wert auf eine bestimmte nachkommastellen-Anzahl

Parameters:
wert - Der zu rundene Wert
nachkommastellen - Anzahl der Nachkommastellen
Returns:
TODO Missing Return Method Documentation

showMessage

public 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!

Parameters:
parent - TODO Missing Constructuor Parameter Documentation
message - TODO Missing Constructuor Parameter Documentation
titel - TODO Missing Constructuor Parameter Documentation
typ - TODO Missing Constructuor Parameter Documentation

sortintArray

public static int[][] sortintArray(int[][] toSort,
                                   int spaltenindex)

zusammenfuehren

public static java.awt.Image zusammenfuehren(java.awt.Image background,
                                             java.awt.Image foreground)
Kopiert das zweite Image auf das erste

Parameters:
background - TODO Missing Constructuor Parameter Documentation
foreground - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

isAlpha

public static boolean isAlpha(java.lang.String input)
proof if input is a word

Parameters:
input -
Returns:

getNumberFormat

public static java.text.NumberFormat getNumberFormat(boolean currencyformat,
                                                     int nachkommastellen)
Returns a NumberFormat based on the parameters

Parameters:
currencyformat -
nachkommastellen -
Returns: