46 lines
721 B
Plaintext
46 lines
721 B
Plaintext
import javafx.scene.paint.Color;
|
|
import javafx.scene.shape.Shape;
|
|
import javafx.scene.shape.Circle;
|
|
/**
|
|
*
|
|
* Beschreibung
|
|
*
|
|
* @version 1.0 vom 30.09.2025
|
|
* @author
|
|
*/
|
|
|
|
public class Chip {
|
|
|
|
public Color color;
|
|
|
|
public int relativeX;
|
|
public int relativeY;
|
|
|
|
public double absoluteX;
|
|
public double absoluteY;
|
|
|
|
public double radius;
|
|
|
|
|
|
public Circle circle;
|
|
|
|
public Chip(relX,relY,absX,absY, Color color) {
|
|
relativeX = relX;
|
|
relativeY = relY;
|
|
|
|
absoluteX = absX;
|
|
absoluteY = absY;
|
|
|
|
this.color = color;
|
|
|
|
radius = 20;
|
|
|
|
circle = new Circle(absoluteX,absoluteY,radius);
|
|
|
|
}
|
|
public Shape getShape() {
|
|
return circle;
|
|
|
|
}
|
|
} // end of Chip
|