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
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon BEWOELKT
          TODO Missing Parameter Documentation
static java.text.NumberFormat CURRENCYFORMAT
           
static java.text.DecimalFormat DEFAULTDEZIMALFORMAT
          TODO Missing Parameter Documentation
static java.text.DecimalFormat DEZIMALFORMAT_2STELLEN
          TODO Missing Parameter Documentation
static java.text.DecimalFormat DEZIMALFORMAT_3STELLEN
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon DOPPELGELB
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon DOWNLOADMATCHICON
          TODO Missing Parameter Documentation
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
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon GREYSTARIMAGEICON
          TODO Missing Parameter Documentation
static java.text.DecimalFormat INTEGERFORMAT
          wird für das Parsen in parseFloat benötigt
static javax.swing.ImageIcon KEINTOR
          TODO Missing Parameter Documentation
static ImagePanel LADECOMPONENTE
          Componente zum Grafikenladen
static javax.swing.ImageIcon LEER
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon MANUELL
          TODO Missing Parameter Documentation
static java.lang.String[] MANUELLSMILIES
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon MINILEER
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon NOIMAGEICON
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon NOMATCHICON
          TODO Missing Parameter Documentation
static boolean paneShown
          Schon eine Meldung angezeigt?
static javax.swing.ImageIcon REGEN
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon ROTEKARTE
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon SHOWMATCHICON
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon SONNIG
          TODO Missing Parameter Documentation
static CBItem[] SPIELERPOSITIONEN
          Spielerpositionen
static java.lang.String[] TEAMSMILIES
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon TOR
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_AUSSENVERTEIDIGER
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_FLUEGEL
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_INNENVERTEIDIGER
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_MITTELFELD
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_NONE
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_RESERVE_FLUEGEL
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_RESERVE_INNENVERTEIDIGER
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_RESERVE_MITTELFELD
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_RESERVE_STURM
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_RESERVE_TORWART
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_STURM
          TODO Missing Parameter Documentation
static java.awt.Color TRICKOT_TORWART
          Trickotfarben
static javax.swing.ImageIcon VERLETZT
          TODO Missing Parameter Documentation
static CBItem[] WETTER
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon WETTERGUT
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon WETTERSCHLECHT
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon WOLKIG
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon YELLOWSTARIMAGEICON
          TODO Missing Parameter Documentation
static javax.swing.ImageIcon ZAHNRAD
          TODO Missing Parameter Documentation
 
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)
          TODO Missing Method Documentation
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 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
TODO Missing Parameter Documentation


GREYSTARIMAGEICON

public static javax.swing.ImageIcon GREYSTARIMAGEICON
TODO Missing Parameter Documentation


NOIMAGEICON

public static javax.swing.ImageIcon NOIMAGEICON
TODO Missing Parameter Documentation


NOMATCHICON

public static javax.swing.ImageIcon NOMATCHICON
TODO Missing Parameter Documentation


DOWNLOADMATCHICON

public static javax.swing.ImageIcon DOWNLOADMATCHICON
TODO Missing Parameter Documentation


SHOWMATCHICON

public static javax.swing.ImageIcon SHOWMATCHICON
TODO Missing Parameter Documentation


ROTEKARTE

public static javax.swing.ImageIcon ROTEKARTE
TODO Missing Parameter Documentation


GELBEKARTE

public static javax.swing.ImageIcon GELBEKARTE
TODO Missing Parameter Documentation


DOPPELGELB

public static javax.swing.ImageIcon DOPPELGELB
TODO Missing Parameter Documentation


ANGESCHLAGEN

public static javax.swing.ImageIcon ANGESCHLAGEN
TODO Missing Parameter Documentation


VERLETZT

public static javax.swing.ImageIcon VERLETZT
TODO Missing Parameter Documentation


TOR

public static javax.swing.ImageIcon TOR
TODO Missing Parameter Documentation


KEINTOR

public static javax.swing.ImageIcon KEINTOR
TODO Missing Parameter Documentation


ZAHNRAD

public static javax.swing.ImageIcon ZAHNRAD
TODO Missing Parameter Documentation


MANUELL

public static javax.swing.ImageIcon MANUELL
TODO Missing Parameter Documentation


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
TODO Missing Parameter Documentation


MANUELLSMILIES

public static final java.lang.String[] MANUELLSMILIES
TODO Missing Parameter Documentation


WETTER

public static final CBItem[] WETTER
TODO Missing Parameter Documentation


TRICKOT_TORWART

public static java.awt.Color TRICKOT_TORWART
Trickotfarben


TRICKOT_INNENVERTEIDIGER

public static java.awt.Color TRICKOT_INNENVERTEIDIGER
TODO Missing Parameter Documentation


TRICKOT_AUSSENVERTEIDIGER

public static java.awt.Color TRICKOT_AUSSENVERTEIDIGER
TODO Missing Parameter Documentation


TRICKOT_MITTELFELD

public static java.awt.Color TRICKOT_MITTELFELD
TODO Missing Parameter Documentation


TRICKOT_FLUEGEL

public static java.awt.Color TRICKOT_FLUEGEL
TODO Missing Parameter Documentation


TRICKOT_STURM

public static java.awt.Color TRICKOT_STURM
TODO Missing Parameter Documentation


TRICKOT_RESERVE_TORWART

public static java.awt.Color TRICKOT_RESERVE_TORWART
TODO Missing Parameter Documentation


TRICKOT_RESERVE_INNENVERTEIDIGER

public static java.awt.Color TRICKOT_RESERVE_INNENVERTEIDIGER
TODO Missing Parameter Documentation


TRICKOT_RESERVE_MITTELFELD

public static java.awt.Color TRICKOT_RESERVE_MITTELFELD
TODO Missing Parameter Documentation


TRICKOT_RESERVE_FLUEGEL

public static java.awt.Color TRICKOT_RESERVE_FLUEGEL
TODO Missing Parameter Documentation


TRICKOT_RESERVE_STURM

public static java.awt.Color TRICKOT_RESERVE_STURM
TODO Missing Parameter Documentation


TRICKOT_NONE

public static java.awt.Color TRICKOT_NONE
TODO Missing Parameter Documentation


EMPTYIMAGE

public static de.hattrickorganizer.tools.ExtendedImageIcon EMPTYIMAGE
Images


WETTERSCHLECHT

public static javax.swing.ImageIcon WETTERSCHLECHT
TODO Missing Parameter Documentation


WETTERGUT

public static javax.swing.ImageIcon WETTERGUT
TODO Missing Parameter Documentation


SONNIG

public static javax.swing.ImageIcon SONNIG
TODO Missing Parameter Documentation


WOLKIG

public static javax.swing.ImageIcon WOLKIG
TODO Missing Parameter Documentation


BEWOELKT

public static javax.swing.ImageIcon BEWOELKT
TODO Missing Parameter Documentation


REGEN

public static javax.swing.ImageIcon REGEN
TODO Missing Parameter Documentation


LEER

public static javax.swing.ImageIcon LEER
TODO Missing Parameter Documentation


MINILEER

public static javax.swing.ImageIcon MINILEER
TODO Missing Parameter Documentation


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
TODO Missing Parameter Documentation


DEZIMALFORMAT_2STELLEN

public static java.text.DecimalFormat DEZIMALFORMAT_2STELLEN
TODO Missing Parameter Documentation


DEZIMALFORMAT_3STELLEN

public static java.text.DecimalFormat DEZIMALFORMAT_3STELLEN
TODO Missing Parameter Documentation


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

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)
TODO Missing Method Documentation

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

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: