Package com.esri.arcgisruntime.symbology
Enum SymbolSizeUnits
- java.lang.Object
-
- java.lang.Enum<SymbolSizeUnits>
-
- com.esri.arcgisruntime.symbology.SymbolSizeUnits
-
- All Implemented Interfaces:
Serializable
,Comparable<SymbolSizeUnits>
public enum SymbolSizeUnits extends Enum<SymbolSizeUnits>
Represents possible size units for ModelSceneSymbols. The different types can be applied to symbols usingModelSceneSymbol.setSymbolSizeUnits(SymbolSizeUnits)
and affect how the symbols are scaled when the camera distance changes.- Since:
- 100.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SymbolSizeUnits
valueOf(String name)
Returns the enum constant of this type with the specified name.static SymbolSizeUnits[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIPS
public static final SymbolSizeUnits DIPS
Render the affected symbol by interpreting the size values as DIPs. Symbols in this mode remain the same size in density-independent pixels (dp) no matter the camera's distance from the symbol itself. This has the effect of making the symbol appear the same size on the screen regardless of how far the camera is from the symbol.- Since:
- 100.5.0
-
METERS
public static final SymbolSizeUnits METERS
Render the affected symbol by interpreting the size values as meters. Symbols in this mode remain the same size in meters no matter the camera's distance from the symbol itself. This has the effect of making the symbol appear smaller the further away the camera is.- Since:
- 100.5.0
-
-
Method Detail
-
values
public static SymbolSizeUnits[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SymbolSizeUnits c : SymbolSizeUnits.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SymbolSizeUnits valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-