inherits from Panel
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.
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.
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 |
Class Bar defines no fields.
overrides CanAcceptCoupon Call: rarely Override: sometimes
Class Bar overrides CanAcceptCoupon to always return false, rejecting all coupons.
overrides CanStretch Call: rarely Override: sometimes
Class Bar overrides CanStretch to always return false, preventing bars from stretching.
overrides SetTextStyle Call: rarely Override: sometimes
Class Bar overrides SetTextStyle to ensure that the text style of the bar's content is note changed.