|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apogames.help.ApoHelp
public class ApoHelp
Hilfsklasse, die einige Methoden zur Verfügung stellt, welche man immer mal wieder gebrauchen kann, aber in dafür keine extra Klasse geschrieben werden muss
| Constructor Summary | |
|---|---|
ApoHelp()
Konstruktor |
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
blurImage(java.awt.image.BufferedImage image)
|
static double |
getAngleBetween2Points(float x1,
float y1,
float x2,
float y2)
|
static double |
getAngleBetween2Points(java.awt.Point a,
java.awt.Point b)
gibt den Winkel zwischen 2 Punkten zurück |
static java.util.ArrayList<ApoFloatPoint> |
getCircleCuts(float x1,
float y1,
float radius1,
float x2,
float y2,
float radius2)
|
static java.lang.String |
getClipboardContents()
Get the String residing on the clipboard. |
static boolean[] |
getCopy(boolean[] copyArray)
gibt ein kopiertes gleiches Feld zurück |
static byte[][] |
getCopy(byte[][] copyArray)
gibt ein kopiertes gleiches Feld zurück |
static int[][] |
getCopy(int[][] copyArray)
gibt ein kopiertes gleiches Feld zurück |
static java.lang.String |
getMd5Digest(java.lang.String pInput)
gibt den MD5 Hash eines Strings zurück |
static int |
getRandomValue(int value,
int plus)
gibt einen Zufallswert zurück |
static java.lang.String |
getTimeToDraw(int time)
gibt den String mit der Zeitangabe zurück |
static boolean |
rectangleContains(float rect1x,
float rect1y,
float rect1w,
float rect1h,
float rect2x,
float rect2y)
|
static boolean |
rectangleIntersects(float rect1x,
float rect1y,
float rect1w,
float rect1h,
float rect2x,
float rect2y,
float rect2w,
float rect2h)
|
static java.awt.image.BufferedImage |
rotateImage(java.awt.image.BufferedImage src,
double degrees)
erste Methode um ein Bild zu drehen, bei Angabe des Winkels funktioniert nur perfekt bei Bildern, deren Maße width = height ist |
static java.awt.image.BufferedImage |
rotateImageMethodTwo(java.awt.image.BufferedImage inputImage,
double degrees)
erste Methode um ein Bild zu drehen, bei Angabe des Winkels funktioniert bei allen Bildern |
static float |
round(float value,
int adjust)
rundet einen übergebenen Wert auf die nachgefragte Stellen |
static void |
setClipboardContents(java.lang.String string)
Place a String on the clipboard |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApoHelp()
| Method Detail |
|---|
public static java.awt.image.BufferedImage rotateImage(java.awt.image.BufferedImage src,
double degrees)
src - = Bilder welches gedreht werden solldegrees - = Winkelangabe
public static java.awt.image.BufferedImage rotateImageMethodTwo(java.awt.image.BufferedImage inputImage,
double degrees)
inputImage - = Bilder welches gedreht werden solldegrees - = Winkelangabe
public static float round(float value,
int adjust)
value - = Der zu rundende float Wertadjust - = wieviel Stellen nach dem Komma
public static double getAngleBetween2Points(java.awt.Point a,
java.awt.Point b)
a - = Punkt Ab - = Punkt B
public static double getAngleBetween2Points(float x1,
float y1,
float x2,
float y2)
public static java.util.ArrayList<ApoFloatPoint> getCircleCuts(float x1,
float y1,
float radius1,
float x2,
float y2,
float radius2)
public static java.lang.String getTimeToDraw(int time)
public static int getRandomValue(int value,
int plus)
public static boolean[] getCopy(boolean[] copyArray)
copyArray - : das zu kopierende Array
public static byte[][] getCopy(byte[][] copyArray)
copyArray - : das zu kopierende Array
public static int[][] getCopy(int[][] copyArray)
copyArray - : das zu kopierende Array
public static java.lang.String getMd5Digest(java.lang.String pInput)
pInput - : Inputstring
public static void setClipboardContents(java.lang.String string)
string - public static java.lang.String getClipboardContents()
public static boolean rectangleIntersects(float rect1x,
float rect1y,
float rect1w,
float rect1h,
float rect2x,
float rect2y,
float rect2w,
float rect2h)
public static boolean rectangleContains(float rect1x,
float rect1y,
float rect1w,
float rect1h,
float rect2x,
float rect2y)
public static java.awt.image.BufferedImage blurImage(java.awt.image.BufferedImage image)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||