Skip to content
Snippets Groups Projects
Commit 7234ee7d authored by VIOLA Anthony's avatar VIOLA Anthony
Browse files

Exercice 2 TP3

parent 5430d003
Branches
No related tags found
No related merge requests found
Pipeline #21413 failed
package shape;
import javafx.geometry.Point2D;
import javafx.scene.canvas.GraphicsContext;
abstract public class Decorator implements Shape{
private Shape decoratedShape;
Decorator(){
public int pointsCount() {
return decoratedShape.pointsCount();
}
public Point2D point(int index) {
return decoratedShape.point(index);
}
@Override
public void draw(GraphicsContext context) {
decoratedShape.draw(context);
}
abstract void drawDecoration(GraphicsContext graphicsContext);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment