My program needs to display a large number of shapes with text written on them. The number of shapes can be up to 20 thousand. Such a big scheme will turn out. For the speed of work I would like to implement my own kind of shape.
I implemented a class in which one of the fields was a shape object. After in the paint method I wrote text on it. But the problem is that due to the call of this method, when the panel on which the shape is created is invisible, the program will loop.
Total It is necessary either to understand how quickly to display quickly display these shapes with the creation of an inscription in the method of points, or to write something similar. Tell me how to be? and maybe it makes sense to do it on the canvas? I could not get. Rather, not everything was drawn, and when the screen was minimized, everything was blurred. Drawn in a paintbox.