Enum TileScalingType
- java.lang.Object
-
- java.lang.Enum<TileScalingType>
-
- mil.nga.geopackage.extension.nga.scale.TileScalingType
-
- All Implemented Interfaces:
Serializable
,Comparable<TileScalingType>
public enum TileScalingType extends Enum<TileScalingType>
Tile Scaling Type enumeration for defining scaled tile searching of nearby zoom levels in place of missing tiles- Since:
- 2.0.2
- Author:
- osbornb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEST_IN_OUT
Search for tiles in closest zoom level order, zoom in levels before zoom outCLOSEST_OUT_IN
Search for tiles in closest zoom level order, zoom out levels before zoom inIN
Search for tiles by zooming inIN_OUT
Search for tiles by zooming in first, and then zooming outOUT
Search for tiles by zooming outOUT_IN
Search for tiles by zooming out first, and then zooming in
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TileScalingType
fromName(String name)
Get the Tile Scaling Type from the nameString
getName()
Get the namestatic TileScalingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TileScalingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN
public static final TileScalingType IN
Search for tiles by zooming in
-
OUT
public static final TileScalingType OUT
Search for tiles by zooming out
-
IN_OUT
public static final TileScalingType IN_OUT
Search for tiles by zooming in first, and then zooming out
-
OUT_IN
public static final TileScalingType OUT_IN
Search for tiles by zooming out first, and then zooming in
-
CLOSEST_IN_OUT
public static final TileScalingType CLOSEST_IN_OUT
Search for tiles in closest zoom level order, zoom in levels before zoom out
-
CLOSEST_OUT_IN
public static final TileScalingType CLOSEST_OUT_IN
Search for tiles in closest zoom level order, zoom out levels before zoom in
-
-
Method Detail
-
values
public static TileScalingType[] 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 (TileScalingType c : TileScalingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TileScalingType 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
-
getName
public String getName()
Get the name- Returns:
- name
-
fromName
public static TileScalingType fromName(String name)
Get the Tile Scaling Type from the name- Parameters:
name
- name- Returns:
- tile scaling type
-
-