PIbd-14_Antonova_A.A.__Hard/DifferenceOfWheels/DrawningOrnamentRectangle.java
2024-05-09 22:23:57 +04:00

27 lines
514 B
Java

package DifferenceOfWheels;
import java.awt.*;
public class DrawningOrnamentRectangle implements IOrnaments{
int CountWeel;
@Override
public void SetCount(int n) {
CountWeel = n;
}
@Override
public int get_count_weels() {
return CountWeel;
}
@Override
public void DrawOrnament(Graphics2D g, int x, int y) {
g.setColor(Color.BLACK);
g.fillOval(x, y, 25, 25);
g.setColor(Color.PINK);
g.fillRect(x + 5, y + 5, 15, 15);
}
}