GraphicsApp API
Eine überarbeitete und angepasste Variante der originalen GraphicsApp-Umgebung
|
Öffentliche Methoden | |
Arc (float x, float y, float radius, float start, float end, Color color, boolean open) | |
Arc (float x, float y, float radius, boolean open) | |
void | setRadius (float radius) |
float | getRadius () |
float | getStart () |
void | setStart (float start) |
float | getEnd () |
void | setEnd (float end) |
float | getWidth () |
float | getHeight () |
void | setWidth (float width) |
void | setHeight (float height) |
![]() | |
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 | 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 | |
![]() | |
float | strokeWeight |
GraphicsObjectType | type |
![]() | |
static final Color | DEFAULT_COLOR = Colors.RED |
static final Color | DEFAULT_BORDER_COLOR = Colors.BLACK |
Die Arc-Klasse ist ein grafisches Objekt, das einen Kreisbogen darstellt.
de.ur.mi.oop.graphics.Arc.Arc | ( | float | x, |
float | y, | ||
float | radius, | ||
float | start, | ||
float | end, | ||
Color | color, | ||
boolean | open | ||
) |
Konstruiert einen Kreisbogen an der Stelle (x, y)
x | Die x-Koordinate des Mittelpunkts |
y | Die y-Koordinate des Mittelpunkts |
radius | Der Radius des Bogens |
start | Der Startwinkel des Bogens in Grad. |
end | Die Winkelausdehnung des Bogens in Grad. |
color | Die Füllfarbe des Bogens |
de.ur.mi.oop.graphics.Arc.Arc | ( | float | x, |
float | y, | ||
float | radius, | ||
boolean | open | ||
) |
float de.ur.mi.oop.graphics.Arc.getEnd | ( | ) |
float de.ur.mi.oop.graphics.Arc.getHeight | ( | ) |
Liefert die Höhe des Objekts.
Erneute Implementation von de.ur.mi.oop.graphics.GraphicsObject.
float de.ur.mi.oop.graphics.Arc.getStart | ( | ) |
float de.ur.mi.oop.graphics.Arc.getWidth | ( | ) |
Liefert die Breite des Objekts.
Erneute Implementation von de.ur.mi.oop.graphics.GraphicsObject.
void de.ur.mi.oop.graphics.Arc.setEnd | ( | float | end | ) |
void de.ur.mi.oop.graphics.Arc.setHeight | ( | float | height | ) |
Setzt die Höhe des Objekts.
height | die neue Breite |
Erneute Implementation von de.ur.mi.oop.graphics.GraphicsObject.
void de.ur.mi.oop.graphics.Arc.setStart | ( | float | start | ) |
void de.ur.mi.oop.graphics.Arc.setWidth | ( | float | width | ) |
Setzt die Breite des Objekts.
width | die neue Breite |
Erneute Implementation von de.ur.mi.oop.graphics.GraphicsObject.