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

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

?? basicradiobuttonui.java

?? java1.6眾多例子參考
?? JAVA
字號:
/* * @(#)BasicRadioButtonUI.java	1.71 05/11/30 * * Copyright 2006 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 sun.swing.SwingUtilities2;/** * RadioButtonUI implementation for BasicRadioButtonUI * * @version 1.71 11/30/05 * @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一区二区三区免费野_久草精品视频
在线一区二区三区做爰视频网站| 日本美女视频一区二区| 亚洲另类色综合网站| 亚洲成人av资源| 国内成+人亚洲+欧美+综合在线| 不卡电影一区二区三区| 欧美精品久久99久久在免费线| 精品久久一区二区| 亚洲欧美国产三级| 蜜乳av一区二区| 99久久久免费精品国产一区二区| 欧美日韩一区 二区 三区 久久精品| 日韩欧美国产小视频| 国产精品电影院| 麻豆免费看一区二区三区| 99久久久国产精品| 日韩一区国产二区欧美三区| 中文成人av在线| 手机精品视频在线观看| 成人午夜又粗又硬又大| 欧美一区二区视频在线观看2020| 国产欧美日韩另类视频免费观看| 亚洲成年人网站在线观看| 国产乱码精品一区二区三区av| 欧美色综合天天久久综合精品| 久久久美女毛片| 亚洲成人你懂的| 99久久久国产精品免费蜜臀| 精品美女在线播放| 亚洲网友自拍偷拍| 国产激情偷乱视频一区二区三区| 在线电影院国产精品| 亚洲视频在线观看三级| 国产精品一区二区不卡| 欧美精品 日韩| 国产精品白丝在线| 久久er精品视频| 欧美日韩在线不卡| 中文字幕视频一区| 国产成人综合视频| 日韩欧美中文一区二区| 一区二区三区蜜桃| 99这里都是精品| 久久久亚洲欧洲日产国码αv| 三级在线观看一区二区| 色婷婷久久99综合精品jk白丝| 国产日韩欧美不卡| 91久久精品一区二区二区| 欧美极品另类videosde| 精品一区在线看| 欧美高清你懂得| 亚洲午夜在线视频| 色婷婷久久综合| 亚洲色图欧美激情| 波多野结衣欧美| 久久精品人人爽人人爽| 麻豆精品国产传媒mv男同| 欧美日韩在线综合| 亚洲综合色网站| 91国偷自产一区二区三区成为亚洲经典| 欧美激情综合五月色丁香小说| 韩国成人精品a∨在线观看| 日韩精品一区二区三区中文精品| 日韩av一区二区在线影视| 欧美高清dvd| 午夜精彩视频在线观看不卡| 欧美中文字幕亚洲一区二区va在线 | 日韩区在线观看| 日本成人在线不卡视频| 欧美日韩国产片| 婷婷中文字幕综合| 欧美日韩一区二区在线观看| 亚洲成人久久影院| 在线不卡a资源高清| 日本麻豆一区二区三区视频| 日韩亚洲欧美高清| 韩国三级电影一区二区| 精品国产乱码久久久久久老虎 | 日韩久久久精品| 蜜桃视频第一区免费观看| 日韩午夜小视频| 国内偷窥港台综合视频在线播放| 欧美成人r级一区二区三区| 久久99九九99精品| 久久久久久麻豆| 成人免费视频播放| 亚洲免费观看高清| 欧美日韩国产在线播放网站| 秋霞午夜鲁丝一区二区老狼| 欧美一区二区福利在线| 美女视频黄免费的久久 | 国产一区在线不卡| 国产精品网站在线| 色综合一个色综合亚洲| 午夜日韩在线电影| 日韩午夜在线播放| 国产电影精品久久禁18| 亚洲天堂精品在线观看| 欧美日韩一区二区在线观看| 久久精品国产999大香线蕉| 精品理论电影在线| 北条麻妃一区二区三区| 亚洲在线视频网站| 日韩美女在线视频| 99热99精品| 五月激情六月综合| 国产日产精品一区| 日本韩国一区二区| 麻豆成人综合网| 精品欧美一区二区久久| 成人国产精品免费观看| 亚洲国产日韩在线一区模特 | 日日夜夜精品视频免费| 2023国产精品| 97久久精品人人做人人爽| 丝袜脚交一区二区| 中文字幕第一区二区| 色婷婷综合激情| 黄网站免费久久| 亚洲精品国产精品乱码不99| 日韩一区二区三区视频| 99久久精品免费看国产| 免费成人你懂的| 亚洲丝袜另类动漫二区| 欧美一级黄色大片| www.成人在线| 蜜臀91精品一区二区三区| 国产精品的网站| 精品久久久久久久一区二区蜜臀| 99久久久无码国产精品| 久久97超碰国产精品超碰| 亚洲天堂久久久久久久| 精品国产乱码91久久久久久网站| 色婷婷综合久久久久中文一区二区 | 在线视频国内自拍亚洲视频| 国产露脸91国语对白| 亚洲h在线观看| 国产精品看片你懂得| 欧美成人bangbros| 欧美日韩视频在线观看一区二区三区 | 欧美videos大乳护士334| 久久久不卡网国产精品二区| 欧美日韩国产综合一区二区| av电影在线观看一区| 久久精品国产77777蜜臀| 亚洲主播在线播放| 国产精品美女www爽爽爽| 欧美一级久久久| 欧美日韩美少妇 | 中文字幕一区免费在线观看| 日韩精品一区二区三区视频在线观看 | 欧美一区二区啪啪| 91福利在线导航| 99久久久国产精品| 国产成人av影院| 激情av综合网| 开心九九激情九九欧美日韩精美视频电影| 夜色激情一区二区| 亚洲视频精选在线| 欧美国产综合色视频| 精品国产网站在线观看| 在线不卡中文字幕| 欧美日韩激情在线| 欧美在线观看你懂的| 91蝌蚪porny九色| 91在线一区二区| 99视频有精品| 99精品桃花视频在线观看| 国产成人免费9x9x人网站视频| 久久99久国产精品黄毛片色诱| 免费成人av在线播放| 蜜桃在线一区二区三区| 美女精品一区二区| 日韩av一级电影| 美美哒免费高清在线观看视频一区二区 | 理论片日本一区| 美国三级日本三级久久99| 日韩 欧美一区二区三区| 日韩**一区毛片| 美女看a上一区| 精品一区二区久久久| 韩日av一区二区| 国产伦精品一区二区三区视频青涩| 久久97超碰色| 国产精品一二三在| 成人免费视频视频在线观看免费| 成人免费视频视频在线观看免费 | 亚洲欧洲成人av每日更新| 国产精品蜜臀av| 中文字幕欧美一区| 亚洲精品乱码久久久久久| 亚洲国产成人porn| 日本午夜一本久久久综合| 久久se这里有精品| 国产成人免费高清| 91浏览器在线视频| 欧美日韩国产一级片| 日韩一级大片在线观看| 久久综合久久99| 欧美国产日韩一二三区|