Skip to content
Snippets Groups Projects
Rectangle.java 500 B
Newer Older
  • Learn to ignore specific revisions
  • BasileCouetoux's avatar
    BasileCouetoux committed
    package shape;
    
    import javafx.geometry.Point2D;
    import javafx.scene.canvas.GraphicsContext;
    import javafx.scene.paint.Color;
    
    
    public class Rectangle implements Shape{
        Color color;
        Rectangle(Color color, Point2D point0, Point2D point1){
    
    BasileCouetoux's avatar
    BasileCouetoux committed
            this.color = color;
        }
    
        @Override
    
        public int pointsCount() {
            return 0;
        }
    
    BasileCouetoux's avatar
    BasileCouetoux committed
    
    
        @Override
        public Point2D point(int index) {
            return null;
        }
    
    BasileCouetoux's avatar
    BasileCouetoux committed
    
    
        @Override
        public void draw(GraphicsContext context) {