Package dev.avelar.mapnik
Enum Class AspectFixMode
- All Implemented Interfaces:
Serializable,Comparable<AspectFixMode>,Constable
What
MapnikMap.zoomToBox(double, double, double, double) does when the requested box does not have the same aspect
ratio as the map's pixel size. The order matches Mapnik's enum.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdjust the box's height; leave its width and the map size.Adjust the box's width; leave its height and the map size.Adjust the map's height; leave its width and the box.Adjust the map's width; leave its height and the box.Grow the box's width or height to fill the map size.Grow the map's width or height to fit the box.Do nothing: the box is used exactly, so pixels may be stretched.Shrink the box's width or height to fill the map size.Shrink the map's width or height to fit the box. -
Method Summary
Modifier and TypeMethodDescriptionstatic AspectFixModeReturns the enum constant of this class with the specified name.static AspectFixMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GROW_BBOX
Grow the box's width or height to fill the map size. The default. -
GROW_CANVAS
Grow the map's width or height to fit the box. -
SHRINK_BBOX
Shrink the box's width or height to fill the map size. -
SHRINK_CANVAS
Shrink the map's width or height to fit the box. -
ADJUST_BBOX_WIDTH
Adjust the box's width; leave its height and the map size. -
ADJUST_BBOX_HEIGHT
Adjust the box's height; leave its width and the map size. -
ADJUST_CANVAS_WIDTH
Adjust the map's width; leave its height and the box. -
ADJUST_CANVAS_HEIGHT
Adjust the map's height; leave its width and the box. -
RESPECT
Do nothing: the box is used exactly, so pixels may be stretched.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-