亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? arrow.java

?? 圖像檢索的代碼b
?? JAVA
字號:
/*
 * This file is part of Caliph & Emir.
 *
 * Caliph & Emir is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Caliph & Emir is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Caliph & Emir; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Copyright statement:
 * --------------------
 * (c) 2002-2004 by Mathias Lux (mathias@juggle.at) and the Know-Center Graz
 * Inffeldgasse 21a, 8010 Graz, Austria
 * http://www.know-center.at
 */

/*
 * Date: 31.07.2002
 * Time: 09:49:20
 */
package at.know.center.wv_wr.imb.objectcatalog.graphics;

import java.awt.*;
import java.awt.geom.*;

/**
 * Class derived from Shape to create an arrow.
 * @author Mathias Lux, mathias@juggle.at
 */
public class Arrow implements Shape {
    private double ath = 4.0;
    private Line2D line;
    private double thickness;
    private GeneralPath gp;

    /**
     * Main Constructor
     * @param line is the line the arrow is painted along, Point 1 of the Line is the source, Point 2 of the line the target of the arrow.
     * @param thickness gives a hint how bold the arrow is.
     */
    public Arrow(Line2D line, double thickness) {
        this.line = line;
        this.thickness = thickness;
        GeneralPath generalPath = new GeneralPath();

        Point2D sp = line.getP1();
        Point2D tp = line.getP2();

        double vx = (sp.getX() - tp.getX());
        double vy = (sp.getY() - tp.getY());

        double length = Math.sqrt((vx * vx) + (vy * vy));
        vx = vx / length;
        vy = vy / length;

        double nx = vy * thickness / 2;
        double ny = -vx * thickness / 2;

        double athVal = ath;
        double bx = (double) tp.getX() + vx * athVal * 3.0;
        double by = (double) tp.getY() + vy * athVal * 3.0;

        Point2D.Double p1 = new Point2D.Double(sp.getX() + nx, sp.getY() + ny);
        Point2D.Double p2 = new Point2D.Double(bx + nx, by + ny);
        Point2D.Double p3 = new Point2D.Double(bx + athVal * nx, by + athVal * ny);
        Point2D.Double p4 = new Point2D.Double(tp.getX(), tp.getY());
        Point2D.Double p5 = new Point2D.Double(bx - athVal * nx, by - athVal * ny);
        Point2D.Double p6 = new Point2D.Double(bx - nx, by - ny);
        Point2D.Double p7 = new Point2D.Double(sp.getX() - nx, sp.getY() - ny);

        generalPath.moveTo((float) p1.getX(), (float) p1.getY());
        generalPath.lineTo((float) p2.getX(), (float) p2.getY());
        generalPath.lineTo((float) p3.getX(), (float) p3.getY());
        generalPath.lineTo((float) p4.getX(), (float) p4.getY());
        generalPath.lineTo((float) p5.getX(), (float) p5.getY());
        generalPath.lineTo((float) p6.getX(), (float) p6.getY());
        generalPath.lineTo((float) p7.getX(), (float) p7.getY());
        generalPath.closePath();

        gp = generalPath;
        
    }

    /**
     * Tests if the specified <code>Point2D</code> is inside the boundary
     * of this <code>Shape</code>.
     * @param p the specified <code>Point2D</code>
     * @return <code>true</code> if this <code>Shape</code> contains the
     * specified <code>Point2D</code>, <code>false</code> otherwise.
     */
    public boolean contains(Point2D p) {
        return gp.contains(p);
    }


    /**
     * Tests if the specified <code>Rectangle2D</code>
     * is inside the boundary of this <code>Shape</code>.
     * @param r a specified <code>Rectangle2D</code>
     * @return <code>true</code> if this <code>Shape</code> bounds the
     * specified <code>Rectangle2D</code>; <code>false</code> otherwise.
     */
    public boolean contains(Rectangle2D r) {
        return gp.contains(r);
    }

    /**
     * Tests if the specified coordinates are inside the boundary of
     * this <code>Shape</code>.
     * @param x the specified x coordinates
     * @param y the specified y coordinates
     * @return <code>true</code> if the specified coordinates are inside this
     * <code>Shape</code>; <code>false</code> otherwise
     */
    public boolean contains(double x, double y) {
        return gp.contains(x, y);
    }

    /**
     * Tests if the specified rectangular area is inside the boundary of
     * this <code>Shape</code>.
     * @param x,&nbsp;y the specified coordinates
     * @param w the width of the specified rectangular area
     * @param h the height of the specified rectangular area
     * @return <code>true</code> if this <code>Shape</code> contains
     * the specified rectangluar area; <code>false</code> otherwise.
     */
    public boolean contains(double x, double y, double w, double h) {
        return gp.contains(x, y, w, h);
    }

    /** Return the bounding box of the path.
     * @return a {@link java.awt.Rectangle} object that
     * bounds the current path.
     */
    public Rectangle getBounds() {
        return gp.getBounds();
    }

    /**
     * Returns the bounding box of the path.
     * @return a {@link Rectangle2D} object that
     *          bounds the current path.
     */
    public Rectangle2D getBounds2D() {
        return gp.getBounds2D();
    }

    /**
     * Returns a <code>PathIterator</code> object that iterates along the
     * boundary of this <code>Shape</code> and provides access to the
     * geometry of the outline of this <code>Shape</code>.
     * The iterator for this class is not multi-threaded safe,
     * which means that this <code>GeneralPath</code> class does not
     * guarantee that modifications to the geometry of this
     * <code>GeneralPath</code> object do not affect any iterations of
     * that geometry that are already in process.
     * @param at an <code>AffineTransform</code>
     * @return a new <code>PathIterator</code> that iterates along the
     * boundary of this <code>Shape</code> and provides access to the
     * geometry of this <code>Shape</code>'s outline
     */
    public PathIterator getPathIterator(AffineTransform at) {
        return gp.getPathIterator(at);
    }

    /**
     * Returns a <code>PathIterator</code> object that iterates along the
     * boundary of the flattened <code>Shape</code> and provides access to the
     * geometry of the outline of the <code>Shape</code>.
     * The iterator for this class is not multi-threaded safe,
     * which means that this <code>GeneralPath</code> class does not
     * guarantee that modifications to the geometry of this
     * <code>GeneralPath</code> object do not affect any iterations of
     * that geometry that are already in process.
     * @param at an <code>AffineTransform</code>
     * @param flatness the maximum distance that the line segments used to
     *		approximate the curved segments are allowed to deviate
     *		from any point on the original curve
     * @return a new <code>PathIterator</code> that iterates along the flattened
     * <code>Shape</code> boundary.
     */
    public PathIterator getPathIterator(AffineTransform at, double flatness) {
        return gp.getPathIterator(at, flatness);
    }

    /**
     * Tests if the interior of this <code>Shape</code> intersects the
     * interior of a specified <code>Rectangle2D</code>.
     * @param r the specified <code>Rectangle2D</code>
     * @return <code>true</code> if this <code>Shape</code> and the interior
     * 		of the specified <code>Rectangle2D</code> intersect each
     * 		other; <code>false</code> otherwise.
     */
    public boolean intersects(Rectangle2D r) {
        return gp.intersects(r);
    }

    /**
     * Tests if the interior of this <code>Shape</code> intersects the
     * interior of a specified set of rectangular coordinates.
     * @param x,&nbsp;y the specified coordinates
     * @param w the width of the specified rectangular coordinates
     * @param h the height of the specified rectangular coordinates
     * @return <code>true</code> if this <code>Shape</code> and the
     * interior of the specified set of rectangular coordinates intersect
     * each other; <code>false</code> otherwise.
     */
    public boolean intersects(double x, double y, double w, double h) {
        return gp.intersects(x, y, w, h);
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩日日夜夜| 日韩午夜av一区| 精品一区二区三区在线视频| 国产精品第一页第二页第三页| 亚洲美女精品一区| 一二三区精品视频| 国产欧美一区二区精品性色| 欧美性欧美巨大黑白大战| 成人黄色网址在线观看| 精品一区在线看| 亚洲国产日日夜夜| |精品福利一区二区三区| 久久99精品国产| 亚洲成av人片在线| 亚洲免费在线播放| 中文在线一区二区| 久久亚洲捆绑美女| 欧美成人aa大片| 欧美日韩一级视频| 欧美自拍丝袜亚洲| 91免费版在线| 91一区二区在线观看| 高清不卡一区二区| 国产精品一区二区无线| 捆绑调教美女网站视频一区| 天天影视网天天综合色在线播放| 亚洲美女视频一区| 亚洲欧美日韩国产手机在线| 中文字幕av资源一区| 久久精品亚洲精品国产欧美kt∨ | 亚洲精品日韩一| 国产午夜精品理论片a级大结局| 日韩午夜中文字幕| 欧美一区二区三区成人| 欧美一区二区三区免费| 欧美一区日韩一区| 日韩三级视频在线看| 日韩视频一区二区| 日韩欧美国产高清| 精品国产乱码久久久久久闺蜜| 欧美成人乱码一区二区三区| 精品久久久久久最新网址| 日韩你懂的在线播放| 精品伦理精品一区| 久久久久99精品国产片| 久久久久久久久久久黄色| 欧美不卡视频一区| 337p日本欧洲亚洲大胆精品| 久久毛片高清国产| 成人免费在线播放视频| 亚洲欧美日韩国产综合| 亚洲v中文字幕| 激情综合网最新| 成人黄色a**站在线观看| 99视频精品在线| 欧美影院一区二区| 67194成人在线观看| 欧美成人r级一区二区三区| 久久精品男人的天堂| 亚洲欧洲www| 午夜精品一区在线观看| 国产一区二区免费看| caoporm超碰国产精品| 精品视频在线免费| 久久久久久久久久久电影| 国产精品久久福利| 亚洲第一二三四区| 国产一区二区网址| 欧洲一区二区av| 久久久久久久性| 一区二区成人在线视频| 久久99久久99| 91免费看片在线观看| 日韩久久久久久| 亚洲黄色免费网站| 经典三级视频一区| 色综合亚洲欧洲| 日韩限制级电影在线观看| 国产精品沙发午睡系列990531| 午夜激情综合网| 粉嫩av一区二区三区| 欧美日韩不卡一区| 国产精品乱人伦| 欧美bbbbb| 91视频观看视频| 精品少妇一区二区| 亚洲精品美腿丝袜| 国产激情视频一区二区在线观看| 欧美在线观看你懂的| 国产亚洲美州欧州综合国| 亚洲午夜精品在线| 成人久久视频在线观看| 日韩一级二级三级精品视频| 亚洲欧美日韩在线不卡| 国产一区二区三区国产| 欧美日本乱大交xxxxx| 亚洲欧洲一区二区在线播放| 九九热在线视频观看这里只有精品| 91香蕉视频黄| 国产精品拍天天在线| 久久99国内精品| 91精品国产乱| 亚洲一区二区三区中文字幕| 成人开心网精品视频| 精品国产伦一区二区三区观看方式 | 久久亚洲精精品中文字幕早川悠里| 一区二区在线观看视频| 成人小视频免费观看| 日韩欧美一区二区在线视频| 亚洲午夜私人影院| 91免费看`日韩一区二区| 国产日韩亚洲欧美综合| 久久99精品视频| 8v天堂国产在线一区二区| 亚洲一区二区四区蜜桃| 色综合久久久久综合体桃花网| 欧美国产一区二区在线观看 | 在线视频观看一区| 国产精品毛片久久久久久久| 久久精品国产亚洲5555| 日韩欧美视频在线| 免费成人在线观看视频| 欧美日韩大陆在线| 无吗不卡中文字幕| 欧美三区在线视频| 亚洲高清免费在线| 欧美亚洲禁片免费| 亚洲福利视频一区| 欧美日韩高清不卡| 亚洲成人动漫在线观看| 欧美日韩亚洲综合在线| 亚洲成av人片www| 制服丝袜激情欧洲亚洲| 水蜜桃久久夜色精品一区的特点| 欧美日韩午夜在线视频| 亚洲国产成人av| 69p69国产精品| 久久精品国产精品亚洲红杏| 日韩欧美一二区| 国产一区二区精品在线观看| 久久精品夜夜夜夜久久| 国产成人av一区二区三区在线 | 一区二区三区电影在线播| 97精品久久久午夜一区二区三区| 国产精品白丝在线| 色哟哟一区二区三区| 午夜精品久久久久久久99水蜜桃 | 丰满亚洲少妇av| 国产精品国产成人国产三级| 99久久夜色精品国产网站| 亚洲美女偷拍久久| 欧美日韩一区二区电影| 日本系列欧美系列| 欧美精品一区二区三区在线| 国产成人高清视频| 亚洲精品第1页| 欧美日韩国产小视频| 蜜芽一区二区三区| 久久这里只有精品首页| av一区二区三区四区| 亚洲已满18点击进入久久| 91精品国产综合久久精品app| 九九九精品视频| 国产精品丝袜在线| 欧美写真视频网站| 久久精品国产77777蜜臀| 国产精品色哟哟| 欧美视频中文一区二区三区在线观看| 亚洲gay无套男同| 精品久久一区二区三区| 成人av网站在线观看| 午夜视频在线观看一区| 久久久美女毛片| 欧美伊人久久大香线蕉综合69| 欧美96一区二区免费视频| 国产日韩欧美综合在线| 欧美日韩一区二区三区在线| 国产一区二区影院| 亚洲午夜国产一区99re久久| 久久这里只有精品首页| 欧美综合色免费| 国产凹凸在线观看一区二区| 亚洲成年人网站在线观看| 国产清纯白嫩初高生在线观看91| 91豆麻精品91久久久久久| 极品尤物av久久免费看| 亚洲在线中文字幕| 久久久不卡影院| 欧美一区二区三区不卡| 91一区二区在线| 激情久久五月天| 日韩在线一区二区| 日韩理论片网站| 26uuu精品一区二区| 欧美日韩精品一区二区三区| 成人av在线电影| 久久99国产精品久久| 亚洲综合图片区| 国产精品久久久久天堂| 久久影视一区二区|