diff --git a/linea/linea/Ligne.java b/linea/linea/Ligne.java index 8d0d754..7568a6a 100644 --- a/linea/linea/Ligne.java +++ b/linea/linea/Ligne.java @@ -65,6 +65,16 @@ public class Ligne extends ObjetGraphique{// Hérite de la classe ObjetGraphique // On définit l'épaisseur du trait Graphics2D g2D = (Graphics2D) g; g2D.setStroke(new BasicStroke(3.0f)); + for(Segment s: this.listeSegments){ + s.Afficher(g); + if(SegCourant == null){ + if( (xCercle >= s.x) && ( xCercle <= (s.x + s.xLong) ) ){ + this.SegCourant = s; + }else{ + // Fin itération : rien ne se passe + } + } + } }