мизерные правочки

This commit is contained in:
Галина Федоренко 2023-11-18 23:00:41 +04:00
parent 4e19e9e451
commit 66e78a4fbf
3 changed files with 4 additions and 5 deletions

View File

@ -12,8 +12,7 @@ public abstract class AbstractStrategy {
public Status GetStatus() { return _state; }
public void SetData(IMoveableObject moveableObject, int width, int
height)
public void SetData(IMoveableObject moveableObject, int width, int height)
{
if (moveableObject == null)
{

View File

@ -21,8 +21,8 @@ public class FormPlaneCollecltion {
public void paintComponent (Graphics g){
super.paintComponent(g);
if (_planes.ShowTrains() != null) {
g.drawImage(_planes.ShowTrains(), 0, 0, this);
if (_planes.ShowPlanes() != null) {
g.drawImage(_planes.ShowPlanes(), 0, 0, this);
}
super.repaint();
}

View File

@ -49,7 +49,7 @@ public class PlanesGenericCollection<T extends DrawingPlane, U extends IMoveable
return (U)_collection.Get(pos).GetMoveableObject();
}
public BufferedImage ShowTrains()
public BufferedImage ShowPlanes()
{
BufferedImage bmp = new BufferedImage(_pictureWidth, _pictureHeight, BufferedImage.TYPE_INT_ARGB);
Graphics2D g = bmp.createGraphics();