1package de.ur.mi.oop.graphics;
3import de.ur.mi.oop.app.GraphicsApp;
4import de.ur.mi.oop.colors.Color;
5import de.ur.mi.oop.colors.Colors;
7import java.awt.image.BufferedImage;
32 private Color strokeColor;
47 this.strokeWeight = 0;
63 this(x, y, width, height, color);
64 this.strokeColor = borderColor;
167 this.height = height;
230 this.strokeColor = color;
239 this.strokeWeight = weight;
268 return this.strokeColor;
290 public void move(
float dx,
float dy) {
315 double dx =
object.getXPos() - this.
getXPos();
316 double dy =
object.getYPos() - this.
getYPos();
317 return Math.sqrt(dx * dx + dy * dy);
static GraphicsApp getApp()
void addToDrawBuffer(GraphicsObject object)
GraphicsObject(float x, float y, Color color)
void setBorderColor(Color color)
static final Color DEFAULT_BORDER_COLOR
void setPosition(float xPos, float yPos)
GraphicsObject(float x, float y)
GraphicsObjectType getType()
void setBorderWeight(float weight)
void setWidth(float width)
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 setHeight(float height)
boolean hitTest(float x, float y)
void setBorder(Color color, float weight)
void setColor(Color color)
void move(float dx, float dy)
static final Color DEFAULT_COLOR
double distanceTo(GraphicsObject object)