update 30.09
This commit is contained in:
47
Chip.java
Normal file
47
Chip.java
Normal file
@@ -0,0 +1,47 @@
|
||||
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;
|
||||
|
||||
this.color = color;
|
||||
circle = new Circle(absoluteX, absoluteY, radius);
|
||||
circle.setFill(this.color);
|
||||
|
||||
}
|
||||
public Shape getShape() {
|
||||
return circle;
|
||||
|
||||
}
|
||||
} // end of Chip
|
||||
Reference in New Issue
Block a user