Enum ControlPosition

java.lang.Object
java.lang.Enum<ControlPosition>
com.flowingcode.vaadin.addons.googlemaps.ControlPosition
All Implemented Interfaces:
Serializable, Comparable<ControlPosition>, java.lang.constant.Constable

public enum ControlPosition extends Enum<ControlPosition>
Enum representing supported control positions for map control buttons.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Indicates that the control should be placed along the bottom center of the map.
    Indicates that the control should be placed along the bottom left of the map, with any sub-elements of the control "flowing" towards the bottom center.
    Indicates that the control should be placed along the bottom right of the map, with any sub-elements of the control "flowing" towards the bottom center.
    Indicates that the control should be placed along the bottom left of the map, but above any BOTTOM_LEFT elements.
    Indicates that the control should be placed along the left side of the map, centered between the TOP_LEFT and BOTTOM_LEFT positions
    Indicates that the control should be placed along the top left of the map, but below any TOP_LEFT elements.
    Indicates that the control should be placed along the bottom right of the map, but above any BOTTOM_RIGHT elements.
    Indicates that the control should be placed along the right side of the map, centered between the TOP_RIGHT and BOTTOM_RIGHT positions.
    Indicates that the control should be placed along the top right of the map, but below any TOP_RIGHT elements.
    Indicates that the control should be placed along the top center of the map.
    Indicates that the control should be placed along the top left of the map, with any sub-elements of the control "flowing" towards the top center.
    Indicates that the control should be placed along the top right of the map, with any sub-elements of the control "flowing" towards the top center.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • TOP_CENTER

      public static final ControlPosition TOP_CENTER
      Indicates that the control should be placed along the top center of the map.
    • TOP_LEFT

      public static final ControlPosition TOP_LEFT
      Indicates that the control should be placed along the top left of the map, with any sub-elements of the control "flowing" towards the top center.
    • TOP_RIGHT

      public static final ControlPosition TOP_RIGHT
      Indicates that the control should be placed along the top right of the map, with any sub-elements of the control "flowing" towards the top center.
    • LEFT_TOP

      public static final ControlPosition LEFT_TOP
      Indicates that the control should be placed along the top left of the map, but below any TOP_LEFT elements.
    • RIGHT_TOP

      public static final ControlPosition RIGHT_TOP
      Indicates that the control should be placed along the top right of the map, but below any TOP_RIGHT elements.
    • LEFT_CENTER

      public static final ControlPosition LEFT_CENTER
      Indicates that the control should be placed along the left side of the map, centered between the TOP_LEFT and BOTTOM_LEFT positions
    • RIGHT_CENTER

      public static final ControlPosition RIGHT_CENTER
      Indicates that the control should be placed along the right side of the map, centered between the TOP_RIGHT and BOTTOM_RIGHT positions.
    • LEFT_BOTTOM

      public static final ControlPosition LEFT_BOTTOM
      Indicates that the control should be placed along the bottom left of the map, but above any BOTTOM_LEFT elements.
    • RIGHT_BOTTOM

      public static final ControlPosition RIGHT_BOTTOM
      Indicates that the control should be placed along the bottom right of the map, but above any BOTTOM_RIGHT elements.
    • BOTTOM_CENTER

      public static final ControlPosition BOTTOM_CENTER
      Indicates that the control should be placed along the bottom center of the map.
    • BOTTOM_LEFT

      public static final ControlPosition BOTTOM_LEFT
      Indicates that the control should be placed along the bottom left of the map, with any sub-elements of the control "flowing" towards the bottom center.
    • BOTTOM_RIGHT

      public static final ControlPosition BOTTOM_RIGHT
      Indicates that the control should be placed along the bottom right of the map, with any sub-elements of the control "flowing" towards the bottom center.
  • Method Details

    • values

      public static ControlPosition[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ControlPosition 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 name
      NullPointerException - if the argument is null