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

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

?? basicradiobuttonui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
字號:
/* * @(#)BasicRadioButtonUI.java	1.69 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.basic;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.border.*;import javax.swing.plaf.*;import javax.swing.text.View;import com.sun.java.swing.SwingUtilities2;/** * RadioButtonUI implementation for BasicRadioButtonUI * * @version 1.69 12/19/03 * @author Jeff Dinkins */public class BasicRadioButtonUI extends BasicToggleButtonUI {    private final static BasicRadioButtonUI radioButtonUI = new BasicRadioButtonUI();    protected Icon icon;    private boolean defaults_initialized = false;    private final static String propertyPrefix = "RadioButton" + ".";     // ********************************    //        Create PLAF     // ********************************    public static ComponentUI createUI(JComponent b) {        return radioButtonUI;    }    protected String getPropertyPrefix() {        return propertyPrefix;     }    // ********************************    //        Install PLAF     // ********************************    protected void installDefaults(AbstractButton b){        super.installDefaults(b);        if(!defaults_initialized) {            icon = UIManager.getIcon(getPropertyPrefix() + "icon");            defaults_initialized = true;        }    }    // ********************************    //        Uninstall PLAF     // ********************************    protected void uninstallDefaults(AbstractButton b){        super.uninstallDefaults(b);        defaults_initialized = false;    }    public Icon getDefaultIcon() {        return icon;    }    /* These Dimensions/Rectangles are allocated once for all      * RadioButtonUI.paint() calls.  Re-using rectangles      * rather than allocating them in each paint call substantially      * reduced the time it took paint to run.  Obviously, this      * method can't be re-entered.     */    private static Dimension size = new Dimension();    private static Rectangle viewRect = new Rectangle();    private static Rectangle iconRect = new Rectangle();    private static Rectangle textRect = new Rectangle();    /**     * paint the radio button     */    public synchronized void paint(Graphics g, JComponent c) {        AbstractButton b = (AbstractButton) c;        ButtonModel model = b.getModel();        Font f = c.getFont();        g.setFont(f);        FontMetrics fm = SwingUtilities2.getFontMetrics(c, g, f);        Insets i = c.getInsets();        size = b.getSize(size);        viewRect.x = i.left;	viewRect.y = i.top;        viewRect.width = size.width - (i.right + viewRect.x);        viewRect.height = size.height - (i.bottom + viewRect.y);        iconRect.x = iconRect.y = iconRect.width = iconRect.height = 0;        textRect.x = textRect.y = textRect.width = textRect.height = 0;        Icon altIcon = b.getIcon();        Icon selectedIcon = null;        Icon disabledIcon = null;        String text = SwingUtilities.layoutCompoundLabel(            c, fm, b.getText(), altIcon != null ? altIcon : getDefaultIcon(),            b.getVerticalAlignment(), b.getHorizontalAlignment(),            b.getVerticalTextPosition(), b.getHorizontalTextPosition(),            viewRect, iconRect, textRect,	    b.getText() == null ? 0 : b.getIconTextGap());        // fill background        if(c.isOpaque()) {            g.setColor(b.getBackground());            g.fillRect(0,0, size.width, size.height);         }        // Paint the radio button        if(altIcon != null) {             if(!model.isEnabled()) {	        if(model.isSelected()) {                   altIcon = b.getDisabledSelectedIcon();		} else {                   altIcon = b.getDisabledIcon();		}            } else if(model.isPressed() && model.isArmed()) {                altIcon = b.getPressedIcon();                if(altIcon == null) {                    // Use selected icon                    altIcon = b.getSelectedIcon();                }             } else if(model.isSelected()) {                if(b.isRolloverEnabled() && model.isRollover()) {                        altIcon = (Icon) b.getRolloverSelectedIcon();                        if (altIcon == null) {                                altIcon = (Icon) b.getSelectedIcon();                        }                } else {                        altIcon = (Icon) b.getSelectedIcon();                }            } else if(b.isRolloverEnabled() && model.isRollover()) {                altIcon = (Icon) b.getRolloverIcon();            }             if(altIcon == null) {                altIcon = b.getIcon();            }            altIcon.paintIcon(c, g, iconRect.x, iconRect.y);        } else {            getDefaultIcon().paintIcon(c, g, iconRect.x, iconRect.y);        }        // Draw the Text        if(text != null) {            View v = (View) c.getClientProperty(BasicHTML.propertyKey);            if (v != null) {		v.paint(g, textRect);            } else {		paintText(g, b, textRect, text);	    }	    if(b.hasFocus() && b.isFocusPainted() && 	       textRect.width > 0 && textRect.height > 0 ) {		paintFocus(g, textRect, size);	    }        }    }    protected void paintFocus(Graphics g, Rectangle textRect, Dimension size){    }    /* These Insets/Rectangles are allocated once for all      * RadioButtonUI.getPreferredSize() calls.  Re-using rectangles      * rather than allocating them in each call substantially      * reduced the time it took getPreferredSize() to run.  Obviously,      * this method can't be re-entered.     */    private static Rectangle prefViewRect = new Rectangle();    private static Rectangle prefIconRect = new Rectangle();    private static Rectangle prefTextRect = new Rectangle();    private static Insets prefInsets = new Insets(0, 0, 0, 0);    /**     * The preferred size of the radio button     */    public Dimension getPreferredSize(JComponent c) {        if(c.getComponentCount() > 0) {            return null;        }        AbstractButton b = (AbstractButton) c;        String text = b.getText();        Icon buttonIcon = (Icon) b.getIcon();        if(buttonIcon == null) {            buttonIcon = getDefaultIcon();        }        Font font = b.getFont();        FontMetrics fm = b.getFontMetrics(font);        prefViewRect.x = prefViewRect.y = 0;        prefViewRect.width = Short.MAX_VALUE;        prefViewRect.height = Short.MAX_VALUE;        prefIconRect.x = prefIconRect.y = prefIconRect.width = prefIconRect.height = 0;        prefTextRect.x = prefTextRect.y = prefTextRect.width = prefTextRect.height = 0;        SwingUtilities.layoutCompoundLabel(            c, fm, text, buttonIcon,            b.getVerticalAlignment(), b.getHorizontalAlignment(),            b.getVerticalTextPosition(), b.getHorizontalTextPosition(),            prefViewRect, prefIconRect, prefTextRect,             text == null ? 0 : b.getIconTextGap());        // find the union of the icon and text rects (from Rectangle.java)        int x1 = Math.min(prefIconRect.x, prefTextRect.x);        int x2 = Math.max(prefIconRect.x + prefIconRect.width,                           prefTextRect.x + prefTextRect.width);        int y1 = Math.min(prefIconRect.y, prefTextRect.y);        int y2 = Math.max(prefIconRect.y + prefIconRect.height,                           prefTextRect.y + prefTextRect.height);        int width = x2 - x1;        int height = y2 - y1;        prefInsets = b.getInsets(prefInsets);        width += prefInsets.left + prefInsets.right;        height += prefInsets.top + prefInsets.bottom;        return new Dimension(width, height);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲高清免费观看高清完整版在线观看 | 国产一区二区主播在线| ...xxx性欧美| 国产精品国产精品国产专区不片| 国产欧美一区二区三区沐欲| 久久久久久一级片| 国产精品美日韩| 亚洲欧美一区二区三区久本道91 | 亚洲视频一区在线观看| 亚洲精品v日韩精品| 亚洲不卡在线观看| 精品一区中文字幕| av资源网一区| 3d动漫精品啪啪| 国产午夜亚洲精品不卡| 国产精品国产自产拍在线| 日本美女一区二区三区视频| 国产精品亚洲专一区二区三区 | 天堂资源在线中文精品| 亚洲日本va午夜在线电影| 国产制服丝袜一区| av中文字幕一区| 欧美激情一区二区三区蜜桃视频 | 国产欧美日韩另类视频免费观看| 日韩精品三区四区| 欧洲日韩一区二区三区| 精品剧情v国产在线观看在线| 国产农村妇女精品| 国产一区二区三区不卡在线观看| 日韩小视频在线观看专区| 国产精品不卡在线观看| 国产福利一区二区三区视频在线 | 亚洲一区中文在线| 国产成人免费视频精品含羞草妖精| 日韩免费高清电影| 亚洲一区视频在线| 欧美亚洲综合另类| 欧美激情一区三区| aaa欧美色吧激情视频| 亚洲视频狠狠干| 91国产免费看| 国产精品久久久久影院老司| 成人免费视频免费观看| 欧美大胆人体bbbb| 激情综合五月天| 中文字幕久久午夜不卡| gogo大胆日本视频一区| 一区二区三区在线视频免费观看| 国产麻豆精品theporn| 日本一区二区视频在线观看| bt7086福利一区国产| 亚洲成人tv网| 精品国产亚洲在线| 日韩av网站在线观看| 日韩一卡二卡三卡| 国产成人一级电影| 亚洲1区2区3区4区| 久久精品夜色噜噜亚洲aⅴ| 91在线你懂得| 国产精品久久久久久福利一牛影视 | 正在播放一区二区| 国产精品羞羞答答xxdd| 亚洲精品视频在线看| 日韩写真欧美这视频| 成人黄色小视频| 国产三级欧美三级| 欧美性做爰猛烈叫床潮| 黑人精品欧美一区二区蜜桃| 亚洲精品美腿丝袜| 精品国产亚洲在线| 欧美午夜精品电影| 国产一区在线观看麻豆| 一区二区三区四区乱视频| 欧美大片在线观看一区二区| www.成人在线| 蜜桃精品视频在线观看| 欧美r级在线观看| 99久久精品费精品国产一区二区| 免费人成网站在线观看欧美高清| 欧美成人一区二区三区在线观看 | 亚洲三级在线免费| 日韩欧美另类在线| 色8久久精品久久久久久蜜| 国产乱码精品一区二区三| 亚洲线精品一区二区三区| 欧美激情在线看| 日韩免费成人网| 3d动漫精品啪啪一区二区竹菊| 不卡视频一二三| 国产一区二区久久| 奇米一区二区三区| 亚洲国产一区视频| 中文字幕在线不卡一区二区三区| 欧美电视剧在线看免费| 欧美人动与zoxxxx乱| 久久99这里只有精品| 中文字幕免费一区| 日本一区二区久久| 精品久久久三级丝袜| 日韩一区和二区| 欧美日韩久久不卡| 欧美色中文字幕| 在线观看一区日韩| 色综合天天综合网天天狠天天| 亚洲国产精品欧美一二99 | 精品国产一区二区三区忘忧草| 欧美日韩一二三| 国产一区二区三区四区在线观看| 三级精品在线观看| 丝袜美腿亚洲综合| 日韩专区中文字幕一区二区| 午夜国产精品一区| 亚洲一区自拍偷拍| 五月天丁香久久| 五月婷婷色综合| 全国精品久久少妇| 久久国产精品99久久久久久老狼| 蜜桃视频在线一区| 极品少妇一区二区三区精品视频| 久久丁香综合五月国产三级网站| 精品一区二区久久久| 国产一区二区不卡老阿姨| 国产真实乱子伦精品视频| 国产69精品久久99不卡| 色天使色偷偷av一区二区| 日本午夜精品一区二区三区电影| 亚洲成在人线在线播放| 蜜臂av日日欢夜夜爽一区| 久久99蜜桃精品| 国产suv精品一区二区三区| 波多野结衣在线一区| 91啪在线观看| 国产成人免费在线观看不卡| 不卡av电影在线播放| 色8久久人人97超碰香蕉987| 欧美顶级少妇做爰| 欧美天堂亚洲电影院在线播放| 欧美日韩久久久一区| 精品日韩欧美一区二区| 亚洲国产高清在线| 性久久久久久久| 国内成人精品2018免费看| 成人av午夜影院| 欧美久久久久中文字幕| 久久综合久久鬼色| 欧美成人r级一区二区三区| 国产亚洲短视频| 亚洲综合免费观看高清完整版在线 | 91精品国产色综合久久| 日本韩国精品一区二区在线观看| 欧美日韩国产高清一区二区| 精品粉嫩超白一线天av| 亚洲欧洲一区二区在线播放| 视频一区视频二区在线观看| 国产精品一二二区| 欧美剧情片在线观看| 国产蜜臀av在线一区二区三区| 亚洲国产美国国产综合一区二区| 蓝色福利精品导航| 91日韩精品一区| 久久久欧美精品sm网站| 一区二区在线电影| 国产美女av一区二区三区| 欧美日韩在线一区二区| 日本一区二区三区免费乱视频 | 精品欧美一区二区在线观看 | 丝袜美腿一区二区三区| 成人午夜私人影院| 日韩一级高清毛片| 亚洲青青青在线视频| 国产一区二区按摩在线观看| 欧美色窝79yyyycom| 亚洲欧洲无码一区二区三区| 国产一区二区调教| 91精品免费在线观看| 中文字幕一区二区三区色视频 | 亚洲午夜精品网| 91尤物视频在线观看| 久久久一区二区三区| 日本欧美韩国一区三区| 欧美午夜精品一区二区三区| 亚洲欧洲av在线| 国产成人在线色| 久久嫩草精品久久久久| 日本欧美韩国一区三区| 欧美精品色综合| 亚洲精品大片www| 91老师片黄在线观看| 欧美精彩视频一区二区三区| 看电视剧不卡顿的网站| 亚洲视频一区在线观看| 成人小视频免费在线观看| 国产欧美视频一区二区三区| 国产一区二区三区黄视频| 亚洲精品一区二区三区香蕉| 久久精品国产久精国产爱| 6080亚洲精品一区二区| 日韩精彩视频在线观看| 欧美电影一区二区三区| 亚洲成a人片在线不卡一二三区 |