I want to create a simple cad-like java application.
In it there will be a Jframe in which I want to have my shapes. Those shapes will be circles and lines. Also some text will be placed. There will be up to some thousands circles, so speed is an issue. Also the shapes will have to be redrawn all the time (for example for zoom-in etc). Those shapes apart from the "standard" properties of their class I want them to have extra properties declared with new variables such as "cityname" or "speedinthisline". The shapes will have to interact on user actions (click, move ever etc).
I though for the circles I could use circular jbuttons. I found some examples on how to make such buttons, or round shaped frames. Also I found some examples on how to make clickable graphics. In vb.net OvalShape an Lineshape exist that are ready made clickable shape objects.
For ease of usage I would like to have seperate class for each shape type, in which all the extra variables could be declared.
What is the best way to focus my efforts? Go for extending components like buttons, or go for doing something out of Graphics classes? Are there any ready made classes like the ones that exist in vb.net? Any recomendations?