PIbd-11 Karakozov_AK LabWork03 Hard #3
@ -1,16 +0,0 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class CanvasExcavator extends JComponent{
|
||||
public DrawingExcavator _drawingExcavator;
|
||||
public CanvasExcavator(){}
|
||||
public void paintComponent(Graphics g){
|
||||
if(_drawingExcavator == null){
|
||||
return;
|
||||
}
|
||||
super.paintComponent(g);
|
||||
Graphics2D g2d = (Graphics2D) g;
|
||||
_drawingExcavator.DrawTransport(g2d);
|
||||
super.repaint();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user