public enum RegionDimension extends Enum<RegionDimension>
Modifier and Type | Method and Description |
---|---|
abstract double |
getMaxSize(Region region) |
abstract double |
getMinSize(Region region) |
abstract double |
getPrefSize(Region region) |
abstract double |
getSize(Region region) |
abstract void |
setMaxSize(Region region,
double maxSize) |
abstract void |
setMinSize(Region region,
double minSize) |
abstract void |
setPrefSize(Region region,
double prefSize) |
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
public static final RegionDimension HEIGHT
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)
public abstract double getPrefSize(Region region)
public abstract void setPrefSize(Region region, double prefSize)
public abstract double getMinSize(Region region)
public abstract void setMinSize(Region region, double minSize)
public abstract double getMaxSize(Region region)
public abstract void setMaxSize(Region region, double maxSize)
Copyright © 2012–2017 Drombler. All rights reserved.