MarginallyClever / Robot-Overlord-App

Simulation and control software for robots
https://www.marginallyclever.com/
GNU General Public License v2.0
157 stars 48 forks source link

Separate models from their views. #228

Closed i-make-robots closed 5 months ago

i-make-robots commented 6 months ago

Every Node has a getComponents() which produces a JComponent of some kind. These could be extracted to a separate class so that the View of the Node is forced to adhere to the Node's interface (no cheating!) Further, many classes have settings and no way to control them. If they used the same View system then their control panels would be discoverable via Reflection.

This may be overkill. Since I only need one control panel for each App, I can just collate them in RO3Frame.

i-make-robots commented 5 months ago

View annotation is not being used and yet I'm pretty satisfied with how things are working. Will reopen if there's a brilliant way to make this much better.