public enum SizeFitMode extends Enum<SizeFitMode>
Modifier and Type | Method and Description |
---|---|
Dimension |
fitSize(int availableWidth,
int availableHeight,
int imageWidth,
int imageHeight,
double scaleFactor) |
static SizeFitMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SizeFitMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeFitMode Cover
public static final SizeFitMode Fit
public static final SizeFitMode FitWidth
public static final SizeFitMode FitHeight
public static SizeFitMode[] values()
for (SizeFitMode c : SizeFitMode.values()) System.out.println(c);
public static SizeFitMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Dimension fitSize(int availableWidth, int availableHeight, int imageWidth, int imageHeight, double scaleFactor)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.