public static enum SoImageBackground.Styles extends java.lang.Enum<SoImageBackground.Styles> implements IntegerValuedEnum
Enum Constant and Description |
---|
CENTER
Image is rendered actual size, centered in the window
(image aspect ratio is preserved but image may be cropped and background may be visible). |
CROP
Image is centered and stretched to exactly fill the longer dimension of the viewport (width or height)
(image aspect ratio is preserved but portions of image will be cropped if the aspect ratio of the image and viewport are different). |
FIT
Image is centered and stretched to exactly fill the shorter dimension of the viewport (width or height)
(image aspect ratio is preserved but background color will be visible on sides or top and bottom of the image if the aspect ratio of the image and viewport are different). |
LOWER_LEFT
Image is rendered actual size in lower left corner
(image aspect ratio is preserved but image may be cropped and background may be visible). |
LOWER_RIGHT
Image is rendered actual size in lower right corner
(image aspect ratio is preserved but image may be cropped and background may be visible). |
NONE
No image is rendered.
|
STRETCH
Image is stretched to exactly fill the viewport in both directions
(image aspect ratio is not preserved). |
TILE
Image is tiled to fill window starting from lower left corner
(image aspect ratio is preserved). |
UPPER_LEFT
Image is rendered actual size in upper left corner
(image aspect ratio is preserved but image may be cropped and background may be visible). |
UPPER_RIGHT
Image is rendered actual size in upper right corner
(image aspect ratio is preserved but image may be cropped and background may be visible). |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of the enum constant.
|
static SoImageBackground.Styles |
valueOf(int val)
Returns the enum constant of this type with the specified integer value
|
static SoImageBackground.Styles |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoImageBackground.Styles[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoImageBackground.Styles NONE
public static final SoImageBackground.Styles CENTER
public static final SoImageBackground.Styles LOWER_LEFT
public static final SoImageBackground.Styles UPPER_LEFT
public static final SoImageBackground.Styles UPPER_RIGHT
public static final SoImageBackground.Styles LOWER_RIGHT
public static final SoImageBackground.Styles STRETCH
public static final SoImageBackground.Styles TILE
public static final SoImageBackground.Styles CROP
public static final SoImageBackground.Styles FIT
public static SoImageBackground.Styles[] values()
for (SoImageBackground.Styles c : SoImageBackground.Styles.values()) System.out.println(c);
public static SoImageBackground.Styles valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SoImageBackground.Styles valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com