ThinProgressBar

Extends
JPanel
Methods
8
Fields
1

Getting one

ThinProgressBar.new()

Methods

MethodReturnsDescription
getMaximumValue()numberThe maximum (at least 1).
getValue()numberThe value.
getPercentage()numberThe value as a whole percentage of the maximum (value * 100 / maximum, in 32-bit integers, truncated), as a number.
setMaximumValue(number)()Sets the maximum (below 1 is 1) and repaints.
setValue(number)()Sets the value and repaints.
new()ThinProgressBarA green bar, maximum 1, value 0.
init(ThinProgressBar)()A green bar, maximum 1, value 0.
isInstance(any)booleanWhether obj is a ThinProgressBar object, a class(ThinProgressBar) subclass's included.

Fields

FieldTypeDescription
superJPanelClassJPanel's class table: the base class.

Returned by

MethodReturnsDescription
ThinProgressBarClass.newThinProgressBarA green bar, maximum 1, value 0.

Method details

getPercentage

getPercentage: (ThinProgressBar) -> number

The value as a whole percentage of the maximum (value * 100 / maximum, in 32-bit integers, truncated), as a number.

isInstance

isInstance: (any) -> boolean

Whether obj is a ThinProgressBar object, a class(ThinProgressBar) subclass's included.