Skip to main content

UIAspectRatio

Complete API reference for UIAspectRatio, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: UI

Component: yes


public class UIAspectRatio extends Component

Constructors

SignatureDescription
UIAspectRatio()Creates a new instance of UIAspectRatio.

Virtual Attributes

NameTypeAccessDescription
modeModeget/setVirtual attribute exposed by getMode. Access it like a field to read or write the underlying value.
proportionfloatget/setVirtual attribute exposed by getProportion. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
getMode()ModeReturns the current mode value.
getProportion()floatReturns the current proportion value.
setMode(Mode)voidSets mode.
setProportion(float)voidSets proportion.