From b50cb4a9f49e59e8c389801f4cce3b4ab3393504 Mon Sep 17 00:00:00 2001 From: Anitonchik Date: Mon, 10 Jun 2024 21:19:03 +0400 Subject: [PATCH] Lab 03-2 --- DrawningWeels.java | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 DrawningWeels.java diff --git a/DrawningWeels.java b/DrawningWeels.java deleted file mode 100644 index d4ab789..0000000 --- a/DrawningWeels.java +++ /dev/null @@ -1,33 +0,0 @@ -import java.awt.*; - -public class DrawningWeels { - private int count; - DrawningWeels (int n){ - count = n; - } - public int get_countWheels(){ - return count; - } - - public void DrawningWeel (Graphics g, int x, int y){ - g.setColor(Color.BLACK); - - switch (get_countWheels()){ - case 2: - g.fillOval(x + 10, y + 67, 25, 25); - g.fillOval(x + 85, y + 67, 25, 25); - break; - case 3: - g.fillOval(x + 10, y + 67, 25, 25); - g.fillOval(x + 38, y + 67, 25, 25); - g.fillOval(x + 85, y + 67, 25, 25); - break; - case 4: - g.fillOval(x + 5, y + 67, 25, 25); - g.fillOval(x + 32, y + 67, 25, 25); - g.fillOval(x + 61, y + 67, 25, 25); - g.fillOval(x + 88, y + 67, 25, 25); - break; - } - } -}