From 9c85a980447abc56f7cf07272247403c64efa9c0 Mon Sep 17 00:00:00 2001 From: a23022716 <celia.arezki.1@etu.univ-amu.fr> Date: Fri, 11 Oct 2024 12:06:48 +0200 Subject: [PATCH] add interface DrawerState --- src/main/java/shape/tp5/DrawerState.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/java/shape/tp5/DrawerState.java diff --git a/src/main/java/shape/tp5/DrawerState.java b/src/main/java/shape/tp5/DrawerState.java new file mode 100644 index 0000000..74642e2 --- /dev/null +++ b/src/main/java/shape/tp5/DrawerState.java @@ -0,0 +1,12 @@ +package shape.tp5; + +import javafx.scene.canvas.GraphicsContext; + + +public interface DrawerState { + public void mousePressed(DrawerContext context, double x, double y); + public void mouseReleased(DrawerContext context, double x, double y); + public void mouseMoved(DrawerContext context, double x, double y); + public void paint(DrawerContext context, GraphicsContext graphicsContext); + +} \ No newline at end of file -- GitLab