com.esri.map
Class LocationOnMap

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by com.esri.map.LocationOnMap
All Implemented Interfaces:
Serializable, Cloneable

public class LocationOnMap
extends Point

Used to determine the location of a component on map. The location can be specified as an absolute value or as a relative value.

This can be used to place components such as copyright, for example JMap.setCopyrightLocation(LocationOnMap).

Example for absolute value:
LocationOnMap location = new LocationOnMap(240, 250);

Example for relative value:
LocationOnMap location = LocationOnMap.BOTTOM_LEFT;

Since:
10.1.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
static int ABSOLUTE_POSITION_ID
           
static LocationOnMap BOTTOM_LEFT
           
static int BOTTOM_LEFT_ID
           
static LocationOnMap BOTTOM_RIGHT
           
static int BOTTOM_RIGHT_ID
           
static LocationOnMap TOP_LEFT
           
static int TOP_LEFT_ID
           
static LocationOnMap TOP_RIGHT
           
static int TOP_RIGHT_ID
           
 
Fields inherited from class java.awt.Point
x, y
 
Constructor Summary
LocationOnMap(int x, int y)
           
LocationOnMap(Point p)
           
 
Method Summary
 int getId()
           
 
Methods inherited from class java.awt.Point
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ABSOLUTE_POSITION_ID

public static final int ABSOLUTE_POSITION_ID
See Also:
Constant Field Values

BOTTOM_LEFT_ID

public static final int BOTTOM_LEFT_ID
See Also:
Constant Field Values

TOP_LEFT_ID

public static final int TOP_LEFT_ID
See Also:
Constant Field Values

TOP_RIGHT_ID

public static final int TOP_RIGHT_ID
See Also:
Constant Field Values

BOTTOM_RIGHT_ID

public static final int BOTTOM_RIGHT_ID
See Also:
Constant Field Values

BOTTOM_LEFT

public static final LocationOnMap BOTTOM_LEFT

TOP_LEFT

public static final LocationOnMap TOP_LEFT

TOP_RIGHT

public static final LocationOnMap TOP_RIGHT

BOTTOM_RIGHT

public static final LocationOnMap BOTTOM_RIGHT
Constructor Detail

LocationOnMap

public LocationOnMap(int x,
                     int y)

LocationOnMap

public LocationOnMap(Point p)
Method Detail

getId

public int getId()


Copyright © 2012. All Rights Reserved.