linkgraphiclist.java

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

JAVA
1,646
字号
     * @param offset_y1 # pixels down that the center will be moved from     *        latPoint.     * @param w horizontal diameter of arc, pixels.     * @param h vertical diameter of arc, pixels.     * @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, int offset_x1,                       int offset_y1, int w, int h, float s, float e,                       LinkProperties properties) throws IOException {        LinkArc.write(latPoint,                lonPoint,                offset_x1,                offset_y1,                w,                h,                s,                e,                properties,                link.dos);    }    /**     * Write an arc with a certain radius at a Lat/Lon location. Assumes the     * radius is in decimal degrees.     *      * @param latPoint latitude of center point, decimal degrees     * @param lonPoint longitude of center point, decimal degrees     * @param radius distance in decimal degrees     * @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, float s,                       float e, LinkProperties properties) throws IOException {        LinkArc.write(latPoint,                lonPoint,                radius,                -1,                -1,                s,                e,                properties,                link.dos);    }    /**     * Write an arc with a certain radius at a Lat/Lon location, and allows you     * to specify units of the radius.     *      * @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 - KM, MILES, NMILES. If     *        < 0, assume decimal degrees.     * @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,                       float s, float e, LinkProperties properties)            throws IOException {        LinkArc.write(latPoint,                lonPoint,                radius,                units,                -1,                s,                e,                properties,                link.dos);    }    /**     * 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);    }    /**     * Write an ellipse with Lat/Lon placement with axis defined in terms of     * distance.     *      * @param latPoint latitude of center of circle in decimal degrees     * @param lonPoint longitude of center of circle in decimal degrees     * @param majorAxisSpan x axis value, units     * @param minorAxisSpan y axis value, units     * @param units integer value for units for distance - OMCircle.KM,     *        OMCircle.MILES, OMCircle.NMILES. If < 0, assume decimal     *        degrees.     * @param rotationAngle The angle by which the circle/ellipse is to be     *        rotated, in radians     *      * @param properties attributes for the circle.     * @throws IOException     */    public void addEllipse(float latPoint, float lonPoint, float majorAxisSpan,                           float minorAxisSpan, int units, float rotationAngle,                           LinkProperties properties) throws IOException {        LinkEllipse.write(latPoint,                lonPoint,                majorAxisSpan,                minorAxisSpan,                units,                rotationAngle,                properties,                link.dos);    }    /**     * Create a OMEllipse, positioned with a x-y center with x-y axis.

⌨️ 快捷键说明

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