--- /dev/null
+
+class Cercle extends Forme {
+ private double rayon;
+
+ Cercle(Point pO, double r) {
+ super(pO);
+ rayon = r;
+ }
+
+ public void dessiner(Piletransformations pile) {
+ String className = this.getClass().getSimpleName();
+ Point pTrans = pile.getCurrentTransformation();
+ Point pOriTrans = super.getpOri().additionner(pTrans);
+ System.out.println(className + " " + super.getpOri().toString() + "->" + pOriTrans.toString() + " " + rayon);
+ }
+
+ public void afficher() {
+ String className = this.getClass().getSimpleName();
+ System.out.println("---- " + className + " ----");
+ System.out.println(super.getpOri().toString() + " " + rayon);
+ }
+
+}