Skip to content
Snippets Groups Projects
Commit e9829f00 authored by BENHILA Douaa's avatar BENHILA Douaa
Browse files

add method draw(GraphicsContext graphicsContext)

parent ca9f3532
Branches
No related tags found
No related merge requests found
package shape;
import javafx.geometry.Point2D;
import java.util.ArrayList;
import java.util.List;
import javafx.scene.canvas.GraphicsContext;
public abstract class AbstractShape implements Shape {
private List<Point2D> points = new ArrayList<>();
......@@ -20,4 +20,6 @@ public abstract class AbstractShape implements Shape {
return points.get(index);
}
public abstract void draw(GraphicsContext graphicsContext);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment