linkgraphiclist.java

来自「OpenMap是一个基于JavaBeansTM的开发工具包。利用OpenMap你」· Java 代码 · 共 1,646 行 · 第 1/5 页

JAVA
1,646
字号
     * Rendertype is RENDERTYPE_XY.     *      * @param x1 window position of center point from left of window, in pixels     * @param y1 window position of center point from top of window, in pixels     * @param majorAxisSpan horizontal diameter of circle/ellipse, pixels     * @param minorAxisSpan vertical diameter of circle/ellipse, pixels     * @param rotateAngle angle of rotation in Radians *     * @param properties the LinkProperties describing the attributes of the     *        ellipse.     */    public void addEllipse(int x1, int y1, int majorAxisSpan,                           int minorAxisSpan, float rotateAngle,                           LinkProperties properties) throws IOException {        LinkEllipse.write(x1,                y1,                majorAxisSpan,                minorAxisSpan,                rotateAngle,                properties,                link.dos);    }    /**     * Create a OMEllipse, positioned with a lat-lon center and x-y axis.     * Rendertype is RENDERTYPE_OFFSET.     *      * @param latPoint latitude of center of circle in decimal degrees     * @param lonPoint longitude of center of circle in decimal degrees     * @param w horizontal diameter of circle/ellipse, pixels     * @param h vertical diameter of circle/ellipse, pixels     * @param rotateAngle angle of rotation in Radians     * @param properties the LinkProperties describing the attributes of the     *        ellipse.     */    public void addEllipse(float latPoint, float lonPoint, int w, int h,                           float rotateAngle, LinkProperties properties)            throws IOException {        LinkEllipse.write(latPoint,                lonPoint,                w,                h,                rotateAngle,                properties,                link.dos);    }    /**     * Create a OMEllipse, positioned at a Lat-lon location, x-y offset, x-y     * axis. Rendertype is RENDERTYPE_OFFSET.     *      * @param latPoint latitude of center of circle in decimal degrees     * @param lonPoint longitude of center of circle in decimal degrees     * @param offset_x1 # pixels to the right the center will be moved from     *        lonPoint.     * @param offset_y1 # pixels down that the center will be moved from     *        latPoint.     * @param w horizontal diameter of circle/ellipse, pixels.     * @param h vertical diameter of circle/ellipse, pixels.     * @param rotateAngle the rotation of the ellipse around the center point,     *        in radians.     * @param properties the LinkProperties describing the attributes of the     *        ellipse.     */    public void addEllipse(float latPoint, float lonPoint, int offset_x1,                           int offset_y1, int w, int h, float rotateAngle,                           LinkProperties properties) throws IOException {        LinkEllipse.write(latPoint,                lonPoint,                offset_x1,                offset_y1,                w,                h,                rotateAngle,                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);    }    /**     * Write a line in the response.     *      * @param lat_1 latitude of placement of line.     * @param lon_1 longitude of placement of line.     * @param x1 Horizontal pixel offset of start of line.     * @param y1 Vertical pixel offset of start of line.     * @param x2 Horizontal pixel offset of end of line.     * @param y2 Vertical pixel offset of end of line.     * @param properties Properties containing attributes.     * @throws IOException     * @see com.bbn.openmap.layer.link.LinkLine     */    public void addLine(float lat_1, float lon_1, int x1, int y1, int x2,                        int y2, LinkProperties properties) throws IOException {        LinkLine.write(lat_1, lon_1, x1, y1, x2, y2, properties, link.dos);    }    /**     * Write a raster in the response.     *      * @param lt latitude of placement of upper left corner of raster.     * @param ln longitude of placement of upper left corner of raster.     * @param ii ImageIcon to place on the map..     * @param properties Properties containing attributes.     * @throws IOException     * @throws InterruptedException     * @see com.bbn.openmap.layer.link.LinkRaster     */    public void addRaster(float lt, float ln, ImageIcon ii,                          LinkProperties properties) throws IOException,            InterruptedException {        LinkRaster.write(lt, ln, ii, properties, link.dos);    }    /**     * Write a raster in the response.     *      * @param x1 horizontal pixel location of upper left corner of raster.     * @param y1 vertical pixel location of upper left corner of raster.     * @param ii ImageIcon to place on the map..     * @param properties Properties containing attributes.     * @throws IOException     * @throws InterruptedException     * @see com.bbn.openmap.layer.link.LinkRaster     */    public void addRaster(int x1, int y1, ImageIcon ii,                          LinkProperties properties) throws IOException,            InterruptedException {        LinkRaster.write(x1, y1, ii, properties, link.dos);    }    /**     * Write a raster in the response.     *      * @param lt latitude of placement of upper left corner of raster.     * @param ln longitude of placement of upper left corner of raster.     * @param offset_x1 horizontal pixel offset of upper left corner of raster.     * @param offset_y1 vertical pixel offset of upper left corner of raster.     * @param ii ImageIcon to place on the map..     * @param properties Properties containing attributes.     * @throws IOException     * @throws InterruptedException     * @see com.bbn.openmap.layer.link.LinkRaster     */    public void addRaster(float lt, float ln, int offset_x1, int offset_y1,                          ImageIcon ii, LinkProperties properties)            throws IOException, InterruptedException {        LinkRaster.write(lt, ln, offset_x1, offset_y1, ii, properties, link.dos);    }    /**     * Write a raster in the response.     *      * @param lt latitude of placement of upper left corner of raster.     * @param ln longitude of placement of upper left corner of raster.     * @param image_width width of raster.

⌨️ 快捷键说明

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