1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
public void affichageDecorDeFond(Graphics g){
Graphics2D comp2D= (Graphics2D)g;
for(int i=0 ; i < this.hauteurDecor ; i++){
for(int j=0 ; j < this.longueurDecor ; j++){
this.tableauDeBase[i][j].affichageEcran(comp2D,i,j);
}
}
}
public void affichageAvion(Graphics g){
Graphics2D comp2D= (Graphics2D)g;
for(int i=0 ; i < this.hauteurCarlingue ; i++){
for(int j=0 ; j < this.longueurCarlingue ; j++){
this.carlingueAvion[i][j].affichageEcran(comp2D,i,j);
}
}
}
public void paint(Graphics g)
{
this.affichageDecorDeFond(g);
this.affichageAvion(g);
}
public void update(Graphics g)
{
this.affichageAvion(g);
} |
Partager