Enum PresentationImageScalingMode
- java.lang.Object
-
- java.lang.Enum<PresentationImageScalingMode>
-
- com._1c.g5.v8.dt.form.presentation.model.PresentationImageScalingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<PresentationImageScalingMode>
,org.eclipse.emf.common.util.Enumerator
public enum PresentationImageScalingMode extends Enum<PresentationImageScalingMode> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Image Scaling Mode', and utility methods for working with them. Possible image scaling modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTUAL_SIZE
The 'Actual Size' literal object.AUTO_SIZE
The 'Auto Size' literal object.BY_FONT_SIZE
The 'By Font Size' literal object.PROPORTIONAL
The 'Proportional' literal object.STRETCH
The 'Stretch' literal object.TILE
The 'Tile' literal object.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTUAL_SIZE_VALUE
The 'Actual Size' literal value.static int
AUTO_SIZE_VALUE
The 'Auto Size' literal value.static int
BY_FONT_SIZE_VALUE
The 'By Font Size' literal value.static int
PROPORTIONAL_VALUE
The 'Proportional' literal value.static int
STRETCH_VALUE
The 'Stretch' literal value.static int
TILE_VALUE
The 'Tile' literal value.static List<PresentationImageScalingMode>
VALUES
A public read-only list of all the 'Image Scaling Mode' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PresentationImageScalingMode
get(int value)
Returns the 'Image Scaling Mode' literal with the specified integer value.static PresentationImageScalingMode
get(String literal)
Returns the 'Image Scaling Mode' literal with the specified literal value.static PresentationImageScalingMode
getByName(String name)
Returns the 'Image Scaling Mode' literal with the specified name.String
getLiteral()
String
getName()
int
getValue()
String
toString()
Returns the literal value of the enumerator, which is its string representation.static PresentationImageScalingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PresentationImageScalingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO_SIZE
public static final PresentationImageScalingMode AUTO_SIZE
The 'Auto Size' literal object.- See Also:
AUTO_SIZE_VALUE
-
ACTUAL_SIZE
public static final PresentationImageScalingMode ACTUAL_SIZE
The 'Actual Size' literal object.- See Also:
ACTUAL_SIZE_VALUE
-
STRETCH
public static final PresentationImageScalingMode STRETCH
The 'Stretch' literal object.- See Also:
STRETCH_VALUE
-
PROPORTIONAL
public static final PresentationImageScalingMode PROPORTIONAL
The 'Proportional' literal object.- See Also:
PROPORTIONAL_VALUE
-
TILE
public static final PresentationImageScalingMode TILE
The 'Tile' literal object.- See Also:
TILE_VALUE
-
BY_FONT_SIZE
public static final PresentationImageScalingMode BY_FONT_SIZE
The 'By Font Size' literal object.- See Also:
BY_FONT_SIZE_VALUE
-
-
Field Detail
-
AUTO_SIZE_VALUE
public static final int AUTO_SIZE_VALUE
The 'Auto Size' literal value.- See Also:
AUTO_SIZE
, Constant Field Values
-
ACTUAL_SIZE_VALUE
public static final int ACTUAL_SIZE_VALUE
The 'Actual Size' literal value.- See Also:
ACTUAL_SIZE
, Constant Field Values
-
STRETCH_VALUE
public static final int STRETCH_VALUE
The 'Stretch' literal value.- See Also:
STRETCH
, Constant Field Values
-
PROPORTIONAL_VALUE
public static final int PROPORTIONAL_VALUE
The 'Proportional' literal value.- See Also:
PROPORTIONAL
, Constant Field Values
-
TILE_VALUE
public static final int TILE_VALUE
The 'Tile' literal value.- See Also:
TILE
, Constant Field Values
-
BY_FONT_SIZE_VALUE
public static final int BY_FONT_SIZE_VALUE
The 'By Font Size' literal value.- See Also:
BY_FONT_SIZE
, Constant Field Values
-
VALUES
public static final List<PresentationImageScalingMode> VALUES
A public read-only list of all the 'Image Scaling Mode' enumerators.
-
-
Method Detail
-
values
public static PresentationImageScalingMode[] 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 (PresentationImageScalingMode c : PresentationImageScalingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PresentationImageScalingMode 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
-
get
public static PresentationImageScalingMode get(String literal)
Returns the 'Image Scaling Mode' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
public static PresentationImageScalingMode getByName(String name)
Returns the 'Image Scaling Mode' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
public static PresentationImageScalingMode get(int value)
Returns the 'Image Scaling Mode' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public String getLiteral()
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
public String toString()
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<PresentationImageScalingMode>
-
-