PIbd-14_Antonova_A.A.__Hard/CanvasDumpTruck.java
2024-05-09 20:19:53 +04:00

18 lines
446 B
Java

import javax.swing.*;
import java.awt.*;
public class CanvasDumpTruck extends JComponent {
public DrawningDumpTruck _drawningDumpTruck;
public CanvasDumpTruck() {}
public void paintComponent(Graphics g) {
if (_drawningDumpTruck == null) {
return;
}
super.paintComponents(g);
Graphics2D g2d = (Graphics2D) g;
_drawningDumpTruck.DrawTransport(g2d);
super.repaint();
}
}