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

add method draw()

parent 36398a0b
No related branches found
No related tags found
No related merge requests found
package state; package state;
import javafx.scene.canvas.GraphicsContext;
import java.awt.geom.Point2D; import java.awt.geom.Point2D;
import java.util.List; import java.util.List;
...@@ -15,5 +17,9 @@ public abstract class shape implements shape{ ...@@ -15,5 +17,9 @@ public abstract class shape implements shape{
} }
return index; return index;
} }
public void draw(GraphicsContext context){
for(Shape shape : shapes)
shape.draw(context);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment