Event objects, such as AxisChangeEvent or MarkerChangeEvent, can be created just once on demand and reused. A pattern, similar to delivering javax.swing.AbstractButton#changeEvent, can be employed.
Also, there is no need for AxisChangeEvent or MarkerChangeEvent to subclass ChartChangeEvent. If they subclass EventObject directly, they will be immutable and, consequently, reusable.
Log in to post a comment.