GraphicsApp API
Eine überarbeitete und angepasste Variante der originalen GraphicsApp-Umgebung
|
Öffentliche Methoden | |
Background (int width, int height) | |
Öffentliche Methoden geerbt von de.ur.mi.oop.graphics.Rectangle | |
Rectangle (float x, float y, float width, float height, Color color) | |
Rectangle (float x, float y, float width, float height) | |
Öffentliche Methoden geerbt von de.ur.mi.oop.graphics.GraphicsObject | |
GraphicsObject (float x, float y, Color color) | |
GraphicsObject (float x, float y) | |
GraphicsObject (float x, float y, float width, float height, Color color) | |
GraphicsObject (float x, float y, float width, float height, Color color, Color borderColor) | |
GraphicsObject (Point point) | |
void | draw () |
float | getXPos () |
void | setXPos (float xPos) |
float | getYPos () |
void | setYPos (float yPos) |
void | setPosition (float xPos, float yPos) |
float | getWidth () |
float | getHeight () |
void | setWidth (float width) |
void | setHeight (float height) |
float | getTopBorder () |
float | getBottomBorder () |
float | getLeftBorder () |
float | getRightBorder () |
Color | getColor () |
void | setColor (Color color) |
void | setBorderColor (Color color) |
void | setBorderWeight (float weight) |
void | setBorder (Color color, float weight) |
float | getBorderWeight () |
Color | getBorderColor () |
GraphicsObjectType | getType () |
void | move (float dx, float dy) |
boolean | hitTest (float x, float y) |
double | distanceTo (GraphicsObject object) |
Weitere Geerbte Elemente | |
Geschützte Attribute geerbt von de.ur.mi.oop.graphics.GraphicsObject | |
float | strokeWeight |
GraphicsObjectType | type |
Statische, geschützte Attribute geerbt von de.ur.mi.oop.graphics.GraphicsObject | |
static final Color | DEFAULT_COLOR = Colors.RED |
static final Color | DEFAULT_BORDER_COLOR = Colors.BLACK |
Hintergrund-Objekt für die GraphicsApp
Definiert in Zeile 6 der Datei Background.java.
de.ur.mi.oop.graphics.Background.Background | ( | int | width, |
int | height | ||
) |
Definiert in Zeile 8 der Datei Background.java.