- Direct Known Subclasses:
- Axes2D, ConformalMapFigure, DotCloudSurface, NormalBundleDecoration, RepereMobileDecoration, TangentAndNormalDecoration
public abstract class Decorationextends ObjectDecorations are extra visual components that can be added to an Exhibit, such as a set of axes or a solution curve of an ODE. Decorations can be added either to Views or directly to Exhibits -- a decoration that is added to a View is visible only in that View. A decoration that is added to an Exhibit is visible in all Views of that Exhibit.
When a Decoration is added to an Exhibit or View, that object will listen for ChangeEvents from the Decoration. These events will produce the necessary redrawing. The listening is set up automatically when the Decoration is added.
This is an abstract class, even though it has no abstract methods. Subclasses will probably override the
doDrawmethod and possibly the
computeDrawDatamethod. However, subclasses might also provide some other method for drawing the decoration.
Note that to work correctly with the XML save/restore facility defined in
SaveAndRestore, a subclass of Decoration must have a parameterless constructor, and it must be an independent class or a public nested class. However, decorations are not saved by default, so this is not a consideration for all subclasses.