3 author
= "Jérôme Benoit",
6 class Cercle
extends Forme
{
9 Cercle(Point pO
, double r
) {
14 public void dessiner(Piletransformations pile
) {
15 String className
= this.getClass().getSimpleName();
16 Point pTrans
= pile
.getCurrentTransformation();
17 Point pOriTrans
= super.getpOri().additionner(pTrans
);
18 System
.out
.println(className
+ " " + super.getpOri().toString() + "->" + pOriTrans
.toString() + " " + rayon
);
21 public void afficher() {
22 String className
= this.getClass().getSimpleName();
23 System
.out
.println("---- " + className
+ " ----");
24 System
.out
.println(super.getpOri().toString() + " " + rayon
);