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

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

?? arrow.java

?? 基于MPEG 7 標準,符合未來語義網架構,很值得參考
?? 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-2005 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.knowcenter.caliph.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一区二区三区免费野_久草精品视频
这里是久久伊人| 一道本成人在线| 日韩精品一区第一页| 亚洲大片精品永久免费| 亚洲精品国产精华液| 亚洲一区二区四区蜜桃| 亚洲一区自拍偷拍| 天天影视色香欲综合网老头| 午夜精品久久久久久久99水蜜桃| 亚洲成人免费看| 欧美aaaaaa午夜精品| 韩国v欧美v日本v亚洲v| 国产精品18久久久| 99国产精品视频免费观看| 在线看不卡av| 欧美成人猛片aaaaaaa| 国产视频一区二区在线| 亚洲精品视频在线看| 亚洲成人精品一区| 国精产品一区一区三区mba视频| 国产一区 二区| 91传媒视频在线播放| 日韩视频在线你懂得| 日本一区免费视频| 午夜久久久久久久久久一区二区| 黄色成人免费在线| 91麻豆免费看片| 欧美一区二区福利在线| 国产日韩av一区| 亚洲r级在线视频| 国产美女一区二区三区| 国产激情一区二区三区| 在线看日韩精品电影| 2019国产精品| 亚洲成人自拍偷拍| 国产成人av电影在线| 欧美乱熟臀69xxxxxx| 国产精品视频一二| 免费成人性网站| 色综合天天综合| 国产午夜精品一区二区| 午夜久久久久久| 91丨porny丨在线| 日韩免费高清av| 亚洲综合男人的天堂| 国产999精品久久| 精品乱人伦小说| 亚洲一区二区三区视频在线| 豆国产96在线|亚洲| 日韩欧美一级在线播放| 亚洲国产日韩一区二区| 9i看片成人免费高清| 久久精品在线观看| 九九精品视频在线看| 日本久久电影网| 久久久午夜精品理论片中文字幕| 亚洲成人福利片| 欧美亚洲日本一区| 中文字幕视频一区| 国产69精品久久777的优势| 日韩欧美在线123| 视频一区在线播放| 欧美日韩一区二区三区四区五区 | 日韩精品欧美精品| 色94色欧美sute亚洲13| 中文字幕一区二区三区av| 国产一区啦啦啦在线观看| 日韩欧美在线123| 另类综合日韩欧美亚洲| 91精品国产综合久久精品| 天堂av在线一区| 欧美酷刑日本凌虐凌虐| 三级久久三级久久久| 欧美日韩国产一二三| 婷婷久久综合九色国产成人| 51午夜精品国产| 麻豆精品一二三| 欧美精品一区二区三区久久久| 人人爽香蕉精品| 精品毛片乱码1区2区3区 | 99精品黄色片免费大全| 国产精品欧美经典| 91亚洲男人天堂| 亚洲成人精品影院| 欧美大白屁股肥臀xxxxxx| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美一区二区福利在线| 精品一区二区三区在线播放 | 99视频热这里只有精品免费| 亚洲天天做日日做天天谢日日欢| 成人av在线播放网址| 日韩美女久久久| 6080午夜不卡| 国产一区免费电影| 亚洲视频香蕉人妖| 欧美日韩aaaaaa| 国产一区二区美女诱惑| 一区二区三区不卡视频| 91精品国产综合久久蜜臀| 九九热在线视频观看这里只有精品| 久久久久久久久蜜桃| 97久久人人超碰| 日韩精品免费专区| 中文字幕精品一区二区精品绿巨人 | 久久超碰97中文字幕| 国产色婷婷亚洲99精品小说| 色综合久久久久综合99| 麻豆久久一区二区| 亚洲人成精品久久久久| 欧美一区二区三区在线视频| 国产·精品毛片| 日韩国产欧美三级| 国产精品视频你懂的| 欧美一级xxx| 91视频你懂的| 国内精品在线播放| 婷婷亚洲久悠悠色悠在线播放 | 91在线无精精品入口| 蜜臀99久久精品久久久久久软件 | 欧美伊人精品成人久久综合97| 免费不卡在线观看| 一区二区视频免费在线观看| 精品国精品国产| 欧美日韩成人一区| 色婷婷综合久色| 国产黑丝在线一区二区三区| 日av在线不卡| 日韩精品一区第一页| 亚洲人xxxx| 国产精品第一页第二页第三页| 日韩三区在线观看| 欧美精品一级二级| 色综合久久88色综合天天免费| 高清国产一区二区三区| 狠狠色综合播放一区二区| 视频在线观看一区| 亚洲成av人影院| 国产精品传媒入口麻豆| 国产欧美一区二区精品秋霞影院 | 一区二区三区四区不卡在线| 久久精品无码一区二区三区| 91精品国产一区二区三区蜜臀 | 国产激情偷乱视频一区二区三区| 日韩精品欧美精品| 三级在线观看一区二区 | 国产亚洲欧美在线| 日韩欧美的一区二区| 7799精品视频| 欧美日韩视频不卡| 欧美美女网站色| 91精品久久久久久蜜臀| 欧美日韩精品系列| 欧美一区中文字幕| 欧美变态tickle挠乳网站| 欧美一级视频精品观看| 日韩欧美资源站| 久久久99久久精品欧美| 久久久精品影视| 国产精品护士白丝一区av| 亚洲另类一区二区| 亚洲国产你懂的| 精品制服美女丁香| 国产成人a级片| 91小视频在线| 欧美日韩成人高清| 精品人在线二区三区| 国产日韩影视精品| 最新欧美精品一区二区三区| 亚洲激情自拍偷拍| 亚洲成a天堂v人片| 精油按摩中文字幕久久| 波波电影院一区二区三区| 波多野结衣一区二区三区| 色悠悠亚洲一区二区| 欧美日韩夫妻久久| 精品99999| 一区二区三区中文字幕精品精品 | 欧美一区二区三区公司| 国产日韩欧美亚洲| 亚洲影院久久精品| 国内欧美视频一区二区| 成人av网站免费| 欧美理论在线播放| 欧美精彩视频一区二区三区| 亚洲一区二区三区四区五区黄| 久久精品国产澳门| 一本到高清视频免费精品| 欧美探花视频资源| 国产午夜精品在线观看| 亚洲在线观看免费视频| 国产主播一区二区| 欧美三级视频在线观看| 久久亚洲精精品中文字幕早川悠里| 一区二区在线看| 国产精品77777| 91麻豆精品91久久久久久清纯 | 日本在线不卡视频一二三区| 国产成人精品综合在线观看| 欧美日韩成人一区| 一区二区三区资源|