the ParameterNumber to display and edit
Optional
textField: HTMLInputElementthe text field to use; if not provided, then a text field is created.
Returns the number of significant digits to show when formatting the number. Only has an effect in variable decimal places mode, see getDecimalPlaces.
the number of significant digits to show when formatting the number
Returns the value of this control (which should match the target value if observe is being called). The displayed value may be different due to rounding.
the value of this control
Notifies this Observer that a change has occurred in the Subject.
contains information about what has changed in the Subject: typically either a one-time GenericEvent, or a change to the value of a Parameter
Sets the fixed number of fractional decimal places to show when formatting the number, or a value of –1 puts this into variable decimal places mode where the number of decimal places depends on the desired number of significant digits. See setSignifDigits.
the fixed number of fractional decimal places to show when formatting the number, or –1 to have variable number of fractional decimal places.
this object for chaining setters
Sets the number of significant digits to show when formatting the number. Only has an effect in variable decimal places mode, see setDecimalPlaces.
the number of significant digits to show when formatting the number
this object for chaining setters
Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.
For an object whose main purpose is to represent another Printable object, it is
recommended to include the result of calling toStringShort
on that other object.
For example, calling toStringShort()
on a DisplayShape might return something like
this:
DisplayShape{polygon:Polygon{'chain3'}}
a minimal string representation of this object.
Generated using TypeDoc
A text input element for displaying and editing the numeric value of a ParameterNumber.