last day (16 days later) » 

3:21 PM
Hey, this is in regards to your question: stackoverflow.com/questions/44670442/…
If you plan on maintaining good design, you should know this is a lot more involved than you think
First, not all shapes have a mathematical definition. To modify a shape properly, you must be able to define it
For example, an Oval has no mathematical definition. If you try defining an Oval, you'll have a hard time as you'll find online there is no specific definition. You could use an Ellipse, which is a type of oval that does have a specific definition
With that said, modifying a shape via a single interface isn't easily possible, unless you wanted to have AbstractShape#setBoundaryPoints(...). Instead, you should wire them via abstractions (passing an AbstractShape to an AbstractElement), then create impls for the different shapes (AbstractShape > CurvedShape > ...) with Element subtypes to go along with em
Although that begs the question of why Element even exists if each shape will expose its own mutation methods. Why do you need Element?
@user1482030
 

  last day (16 days later) »