Class representing single digit in display. Digit is made from 7, 14 or 16 segments with optional decimal point segment. Or digit may be colon, in which case it have only two segments.
public SingleSegment this [int segmentIndex]
Gets reference to certain segment of this digit. Typically there is no need to control segments separately, but instead you can use methods in SegmentDisplay to control whole display, or methods in this class to control content of this single digit.
public abstract int BaseSegmentCount
Gets the base segment count. If this digit is part of seven segment display, this returns 7, etc.
public int TotalSegmentCount
Gets the total number of segments in this digit. Segment count depends on display type (7/14/16 segments). If decimal point is enabled, it will add one more segment. If this digit is colon, there's just two segments.
public void Clear ()
Clear this digit by setting all segments to off state.
public void Fill ()
Fill this digit by setting all segments to on state.
public bool IsColon ()
Check whatever this digit is colon instead of normal digit.
public bool IsDecimalPointEnabled ()
Check whatever this digit have decimal point enabled.
public bool IsEmpty ()
Check whatever all segments in this digit are in off state.
public bool IsFull ()
Check whatever all segments in this digit are in on state.
public bool SetChar (char chr)
Set character to this digit. Supported characters depends on display style (number of segments).
public void SetColonPointStates (bool lowerOn, bool upperOn)
Set colon points on or off. This method doesn't do anything if this digit isn't colon.
public void SetDecimalPointState (bool on)
Set decimal point on or off without touching any other segments. This method doesn't do anything if this digit doesn't have decimal point enabled.