Готовая лабораторная 3
This commit is contained in:
parent
e7b1870731
commit
cb373bd4ed
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user