point.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 82 行

JAVA
82
字号
package com.esri.solutions.jitk.services.elevation;

/**
 * Represents information about a Point on the Map.  The Point
 * will be in Map coordinates and not Screen Coordinates.
 */
public class Point {

	/**
	 * X-coordinate
	 */
	private double m_x;
	
	/**
	 * Y-coordinate
	 */
	private double m_y;
	
	/**
	 * Spatial Reference System ID.
	 */
	private int m_srsId;
	
	/**
	 * Returns the X-coordinate of the Point.
	 * 
	 * @return	X-coordinate.
	 */
	public double getX() {
		return m_x;
	}
	
	/**
	 * Sets the X-coordinate of the Point.
	 * 
	 * @param x	X-coordinate
	 */
	public void setX(double x) {
		this.m_x = x;
	}
	
	/**
	 * Returns the Y-coordinate of the Point.
	 * 
	 * @return	Y-coordinate.
	 */
	public double getY() {
		return m_y;
	}
	
	/**
	 * Sets the Y-coordinate of the Point.
	 * 
	 * @param y	Y-coordinate
	 */
	public void setY(double y) {
		this.m_y = y;
	}
	
	/**
	 * Returns the ID of the Spatial Reference System of the
	 * Point.  The ID is also known as the Factory Code of
	 * the Spatial Reference System.
	 * 
	 * @return ID of Spatial Reference System.
	 */
	public int getSrsId() {
		return m_srsId;
	}
	
	/**
	 * Sets the ID of the Spatial Reference System of the
	 * Point.  The ID is also known as the Factory Code
	 * of the Spatial Reference System.
	 * 
	 * @param id	ID of the Spatial Reference System.
	 */
	public void setSrsId(int id) {
		m_srsId = id;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?