-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFigures.java
More file actions
50 lines (35 loc) · 1002 Bytes
/
Figures.java
File metadata and controls
50 lines (35 loc) · 1002 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import javax.swing.*;
import java.awt.*;
public abstract class Figures implements java.io.Serializable {
private boolean estColorier; //boolean pour savoir si on colorie ou non la figure
private boolean estAfficher; // permettra de savoir si une figure a deja ete afficher ou non
private String nom;
private int couleurf;
// constructeur
public Figures(String nom) {
this.nom = nom;
}
public abstract void dessiner(Graphics g);
public boolean getEstColorier() {
return estColorier;
}
public void setEstColorier(boolean estColorier) {
this.estColorier = estColorier;
}
public String getNom() {
return this.nom;
}
public void setNom(String blaze) {
this.nom = blaze;
}
public boolean getEstAfficher() {
return estAfficher;
}
public void setEstAfficher(boolean estAfficher) {
this.estAfficher = estAfficher;
}
public abstract int getCouleurf();
public String toString() {
return this.getNom();
}
}