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

📄 linkgraphiclist.java

📁 openmap java写的开源数字地图程序. 用applet实现,可以像google map 那样放大缩小地图.
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
    /**     * Write an arc with a certain radius at a Lat/Lon location, and     * allows you to specify units of the radius, as well as the     * number of verticies to use to approximate the arc.     *      * @param latPoint latitude of center of arc in decimal degrees     * @param lonPoint longitude of center of arc in decimal degrees     * @param radius distance     * @param units integer value for units for distance - OMArc.KM,     *        OMArc.MILES, OMArc.NMILES. If < 0, assume decimal     *        degrees.     * @param nverts number of vertices for the poly-arc (if < 3,     *        value is generated internally).     * @param s starting angle of arc, decimal degrees     * @param e angular extent of arc, decimal degrees     * @param properties attributes for the arc.     * @throws IOException     */    public void addArc(float latPoint, float lonPoint, float radius, int units,                       int nverts, float s, float e, LinkProperties properties)            throws IOException {        LinkArc.write(latPoint,                lonPoint,                radius,                units,                nverts,                s,                e,                properties,                link.dos);    }    /**     * Write a bitmap in the response.     *      * @param lt latitude of placement of upper left corner of bitmap.     * @param ln longitude of placement of upper left corner of     *        bitmap.     * @param w pixel width of bitmap.     * @param h pixel height of bitmap.     * @param bytes bitmap data.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkBitmap     */    public void addBitmap(float lt, float ln, int w, int h, byte[] bytes,                          LinkProperties properties) throws IOException {        LinkBitmap.write(lt, ln, w, h, bytes, properties, link.dos);    }    /**     * Write a bitmap in the response.     *      * @param x1 horizontal placement of upper left corner of bitmap.     * @param y1 vertical placement of upper left corner of bitmap.     * @param w pixel width of bitmap.     * @param h pixel height of bitmap.     * @param bytes bitmap data.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkBitmap     */    public void addBitmap(int x1, int y1, int w, int h, byte[] bytes,                          LinkProperties properties) throws IOException {        LinkBitmap.write(x1, y1, w, h, bytes, properties, link.dos);    }    /**     * Write a bitmap in the response.     *      * @param lt latitude of placement of upper left corner of bitmap.     * @param ln longitude of placement of upper left corner of     *        bitmap.     * @param offset_x1 horizontal offset of upper left corner of     *        bitmap.     * @param offset_y1 vertical offset of upper left corner of     *        bitmap.     * @param w pixel width of bitmap.     * @param h pixel height of bitmap.     * @param bytes bitmap data.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkBitmap     */    public void addBitmap(float lt, float ln, int offset_x1, int offset_y1,                          int w, int h, byte[] bytes, LinkProperties properties)            throws IOException {        LinkBitmap.write(lt,                ln,                offset_x1,                offset_y1,                w,                h,                bytes,                properties,                link.dos);    }    /**     * Write a circle in the response.     *      * @param latPoint latitude of placement of center of circle.     * @param lonPoint longitude of placement of center of circle.     * @param w pixel width of circle.     * @param h pixel height of circle.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkCircle     */    public void addCircle(float latPoint, float lonPoint, int w, int h,                          LinkProperties properties) throws IOException {        LinkCircle.write(latPoint, lonPoint, w, h, properties, link.dos);    }    /**     * Write a circle in the response.     *      * @param x1 horizontal pixel placement of center of circle..     * @param y1 vertical pixel placement of center of circle..     * @param w pixel width of circle.     * @param h pixel height of circle.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkCircle     */    public void addCircle(int x1, int y1, int w, int h,                          LinkProperties properties) throws IOException {        LinkCircle.write(x1, y1, w, h, properties, link.dos);    }    /**     * Write a circle in the response.     *      * @param latPoint latitude of placement of center of circle.     * @param lonPoint longitude of placement of center of circle.     * @param offset_x1 horizontal pixel offset of center of circle..     * @param offset_y1 vertical pixel offset of center of circle..     * @param w width of circle.     * @param h height of circle.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkCircle     */    public void addCircle(float latPoint, float lonPoint, int offset_x1,                          int offset_y1, int w, int h, LinkProperties properties)            throws IOException {        LinkCircle.write(latPoint,                lonPoint,                offset_x1,                offset_y1,                w,                h,                properties,                link.dos);    }    /**     * Write a circle in the response.     *      * @param latPoint latitude of placement of center of circle.     * @param lonPoint longitude of placement of center of circle.     * @param radius radius of circle, in decimal degrees..     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkCircle     */    public void addCircle(float latPoint, float lonPoint, float radius,                          LinkProperties properties) throws IOException {        LinkCircle.write(latPoint,                lonPoint,                radius,                -1,                -1,                properties,                link.dos);    }    /**     * Write a circle in the response.     *      * @param latPoint latitude of placement of center of circle.     * @param lonPoint longitude of placement of center of circle.     * @param radius radius of circle, in decimal degrees..     * @param units units of the radius - km, miles, nmiles, degrees..     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkCircle     */    public void addCircle(float latPoint, float lonPoint, float radius,                          int units, LinkProperties properties)            throws IOException {        LinkCircle.write(latPoint,                lonPoint,                radius,                units,                -1,                properties,                link.dos);    }    /**     * Write a circle in the response.     *      * @param latPoint latitude of placement of center of circle.     * @param lonPoint longitude of placement of center of circle.     * @param radius radius of circle, in decimal degrees..     * @param units units of the radius - km, miles, nmiles, degrees..     * @param nverts number of points to use to approximate the     *        circle. If negative, the client algorithm will figure     *        out what is best.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkCircle     */    public void addCircle(float latPoint, float lonPoint, float radius,                          int units, int nverts, LinkProperties properties)            throws IOException {        LinkCircle.write(latPoint,                lonPoint,                radius,                units,                nverts,                properties,                link.dos);    }    /**     * Add a Grid with Lat/Lon placement.     *      * @param lt latitude of the top of the grid.     * @param ln longitude of the left side of the grid.     * @param rows number of vertical points of the grid.     * @param columns number of horizontal points of the grid.     * @param orientation the direction of the vertical axits of the     *        grid, in radians from up ( North).     * @param vResolution degrees/point between rows of the grid.     * @param hResolution degrees/point between columns of the grid.     * @param major designation of the presentation of the data, as     *        columns (COLUMN_MAJOR) or rows (ROW_MAJOR).     * @param data data points of the grid.     * @param properties Properties containing attributes.     * @throws IOException     */    public void addGrid(float lt, float ln, int rows, int columns,                        float orientation, float vResolution,                        float hResolution, int major, int[] data,                        LinkProperties properties) throws IOException {        LinkGrid.write(lt,                ln,                rows,                columns,                orientation,                vResolution,                hResolution,                major,                data,                properties,                link.dos);    }    /**     * Add a Grid with XY placement.     *      * @param x1 window location of the left side of the grid.     * @param y1 window location of the top of the grid.     * @param rows number of vertical points of the grid.     * @param columns number of horizontal points of the grid.     * @param orientation the direction of the vertical axits of the     *        grid, in radians from up ( North).     * @param vResolution pixels/point between rows of the grid.     * @param hResolution pixels/point between columns of the grid.     * @param major designation of the presentation of the data, as     *        columns (COLUMN_MAJOR) or rows (ROW_MAJOR).     * @param data data points of the grid.     * @param properties Properties containing attributes.     * @throws IOException     */    public void addGrid(int x1, int y1, int rows, int columns,                        float orientation, float vResolution,                        float hResolution, int major, int[] data,                        LinkProperties properties) throws IOException {        LinkGrid.write(x1,                y1,                rows,                columns,                orientation,                vResolution,                hResolution,                major,                data,                properties,                link.dos);    }    /**     * Grid Lat/lon placement with XY offset.     *      * @param lt latitude of the top of the grid, before the offset.     * @param ln longitude of the left side of the grid, before the     *        offset.     * @param offset_x1 number of pixels to move grid to the right.     * @param offset_y1 number of pixels to move grid down.     * @param rows number of vertical points of the grid.     * @param columns number of horizontal points of the grid.     * @param orientation the direction of the vertical axits of the     *        grid, in radians from up ( North).     * @param vResolution pixels/point between rows of the grid.     * @param hResolution pixels/point between columns of the grid.     * @param major designation of the presentation of the data, as     *        columns (COLUMN_MAJOR) or rows (ROW_MAJOR).     * @param data data points of the grid.     * @param properties Properties containing attributes.     * @throws IOException     */    public void addGrid(float lt, float ln, int offset_x1, int offset_y1,                        int rows, int columns, float orientation,                        float vResolution, float hResolution, int major,                        int[] data, LinkProperties properties)            throws IOException {        LinkGrid.write(lt,                ln,                offset_x1,                offset_y1,                rows,                columns,                orientation,                vResolution,                hResolution,                major,                data,                properties,                link.dos);    }    /**     * Write a line in the response.     *      * @param lat_1 latitude of placement of start of line.     * @param lon_1 longitude of placement of start of line.     * @param lat_2 latitude of placement of end of line.     * @param lon_2 longitude of placement of end of line.     * @param lineType type of line - straight, rhumb, great circle..     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkLine     */    public void addLine(float lat_1, float lon_1, float lat_2, float lon_2,                        int lineType, LinkProperties properties)            throws IOException {        LinkLine.write(lat_1,                lon_1,                lat_2,                lon_2,                lineType,                properties,                link.dos);    }    /**     * Write a line in the response.     *      * @param lat_1 latitude of placement of start of line.     * @param lon_1 longitude of placement of start of line.     * @param lat_2 latitude of placement of end of line.     * @param lon_2 longitude of placement of end of line.     * @param lineType type of line - straight, rhumb, great circle..     * @param nsegs number of points to use to approximate curved     *        line..     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkLine     */    public void addLine(float lat_1, float lon_1, float lat_2, float lon_2,                        int lineType, int nsegs, LinkProperties properties)            throws IOException {        LinkLine.write(lat_1,                lon_1,                lat_2,                lon_2,                lineType,                nsegs,                properties,                link.dos);    }    /**     * Write a line in the response.     *      * @param x1 Horizontal pixel placement of start of line.     * @param y1 Vertical pixel placement of start of line.     * @param x2 Horizontal pixel placement of end of line.     * @param y2 Vertical pixel placement of end of line.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkLine     */    public void addLine(int x1, int y1, int x2, int y2,                        LinkProperties properties) throws IOException {        LinkLine.write(x1, y1, x2, y2, properties, link.dos);    }

⌨️ 快捷键说明

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