public enum RegionDimension extends Enum<RegionDimension>
Enum Constant and Description |
---|
HEIGHT
The height of a
Region . |
WIDTH
The width of a
Region . |
Modifier and Type | Method and Description |
---|---|
abstract double |
getMaxSize(Region region)
Gets the maximal size of a region dimension.
|
abstract double |
getMinSize(Region region)
Gets the minimum size of a region dimension.
|
abstract double |
getPrefSize(Region region)
Gets the preferred size of a region dimension.
|
abstract double |
getSize(Region region)
Gets the size of a region dimension.
|
abstract void |
setMaxSize(Region region,
double maxSize)
Sets the maximal size of a region dimension.
|
abstract void |
setMinSize(Region region,
double minSize)
Sets the minimum size of a region dimension.
|
abstract void |
setPrefSize(Region region,
double prefSize)
Sets the preferred size of a region dimension.
|
static RegionDimension |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegionDimension[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegionDimension WIDTH
Region
.public static final RegionDimension HEIGHT
Region
.public static RegionDimension[] values()
for (RegionDimension c : RegionDimension.values()) System.out.println(c);
public static RegionDimension 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 abstract double getSize(Region region)
region
- the regionpublic abstract double getPrefSize(Region region)
region
- the regionpublic abstract void setPrefSize(Region region, double prefSize)
region
- the regionprefSize
- the preferred size of a region dimensionpublic abstract double getMinSize(Region region)
region
- the regionpublic abstract void setMinSize(Region region, double minSize)
region
- the regionminSize
- the minimum size of a region dimensionpublic abstract double getMaxSize(Region region)
region
- the regionpublic abstract void setMaxSize(Region region, double maxSize)
region
- the regionmaxSize
- the maximal size of a region dimensionCopyright © 2012–2019 Drombler. All rights reserved.