name
name: (LabelDisplayMode) -> stringThe constant's name as declared.
LabelDisplayMode.valueOf(…)
LabelDisplayMode.PERCENTAGE
LabelDisplayMode.FULL| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | name(); tostring(c) answers the same. |
compareTo(LabelDisplayMode) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {LabelDisplayMode} | Every constant in ordinal order, as a new 1-based array. |
valueOf(string) | LabelDisplayMode | The constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
PERCENTAGE | LabelDisplayMode | PERCENTAGE: ordinal 0, the value as a percentage. |
FULL | LabelDisplayMode | FULL: ordinal 1, value/maximum. |
TEXT_ONLY | LabelDisplayMode | TEXT_ONLY: ordinal 2, the centre label only. |
BOTH | LabelDisplayMode | BOTH: ordinal 3, value/maximum (percentage). |
| Method | Returns | Description |
|---|---|---|
LabelDisplayModeClass.valueOf | LabelDisplayMode | The constant named name; any other name is an error. |
LabelDisplayModeClass.values | {LabelDisplayMode} | Every constant in ordinal order, as a new 1-based array. |
namename: (LabelDisplayMode) -> stringThe constant's name as declared.
ordinalordinal: (LabelDisplayMode) -> numberThe constant's 0-based position in values().
toStringtoString: (LabelDisplayMode) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (LabelDisplayMode, LabelDisplayMode) -> numberThis ordinal less other's.
equalsequals: (LabelDisplayMode, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {LabelDisplayMode}Every constant in ordinal order, as a new 1-based array.
valueOfvalueOf: (string) -> LabelDisplayModeThe constant named name; any other name is an error.