Package org.eclipse.swt.graphics
Enum Class AutoscalingMode
- All Implemented Interfaces:
Serializable,Comparable<AutoscalingMode>,Constable
Defines the autoscaling behavior used when rendering or computing layout for
controls that support DPI‑aware scaling.
This mode determines whether SWT takes care of the scaling of widgets with respect to the zoom level of the monitor.
ENABLED– Autoscaling is explicitly enabled. Values (such as coordinates, dimensions, or layout metrics) will be adjusted according to the effective scaling factor.DISABLED– Autoscaling is explicitly disabled. Values will be used as‑is without applying any scaling transformations.DISABLED_INHERITED– Autoscaling is disabled for this control and this is inherited by its children. Child controls will also be initialized with DISABLED_INHERITED AutoscalingMode.
- Since:
- 3.133
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoscalingModeReturns the enum constant of this class with the specified name.static AutoscalingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENABLED
-
DISABLED
-
DISABLED_INHERITED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-