мизерные правочки
This commit is contained in:
parent
4e19e9e451
commit
66e78a4fbf
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user