Class AAnnotationContentComponent

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
info.monitorenter.gui.chart.annotations.AAnnotationContentComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
AnnotationContentComponentDataValues

public abstract class AAnnotationContentComponent extends JPanel
A special JComponent for rendering annotation content.

The methods paint(java.awt.Graphics) and Container.paintComponents(java.awt.Graphics) are finalized to enforce implementations to use paintAnnotation(Graphics, Chart2D, ITrace2D, ITracePoint2D) for custom rendering. The finalized methods will invoke the latter method with the appropriate parameters.

The visible annotation that will contain this "content panel" will respect the method JComponent.getPreferredSize() of implementations and enlarge it's bounds to guarantee that all content is shown.

Author:
Achim Westermann
See Also: