previous chapter contents page top page next chapter


Bar

February 29, 1996

inherits from Panel

Class Description

Class Bar is a highly specialized subclass of panel that is designed primarily a superclass for classes NameBar and ControlBar. Class Bar customizes its superclass, Panel, in a few ways that are common to both NameBar and ControlBar.

Programming information

Instantiate: rarely
Subclass: rarely
Call its methods: never

You probably won't ever create an object of class Bar or its subclasses. Instead, you'd probably create a subclass of Bar, although you'll rarely do that, either.

Methods defined by class Bar

Class Bar defines the following methods:

Method Description
CanAcceptCoupon Overridden to reject all coupons.
CanStretch Overridden to avoid stretching.
SetTextStyle Overridden to avoid changing text style.
TextStyle

Fields defined by class Bar

Class Bar defines no fields.

Method Descriptions

CanAcceptCoupon

overrides CanAcceptCoupon

Call: rarely
Override: sometimes

Class Bar overrides CanAcceptCoupon to always return false, rejecting all coupons.

CanStretch

overrides CanStretch

Call: rarely
Override: sometimes

Class Bar overrides CanStretch to always return false, preventing bars from stretching.

SetTextStyle

overrides SetTextStyle

Call: rarely
Override: sometimes

Class Bar overrides SetTextStyle to ensure that the text style of the bar's content is note changed.