previous chapter contents page top page next chapter


ErasableAnnotation

March 15, 1996

inherits from Annotation;
inherits from HasButtonInTitleBar;

Class Description

When the user touches a sticky note, the note zooms open to reveal a window filled with the note's contents. This window is a member of class Annotation. In Magic Cap 1.5, the annotation is an object of class ErasableAnnotation, a subclass of Annotation. If the erasable annotation contains scribbles, Magic Cap puts an erase button in the title bar. The erase button goes away if there are no scribbles in the annotation.

Programming information

Instantiate: rarely
Subclass: rarely
Call its methods: never

When the user gets a new sticky note from the stamper, Magic Cap automatically creates the note's associated annotation object, so you probably won't ever create one of your own.

Methods defined by class ErasableAnnotation

Class ErasableAnnotation defines the following methods:

Method Description
ChangedContents Shows or hides button as appropriate.

Fields defined by class ErasableAnnotation

Class ErasableAnnotation defines no fields.

Method Descriptions

ChangedContents

overrides ChangedContents
Call: rarely
Override: sometimes

Class ErasableAnnotation overrides ChangedContents to show or hide the erase button as appropriate. If there are scribbles in the annotation, the button appears; otherwise, it does not appear.