UIDataScaleObject
final class UIDataScaleObject
Package: dev.joid.lib.ui.core.data · Module: core · Source: UIDataScaleObject.java
The interface-scale options of @UIDataScale for a running UI.
Description
Section titled “Description”UI.getScale returns it; a change applies from the next frame.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
UIDataScaleObject | create() factory | Creates the options with the default values of UIDataScale. |
Properties
Section titled “Properties”| Property | Type | Default | Summary |
|---|---|---|---|
| limit | double | 1D | Largest interface scale applied when the scale is limited. |
| active | boolean | true | If false, the UI ignores the interface scale. |
| limited | boolean | false | If true, the interface scale never goes above limit. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
double | apply(double interfaceScale) | Returns the interface scale that the UI uses for this scale of the bridge: 1 when the option is off, at most limit when it is limited. |
String | toString() | Returns the class and the value of every option, for logs. |
Creation details
Section titled “Creation details”create
Section titled “create”UIDataScaleObject create() factory
Creates the options with the default values of UIDataScale.
Property details
Section titled “Property details”this limit(double limit)fluentdouble limit()
Default: 1D
Largest interface scale applied when the scale is limited.
active
Section titled “active”this active(boolean active)fluentboolean active()
Default: true
If false, the UI ignores the interface scale.
limited
Section titled “limited”this limited(boolean limited)fluentboolean limited()
Default: false
If true, the interface scale never goes above limit.
Method details
Section titled “Method details”double apply(double interfaceScale)
Returns the interface scale that the UI uses for this scale of the bridge: 1 when the option is off, at most limit when it is limited.
toString
Section titled “toString”String toString()
Returns the class and the value of every option, for logs.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
