⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 envelope.java

📁 在ArcGIS中应用EJB的实例
💻 JAVA
字号:

package com.esri.arcgis.samples.ejb.value;

/**
 * The Envelope value object that is used to pass coordinate sets between
 * the EJB's and the clients. Passing multiple values in value objects can reduce
 * network traffic, and increase performance with fewer RMI calls.
 */

public class Envelope implements java.io.Serializable {
    
    private double m_minx;
    private double m_maxx;
    private double m_miny;
    private double m_maxy;
    
    /**
     * Constructs an empty instance of the Envelope value object.
     */
    
    public Envelope() {
    }
    
    /**
     * Constructs a populated instance of the Envelope value object.
     * @param minX the min x value of the Envelope value object.
     * @param maxX the max x value of the Envelope value object.
     * @param minY the min y value of the Envelope value object.
     * @param maxY the max y value of the Envelope value object.
     */
    
    public Envelope(double minX, double maxX, double minY, double maxY){
     this.m_minx = minX;   
     this.m_maxx = maxX;
     this.m_miny = minY;
     this.m_maxy = maxY;
    }
    
    /**
     * Sets the X min value of the Envelope value object.
     * @param minx the X min value to assign.
     * @see #getMinX()
     */
    
    public void setMinX(double minx){
        this.m_minx = minx;
    }
    
    /**
     * Returns the X min value of the Envelope value object.
     * @return the X min value as double.
     * @see #setMinX(double minx)
     */
    
    public double getMinX(){
        return this.m_minx;
    }
    
    /**
     * Sets the X max value of the Envelope value object.
     * @param maxx the x=X max value to assign.
     * @see #getMaxX()
     */
    
    public void setMaxX(double maxx){
        this.m_maxx = maxx;
    }
    
    /**
     * Returns the X max value of the Envelope value object.
     * @return the X max value as double.
     * @see #setMaxX(double maxx)
     */
    
    public double getMaxX(){
        return this.m_maxx;
    }
    
    /**
     * Sets the Y min value of the Envelope value object.
     * @param miny the X min value to assign.
     * @see #getMinY()
     */
    
    public void setMinY(double miny){
        this.m_miny = miny;
    }
    
    /**
     * Returns the Y min value of the Envelope value object.
     * @return the Y min value as double.
     * @see #setMinY(double miny)
     */
    
    public double getMinY(){
        return this.m_miny;
    }
    
    /**
     * Sets the Y maxvalue of the Envelope value object.
     * @param maxy the Y max value to assign.
     * @see #getMaxY()
     */
    
    public void setMaxY(double maxy){
        this.m_maxy = maxy;
    }
    
    /**
     * Returns the Y max value of the Envelope value object.
     * @return the Y max value as double.
     * @see #setMaxY(double maxy)
     */
    
    public double getMaxY(){
        return this.m_maxy;
    } 
}

⌨️ 快捷键说明

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