Готовая лабораторная 3

This commit is contained in:
Никита Белянин 2023-11-12 21:58:08 +04:00
parent e7b1870731
commit cb373bd4ed
2 changed files with 1 additions and 1 deletions

View File

@ -37,6 +37,7 @@ public class DrawingStarOrnament implements IOrnamentForm {
g.setColor(Color.BLACK); g.setColor(Color.BLACK);
g.fillOval(10 + _startPosX, 42 + _startPosY, 20, 20); g.fillOval(10 + _startPosX, 42 + _startPosY, 20, 20);
} }
public void Draw(Graphics g, int _startPosX, int _startPosY) { public void Draw(Graphics g, int _startPosX, int _startPosY) {
if (wheels == CountWheels.Two){ if (wheels == CountWheels.Two){
DrawWheels(g,_startPosX, _startPosY); DrawWheels(g,_startPosX, _startPosY);

View File

@ -38,7 +38,6 @@ public class DrawingWheelsCombination implements IOrnamentForm {
g.fillOval(10 + _startPosX, 42 + _startPosY, 20, 20); g.fillOval(10 + _startPosX, 42 + _startPosY, 20, 20);
} }
public void Draw(Graphics g, int _startPosX, int _startPosY) { public void Draw(Graphics g, int _startPosX, int _startPosY) {
if (wheels == CountWheels.Two){ if (wheels == CountWheels.Two){
DrawWheels(g,_startPosX, _startPosY); DrawWheels(g,_startPosX, _startPosY);