Transférer les fichiers vers 'src/fr/sae/JSonInspector/Graphics'

This commit is contained in:
Romain BESSON 2023-01-16 00:11:01 +01:00
parent 77cb91dc32
commit 02588c42ec

View File

@ -1,4 +1,4 @@
package fr.sae.JSonInspector.Graphics; package JsonInspector.Graphics;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import java.awt.event.MouseListener; import java.awt.event.MouseListener;
@ -7,11 +7,21 @@ public class ArrayObjectListener implements MouseListener {
private final Line line; private final Line line;
private final Frame frame; private final Frame frame;
/**
*
* @param line La ligne écoutée
* @param frame la frame contenant la ligne écoutée
*/
public ArrayObjectListener(Line line, Frame frame) { public ArrayObjectListener(Line line, Frame frame) {
this.line = line; this.line = line;
this.frame = frame; this.frame = frame;
} }
/**
* Change le statut d'affichage de la ligne
* @param e the event to be processed
*/
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
if (line.isShow()) { if (line.isShow()) {
@ -23,18 +33,14 @@ public class ArrayObjectListener implements MouseListener {
} }
@Override @Override
public void mousePressed(MouseEvent e) { public void mousePressed(MouseEvent e) {}
}
@Override @Override
public void mouseReleased(MouseEvent e) { public void mouseReleased(MouseEvent e) {}
}
@Override @Override
public void mouseEntered(MouseEvent e) { public void mouseEntered(MouseEvent e) {}
}
@Override @Override
public void mouseExited(MouseEvent e) { public void mouseExited(MouseEvent e) {}
}
} }