anqitong / LangageDessinVectoriel

1 stars 2 forks source link

Idea for composite pattern #59

Closed anqitong closed 8 years ago

anqitong commented 8 years ago

Let's see the canvas or the SVG file as a paper filled with Shapes. Interface : Liste Classes : FilledArea = Cons(Shape head , Liste rest) Circle, Ellipse, ... etc implements Shape / add EmptyTile implements Shape too

And then, in svg file, we can have as attribute : private Liste listShapes;

anqitong commented 8 years ago

Rectification : we can also use generic names such as Liste, Cons and TerminalElement, so that we could reuse this composite pattern somewhere else.

starsasumi commented 8 years ago

We can add a method to get this list. But for the pattern and other generic interfaces, I don't know much yet.

anqitong commented 8 years ago

In fact I was wondering if it is too late, because now if we chang something, almost everything has to be changed

Thomas-dot-G commented 8 years ago

something composite can be added, and some modif can be easealy done

starsasumi commented 8 years ago

For me, I think we should focus on finishing the gui first I think.

anqitong commented 8 years ago

The gui is done, can you test it? #63

starsasumi commented 8 years ago

@anqitong It already works? I will test it later. Could you also test #67 #66 for me?