Select Git revision
Forked from
COUETOUX Basile / graphic-2020
9 commits ahead of the upstream repository.
-
BENHILA Douaa authoredBENHILA Douaa authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ShapeContainer.java 392 B
package shape;
import javafx.scene.canvas.GraphicsContext;
import java.util.ArrayList;
import java.util.List;
public class ShapeContainer{
private List<Shape> shapes = new ArrayList<>();
public void addShape(Shape shape){
shapes.add(shape);
}
public void draw(GraphicsContext context){
for(Shape shape : shapes)
shape.draw(context);
}
}