Skip to content

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.

UI.getScale returns it; a change applies from the next frame.

ReturnsSignatureSummary
UIDataScaleObjectcreate() factoryCreates the options with the default values of UIDataScale.

PropertyTypeDefaultSummary
limitdouble1DLargest interface scale applied when the scale is limited.
activebooleantrueIf false, the UI ignores the interface scale.
limitedbooleanfalseIf true, the interface scale never goes above limit.

ReturnsSignatureSummary
doubleapply(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.
StringtoString()Returns the class and the value of every option, for logs.

UIDataScaleObject create() factory

Creates the options with the default values of UIDataScale.

  • this limit(double limit) fluent
  • double limit()

Default: 1D

Largest interface scale applied when the scale is limited.

  • this active(boolean active) fluent
  • boolean active()

Default: true

If false, the UI ignores the interface scale.

  • this limited(boolean limited) fluent
  • boolean limited()

Default: false

If true, the interface scale never goes above limit.

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.


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

Report a problem with this page