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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? bevelarrowicon.java

?? 水晶 ? ?  報表 ? ? ? 源碼
?? JAVA
字號:
/* ===================================================
 * JCommon : a free general purpose Java class library
 * ===================================================
 *
 * Project Info:  http://www.jfree.org/jcommon/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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 Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with this
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * -------------------
 * BevelArrowIcon.java
 * -------------------
 * (C) Copyright 2000-2003, by Nobuo Tamemasa and Contributors.
 *
 * Original Author:  Nobuo Tamemasa;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: BevelArrowIcon.java,v 1.3 2003/06/12 16:54:38 mungady Exp $
 *
 * Changes (from 26-Oct-2001)
 * --------------------------
 * 26-Oct-2001 : Changed package to com.jrefinery.ui.*;
 * 13-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 *
 */

package org.jfree.ui;

import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;

import javax.swing.Icon;
import javax.swing.UIManager;

/**
 * An arrow icon that can point up or down (usually used to indicate the sort direction in a table).
 * <P>
 * This class (and also SortButtonRenderer) is based on original code by Nobuo Tamemasa (version
 * 1.0, 26-Feb-1999) posted on www.codeguru.com.
 *
 * @author Nobuo Tamemasa
 */
public class BevelArrowIcon implements Icon {

    /** Constant indicating that the arrow is pointing up. */
    public static final int UP = 0;

    /** Constant indicating that the arrow is pointing down. */
    public static final int DOWN = 1;

    /** The default arrow size. */
    private static final int DEFAULT_SIZE = 11;

    /** Edge color 1. */
    private Color edge1;

    /** Edge color 2. */
    private Color edge2;

    /** The fill color for the arrow icon. */
    private Color fill;

    /** The size of the icon. */
    private int size;

    /** The direction that the arrow is pointing (UP or DOWN); */
    private int direction;

    /**
     * Standard constructor - builds an icon with the specified attributes.
     *
     * @param direction .
     * @param isRaisedView .
     * @param isPressedView .
     */
    public BevelArrowIcon(int direction, boolean isRaisedView, boolean isPressedView) {
        if (isRaisedView) {
            if (isPressedView) {
                init(UIManager.getColor("controlLtHighlight"),
                     UIManager.getColor("controlDkShadow"),
                     UIManager.getColor("controlShadow"),
                     DEFAULT_SIZE, direction);
            }
            else {
                init(UIManager.getColor("controlHighlight"),
                     UIManager.getColor("controlShadow"),
                     UIManager.getColor("control"),
                     DEFAULT_SIZE, direction);
            }
        }
        else {
            if (isPressedView) {
                init(UIManager.getColor("controlDkShadow"),
                     UIManager.getColor("controlLtHighlight"),
                     UIManager.getColor("controlShadow"),
                     DEFAULT_SIZE, direction);
            }
            else {
                init(UIManager.getColor("controlShadow"),
                     UIManager.getColor("controlHighlight"),
                     UIManager.getColor("control"),
                     DEFAULT_SIZE, direction);
            }
        }
    }

    /**
     * Standard constructor - builds an icon with the specified attributes.
     *
     * @param edge1  the color of edge1.
     * @param edge2  the color of edge2.
     * @param fill  the fill color.
     * @param size  the size of the arrow icon.
     * @param direction  the direction that the arrow points.
     */
    public BevelArrowIcon(Color edge1, Color edge2, Color fill, int size, int direction) {
        init(edge1, edge2, fill, size, direction);
    }

    /**
     * Paints the icon at the specified position.  Supports the Icon interface.
     *
     * @param c .
     * @param g .
     * @param x .
     * @param y .
     */
    public void paintIcon(Component c, Graphics g, int x, int y) {
        switch (direction) {
            case DOWN: drawDownArrow(g, x, y); break;
            case   UP: drawUpArrow(g, x, y);   break;
        }
    }

    /**
     * Returns the width of the icon.  Supports the Icon interface.
     *
     * @return the icon width.
     */
    public int getIconWidth() {
        return size;
    }

    /**
     * Returns the height of the icon.  Supports the Icon interface.
     * @return the icon height.
     */
    public int getIconHeight() {
        return size;
    }

    /**
     * Initialises the attributes of the arrow icon.
     *
     * @param edge1  the color of edge1.
     * @param edge2  the color of edge2.
     * @param fill  the fill color.
     * @param size  the size of the arrow icon.
     * @param direction  the direction that the arrow points.
     */
    private void init(Color edge1, Color edge2, Color fill, int size, int direction) {
        this.edge1 = edge1;
        this.edge2 = edge2;
        this.fill = fill;
        this.size = size;
        this.direction = direction;
    }

    /**
     * Draws the arrow pointing down.
     *
     * @param g  the graphics device.
     * @param xo  ??
     * @param yo  ??
     */
    private void drawDownArrow(Graphics g, int xo, int yo) {
        g.setColor(edge1);
        g.drawLine(xo, yo,   xo + size - 1, yo);
        g.drawLine(xo, yo + 1, xo + size - 3, yo + 1);
        g.setColor(edge2);
        g.drawLine(xo + size - 2, yo + 1, xo + size - 1, yo + 1);
        int x = xo + 1;
        int y = yo + 2;
        int dx = size - 6;
        while (y + 1 < yo + size) {
            g.setColor(edge1);
            g.drawLine(x, y,   x + 1, y);
            g.drawLine(x, y + 1, x + 1, y + 1);
            if (0 < dx) {
                g.setColor(fill);
                g.drawLine(x + 2, y,   x + 1 + dx, y);
                g.drawLine(x + 2, y + 1, x + 1 + dx, y + 1);
            }
            g.setColor(edge2);
            g.drawLine(x + dx + 2, y,   x + dx + 3, y);
            g.drawLine(x + dx + 2, y + 1, x + dx + 3, y + 1);
            x += 1;
            y += 2;
            dx -= 2;
        }
        g.setColor(edge1);
        g.drawLine(xo + (size / 2), yo + size - 1, xo + (size / 2), yo + size - 1);
    }

    /**
     * Draws the arrow pointing up.
     *
     * @param g  the graphics device.
     * @param xo  ??
     * @param yo  ??
     */
    private void drawUpArrow(Graphics g, int xo, int yo) {
        g.setColor(edge1);
        int x = xo + (size / 2);
        g.drawLine(x, yo, x, yo);
        x--;
        int y = yo + 1;
        int dx = 0;
        while (y + 3 < yo + size) {
            g.setColor(edge1);
            g.drawLine(x, y,   x + 1, y);
            g.drawLine(x, y + 1, x + 1, y + 1);
            if (0 < dx) {
                g.setColor(fill);
                g.drawLine(x + 2, y,   x + 1 + dx, y);
                g.drawLine(x + 2, y + 1, x + 1 + dx, y + 1);
            }
            g.setColor(edge2);
            g.drawLine(x + dx + 2, y,   x + dx + 3, y);
            g.drawLine(x + dx + 2, y + 1, x + dx + 3, y + 1);
            x -= 1;
            y += 2;
            dx += 2;
        }
        g.setColor(edge1);
        g.drawLine(xo, yo + size - 3,   xo + 1, yo + size - 3);
        g.setColor(edge2);
        g.drawLine(xo + 2, yo + size - 2, xo + size - 1, yo + size - 2);
        g.drawLine(xo, yo + size - 1, xo + size, yo + size - 1);
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区视频观看视频| 夜色激情一区二区| 欧美一区永久视频免费观看| 欧美日精品一区视频| 色哟哟精品一区| 色综合久久综合网欧美综合网| 成人av资源在线| www.日韩在线| 欧美主播一区二区三区| 欧美人xxxx| 日韩精品一区二区三区三区免费| 日韩亚洲欧美在线| 久久只精品国产| 国产精品全国免费观看高清| 国产精品久久久久影院| 亚洲少妇30p| 亚洲成人精品影院| 久久黄色级2电影| 丰满少妇久久久久久久| 色狠狠色噜噜噜综合网| 欧美日韩黄色一区二区| 精品国产污污免费网站入口 | 99久久精品免费观看| 99国产一区二区三精品乱码| 欧美体内she精视频| 日韩欧美一卡二卡| 国产精品传媒入口麻豆| 日韩影院免费视频| 国产福利91精品一区| 在线观看网站黄不卡| 日韩精品一区二区在线| 亚洲视频 欧洲视频| 久久精品国产精品亚洲综合| 91小视频在线免费看| 欧美精品一级二级三级| 国产精品女上位| 日本中文字幕一区| 国产91露脸合集magnet| 日本精品视频一区二区| 久久久91精品国产一区二区精品| 一区二区三区日韩欧美| 国产一区二区三区免费播放| 欧美性受xxxx黑人xyx性爽| 国产亚洲一区字幕| 亚洲v精品v日韩v欧美v专区| 国产精品一区二区久激情瑜伽| 欧美日韩亚洲不卡| 中文字幕欧美激情一区| 蜜桃久久久久久久| 色94色欧美sute亚洲线路二| 久久蜜臀精品av| 奇米综合一区二区三区精品视频| 91免费观看视频在线| 国产午夜精品久久久久久免费视 | 精品欧美乱码久久久久久 | 国产美女精品在线| 欧美日韩在线播| 日韩美女视频一区| 国产成人亚洲综合色影视| 日韩一区二区免费电影| 亚洲一区二区三区三| 91在线观看地址| 中文字幕不卡在线播放| 精品一区二区三区久久久| 欧美日韩一区三区| 亚洲永久免费视频| 在线观看国产日韩| 伊人夜夜躁av伊人久久| 色综合天天综合网天天狠天天| 欧美国产日韩a欧美在线观看| 精品一区二区在线播放| 欧美成人精品3d动漫h| 蜜桃一区二区三区在线| 91精品蜜臀在线一区尤物| 日韩中文字幕亚洲一区二区va在线| 日本久久电影网| 亚洲综合色丁香婷婷六月图片| 99视频国产精品| 一个色妞综合视频在线观看| 日本道精品一区二区三区| 亚洲一区二区三区在线播放| 欧美午夜一区二区| 亚洲日本韩国一区| 一区二区免费视频| 国产精品69毛片高清亚洲| 一区二区三区欧美日| 日本va欧美va欧美va精品| 国产91丝袜在线观看| 久久精品网站免费观看| 国产成人免费视频精品含羞草妖精 | 免费三级欧美电影| 精品蜜桃在线看| 国产成人精品亚洲日本在线桃色| 欧美极品xxx| 在线亚洲精品福利网址导航| 亚洲va国产天堂va久久en| 日韩片之四级片| 国产在线视频一区二区三区| 日本一区二区成人| 欧美亚洲国产一区二区三区 | 国内久久精品视频| 国产精品女同一区二区三区| 欧美在线短视频| 美女在线观看视频一区二区| 欧美国产欧美综合| 欧美色大人视频| 国产做a爰片久久毛片| 国产精品美女久久久久久久久 | 国产盗摄精品一区二区三区在线| 中日韩av电影| 欧美美女bb生活片| 国产成人免费视频一区| 亚洲国产成人av网| 久久久久久久久久久久久女国产乱| av中文字幕在线不卡| 青青草精品视频| 国产精品久久久久久久蜜臀| 欧美美女直播网站| 成人ar影院免费观看视频| 亚洲不卡在线观看| 中文字幕一区视频| 欧美大片在线观看一区| 91久久精品一区二区| 国产一区二区三区四区五区美女 | 蜜臀av一级做a爰片久久| 亚洲丝袜制服诱惑| 久久久久久久国产精品影院| 欧美日韩另类一区| 成人国产免费视频| 国产麻豆91精品| 亚洲电影欧美电影有声小说| 综合av第一页| 欧美激情中文不卡| 久久精品一区二区三区不卡 | 一区二区三区在线观看网站| www激情久久| 日韩美女天天操| 欧美三级蜜桃2在线观看| 色天天综合色天天久久| 成人综合在线视频| 国产一区二区在线电影| 美女www一区二区| 午夜天堂影视香蕉久久| 亚洲精品国产成人久久av盗摄| 国产日韩精品视频一区| 久久久影视传媒| 久久女同性恋中文字幕| 日韩你懂的在线播放| 91精品国产美女浴室洗澡无遮挡| 欧美三级在线播放| 欧美老年两性高潮| 欧美无砖砖区免费| 欧美三级中文字幕在线观看| 欧美日韩免费高清一区色橹橹 | 91福利视频久久久久| 色综合婷婷久久| 色综合天天做天天爱| 91丝袜美腿高跟国产极品老师 | 日韩精品一区二区三区四区| 51精品久久久久久久蜜臀| 欧美电影一区二区| 欧美日韩大陆一区二区| 制服丝袜亚洲播放| 日韩一区二区三区av| 久久日一线二线三线suv| 国产性色一区二区| 亚洲欧洲日产国产综合网| 亚洲男人的天堂在线aⅴ视频| 亚洲精品免费在线| 偷拍自拍另类欧美| 国产一区二区福利| 成人av免费观看| 欧美日韩在线直播| 精品久久久久久久久久久久包黑料| 欧美白人最猛性xxxxx69交| 国产欧美久久久精品影院| ㊣最新国产の精品bt伙计久久| 亚洲另类一区二区| 日本大胆欧美人术艺术动态| 国产精品亚洲综合一区在线观看| 欧美成人一区二区三区片免费 | 亚洲夂夂婷婷色拍ww47| 亚洲蜜臀av乱码久久精品 | 久久久精品蜜桃| 一区二区三区在线视频免费观看| 五月天视频一区| 丁香激情综合五月| 欧美色图第一页| 久久久国产一区二区三区四区小说 | 久久先锋影音av鲁色资源网| 亚洲男同性视频| 另类中文字幕网| 色狠狠桃花综合| 久久九九影视网| 三级久久三级久久| 色av综合在线| 欧美国产精品一区二区| 天天综合天天综合色| 99精品黄色片免费大全| 欧美不卡视频一区|