Готовая лабораторная работа 5
This commit is contained in:
parent
1f88f2883e
commit
397c4068b8
@ -42,7 +42,7 @@ public class DrawingWheelsCombination implements IOrnamentForm {
|
|||||||
g.fillRect(_startPosX + 27, _startPosY + 50, 10, 3);
|
g.fillRect(_startPosX + 27, _startPosY + 50, 10, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DrawWheels(Graphics g, int _startPosX, int _startPosY) {
|
public void DrawWheels(Graphics g, int _startPosX, int _startPosY){
|
||||||
g.setColor(Color.BLACK);
|
g.setColor(Color.BLACK);
|
||||||
g.fillOval(10 + _startPosX, 42 + _startPosY, 20, 20);
|
g.fillOval(10 + _startPosX, 42 + _startPosY, 20, 20);
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class FormTankConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Для передвижения wheels по формочке
|
// Для передвижения wheels по формочке
|
||||||
private class WheelTransferable implements Transferable {
|
private class WheelTransferable implements Transferable {
|
||||||
private IOrnamentForm wheelDrawing;
|
private IOrnamentForm wheelDrawing;
|
||||||
private static final DataFlavor wheelDrawingDataFlavor = new DataFlavor(IOrnamentForm.class, "Wheel Drawing");
|
private static final DataFlavor wheelDrawingDataFlavor = new DataFlavor(IOrnamentForm.class, "Wheel Drawing");
|
||||||
public WheelTransferable(IOrnamentForm wheelDrawing) { this.wheelDrawing = wheelDrawing; }
|
public WheelTransferable(IOrnamentForm wheelDrawing) { this.wheelDrawing = wheelDrawing; }
|
||||||
|
Loading…
Reference in New Issue
Block a user