Follow us on GitHub

com.google.gwt.maps.client.controls
Enum ControlPosition

java.lang.Object
  extended by java.lang.Enum<ControlPosition>
      extended by com.google.gwt.maps.client.controls.ControlPosition
All Implemented Interfaces:
Serializable, Comparable<ControlPosition>

public enum ControlPosition
extends Enum<ControlPosition>

Identifiers used to specify the placement of controls on the map. Controls are positioned relative to other controls in the same layout position. Controls that are added first are positioned closer to the edge of the map.

TL TC TR
LT RT
     
LC RC
     
LB LB
BL BC BR

Elements in the top or bottom row flow towards the middle. Elements at the left or right sides flow downwards.

See ControlPosition API Doc


Enum Constant Summary
BOTTOM_CENTER
          Elements are positioned in the center of the bottom row.
BOTTOM_LEFT
          Elements are positioned in the bottom left and flow towards the middle.
BOTTOM_RIGHT
          Elements are positioned in the bottom right and flow towards the middle.
LEFT_BOTTOM
          Elements are positioned on the left, above bottom-left elements, and flow upwards.
LEFT_CENTER
          Elements are positioned in the center of the left side.
LEFT_TOP
          Elements are positioned on the left, below top-left elements, and flow downwards.
RIGHT_BOTTOM
          Elements are positioned on the right, above bottom-right elements, and flow upwards.
RIGHT_CENTER
          Elements are positioned in the center of the right side.
RIGHT_TOP
          Elements are positioned on the right, below top-right elements, and flow downwards.
TOP_CENTER
          Elements are positioned in the center of the top row.
TOP_LEFT
          Elements are positioned in the top left and flow towards the middle.
TOP_RIGHT
          Elements are positioned in the top right and flow towards the middle.
 
Method Summary
static ControlPosition fromValue(int value)
          reconstruct from position from javascript constant value
 String getName()
          returns enum name
 String toString()
           
 int value()
          returns javascript constant value
static ControlPosition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ControlPosition[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOTTOM_CENTER

public static final ControlPosition BOTTOM_CENTER
Elements are positioned in the center of the bottom row.


BOTTOM_LEFT

public static final ControlPosition BOTTOM_LEFT
Elements are positioned in the bottom left and flow towards the middle. Elements are positioned to the right of the Google logo.


BOTTOM_RIGHT

public static final ControlPosition BOTTOM_RIGHT
Elements are positioned in the bottom right and flow towards the middle. Elements are positioned to the left of the copyrights.


LEFT_BOTTOM

public static final ControlPosition LEFT_BOTTOM
Elements are positioned on the left, above bottom-left elements, and flow upwards.


LEFT_CENTER

public static final ControlPosition LEFT_CENTER
Elements are positioned in the center of the left side.


LEFT_TOP

public static final ControlPosition LEFT_TOP
Elements are positioned on the left, below top-left elements, and flow downwards.


RIGHT_BOTTOM

public static final ControlPosition RIGHT_BOTTOM
Elements are positioned on the right, above bottom-right elements, and flow upwards.


RIGHT_CENTER

public static final ControlPosition RIGHT_CENTER
Elements are positioned in the center of the right side.


RIGHT_TOP

public static final ControlPosition RIGHT_TOP
Elements are positioned on the right, below top-right elements, and flow downwards.


TOP_CENTER

public static final ControlPosition TOP_CENTER
Elements are positioned in the center of the top row.


TOP_LEFT

public static final ControlPosition TOP_LEFT
Elements are positioned in the top left and flow towards the middle.


TOP_RIGHT

public static final ControlPosition TOP_RIGHT
Elements are positioned in the top right and flow towards the middle.

Method Detail

values

public static ControlPosition[] 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 (ControlPosition c : ControlPosition.values())
    System.out.println(c);

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

getName

public String getName()
returns enum name


value

public int value()
returns javascript constant value


toString

public String toString()
Overrides:
toString in class Enum<ControlPosition>

fromValue

public static ControlPosition fromValue(int value)
reconstruct from position from javascript constant value

Parameters:
value - javascript constant value


Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.