previous chapter contents page top page next chapter


StickyNote

February 29, 1996

inherits from Stamp;

Class Description

Magic Cap defines class StickyNote for small stamps that zoom open when touched into annotation windows that containe other viewables. Users can get sticky notes from the stamper.

Remember that if the documentation and the software (especially the definition files) disagree, always trust the software.

Programming information

Instantiate: rarely
Subclass: rarely
Call its methods: rarely

You probably won't ever create an object or a subclass of class StickyNote. The information in this chapter is provided for debugging and curiosity only.

Methods defined by class StickyNote

Class StickyNote defines the following methods:

Method Description
CanChangeContainers Overridden to disallow being put in another note's annotation window.
Draw Overridden to draw reduced view of annotation window.
MatchText Overridden to check annotation for matching text.
MatchViewable Overridden to check annotation for matching viewable.
SetOrigin Overridden to redraw bounds of annotation if on screen.
Swallow Overridden to swallow anything except coupons.
Tap Overridden to show or hide annotation.
AddToContainer Overridden to encode annotation.
ExtractFromContainer Overridden to extract annotation.

Fields defined by class StickyNote

Class StickyNote defines the following fields:

Field Type Description
Inherited from SingleLinkable
next Object Next item in view list
Inherited from Linkable
previous Object Previous item in view list
Inherited from Viewable
superview Viewable Container for this object
subview Viewable Object contained by this object
relativeOrigin Dot Origin relative to superview
contentSize Dot Size of content rectangle
viewFlags Flags Property settings
labelStyle TextStyle Text style of object's label
color Color Color of object's content
shadow Shadow Shadow drawn with object
sound Sound Sound associated with object
Inherited from Stamp
image Image Image displayed by stamp
Defined by StickyNote
annotation Object Annotation window associated with sticky note

Method Descriptions

CanChangeContainers

overrides CanChangeContainers

Call: rarely
Override: sometimes

Class StickyNote overrides CanChangeContainers to prevent putting sticky notes into the annotation windows of other sticky notes.

Draw

overrides Draw

Call: rarely
Override: sometimes

Class StickyNote overrides Draw to show the first few words of text of the annotation window in the sticky note.

MatchText

overrides MatchText

Call: rarely
Override: sometimes

Class StickyNote overrides MatchText to check the annotation text for a match after calling its inherited implementation.

MatchViewable

overrides MatchViewable

Call: rarely
Override: sometimes

Class StickyNote overrides MatchViewable to check the annotation viewables for a match after calling its inherited implementation.

SetOrigin

overrides SetOrigin

Call: rarely
Override: sometimes

Class StickyNote overrides SetOrigin to redraw the bounds of the annotation if it is on the screen.

Swallow

overrides Swallow

Call: rarely
Override: sometimes

Class StickyNote overrides Swallow to accept any objects except coupons. Swallowed objects are added to the annotation window as subviews. If the user is holding down the option key, coupons are swallowed.

Tap

overrides Tap

Call: rarely
Override: sometimes

Class StickyNote overrides Tap to show or hide the annotation window when the user taps.

AddToContainer

overrides AddToContainer

Call: rarely
Override: sometimes

Class StickyNote overrides AddToContainer to encode the objects in the annotation window after calling its inherited implementation.

ExtractFromContainer

overrides ExtractFromContainer

Call: rarely
Override: sometimes