setLeftLabel
setLeftLabel: (ProgressBar, string?) -> ()Sets the left label's text.
ProgressBar.new()| Method | Returns | Description |
|---|---|---|
setLeftLabel(string?) | () | Sets the left label's text. |
setRightLabel(string?) | () | Sets the right label's text. |
setCenterLabel(string?) | () | Sets the centre label's text, shown unless the bar is dimmed. |
setDimmedText(string?) | () | Sets the text the centre label shows while the bar is dimmed. |
getPercentage() | number | The value as a whole percentage of the maximum (value * 100 / maximum, in 32-bit integers, truncated); 0 when the maximum is 0. |
setMaximumValue(number) | () | Sets the maximum and repaints. |
setValue(number) | () | Sets the value and repaints. |
setPositions({number}?) | () | Sets the positions (values on the maximum's scale) marked past the bar, and repaints. The list is copied. |
new() | ProgressBar | A green bar (Color.GREEN.darker() behind Color.GREEN.brighter()), empty. |
init(ProgressBar) | () | A green bar (Color.GREEN.darker() behind Color.GREEN.brighter()), empty. |
isInstance(any) | boolean | Whether obj is a ProgressBar object, a class(ProgressBar) subclass's included. |
| Field | Type | Description |
|---|---|---|
super | DimmableJPanelClass | DimmableJPanel's class table: the base class. |
| Method | Returns | Description |
|---|---|---|
ProgressBarClass.new | ProgressBar | A green bar (Color.GREEN.darker() behind Color.GREEN.brighter()), empty. |
setLeftLabelsetLeftLabel: (ProgressBar, string?) -> ()Sets the left label's text.
setRightLabelsetRightLabel: (ProgressBar, string?) -> ()Sets the right label's text.
setCenterLabelsetCenterLabel: (ProgressBar, string?) -> ()Sets the centre label's text, shown unless the bar is dimmed.
setDimmedTextsetDimmedText: (ProgressBar, string?) -> ()Sets the text the centre label shows while the bar is dimmed.
getPercentagegetPercentage: (ProgressBar) -> numberThe value as a whole percentage of the maximum (value * 100 / maximum, in 32-bit integers, truncated); 0 when the maximum is 0.
setMaximumValuesetMaximumValue: (ProgressBar, number) -> ()Sets the maximum and repaints.
setValuesetValue: (ProgressBar, number) -> ()Sets the value and repaints.
setPositionssetPositions: (ProgressBar, {number}?) -> ()Sets the positions (values on the maximum's scale) marked past the bar, and repaints. The list is copied.
newnew: () -> ProgressBarA green bar (Color.GREEN.darker() behind Color.GREEN.brighter()), empty.
initinit: (ProgressBar) -> ()A green bar (Color.GREEN.darker() behind Color.GREEN.brighter()), empty.
isInstanceisInstance: (any) -> booleanWhether obj is a ProgressBar object, a class(ProgressBar) subclass's included.