public void dessinerFleche(Graphics g, int x, int y, int w, int h){ g.drawLine(x+w/2, y, x+w/2, y+h); g.drawLine(x+w/2, y, x, y+h/2); g.drawLine(x+w/2, y, x+w, y+h/2); }
/** * Methode qui permet de dessiner une fleche allant vers le haut */ public void dessinerFlecheHaut(Graphics g, int x, int y, int w, int h){ g.drawLine(x+w/2, y, x+w/2, y+h); g.drawLine(x+w/2, y, x, y+h/2); g.drawLine(x+w/2, y, x+w, y+h/2); }
/** * Methode qui permet de dessiner une fleche allant vers la gauche */ public void dessinerFlecheGauche(Graphics g, int x, int y, int w, int h){ g.drawLine(x, y+h/2, x+w, y+h/2); g.drawLine(x, y+h/2, x+w/2, y); g.drawLine(x, y+h/2, x+w/2, y+h); }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question