Skip to content
Snippets Groups Projects
Commit 7552b9ea authored by BENHILA Douaa's avatar BENHILA Douaa
Browse files

add method draw

parent 94014854
No related branches found
No related tags found
No related merge requests found
package shape;
import javafx.geometry.Point2D;
import javafx.scene.canvas.GraphicsContext;
public abstract class Decorator implements Shape {
protected Shape decoratedShape;
......@@ -17,4 +18,9 @@ public abstract class Decorator implements Shape {
public Point2D point(int index) {
return decoratedShape.point(index);
}
@Override
public void draw(GraphicsContext graphicsContext) {
decoratedShape.draw(graphicsContext);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment