A common enhancement is a set of event listeners and event producers for every symbol, as in bean-like environments. Whether a screen point lies or not in the symbol. A finer solution would be to obtain a shape rather than a rectangle. A very important method. Allows responsibility, encapsulation, and flexibility at the same time.
Symbols receive mouse events from their container to be processed internally.
For example, adding a control point to a curve is handled by this method. Implements SymbolCreable . Creates a new symbol. A method for setting up a symbol on the screen at a given location. Forces the symbol to show a JDialog in order to modify its internal settings, as color, size, etc.