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

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

?? synthgraphicsutils.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * @(#)SynthGraphicsUtils.java	1.16 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.synth;import com.sun.java.swing.SwingUtilities2;import java.awt.*;import javax.swing.*;import javax.swing.plaf.basic.BasicHTML;import javax.swing.text.*;import sun.swing.plaf.synth.*;/** * Wrapper for primitive graphics calls. * * @version 1.16, 12/19/03 * @since 1.5 * @author Scott Violet */public class SynthGraphicsUtils {    // These are used in the text painting code to avoid allocating a bunch of    // garbage.    private Rectangle paintIconR = new Rectangle();    private Rectangle paintTextR = new Rectangle();    private Rectangle paintViewR = new Rectangle();    private Insets paintInsets = new Insets(0, 0, 0, 0);    // These Rectangles/Insets are used in the text size calculation to avoid a    // a bunch of garbage.    private Rectangle iconR = new Rectangle();    private Rectangle textR = new Rectangle();    private Rectangle viewR = new Rectangle();    private Insets viewSizingInsets = new Insets(0, 0, 0, 0);    /**     * Creates a <code>SynthGraphicsUtils</code>.     */    public SynthGraphicsUtils() {    }    /**     * Draws a line between the two end points.     *     * @param context Identifies hosting region.     * @param paintKey Identifies the portion of the component being asked     *                 to paint, may be null.     * @param g Graphics object to paint to     * @param x1 x origin     * @param y1 y origin     * @param x2 x destination     * @param y2 y destination     */    public void drawLine(SynthContext context, Object paintKey,                         Graphics g, int x1, int y1, int x2, int y2) {        g.drawLine(x1, y1, x2, y2);    }    /**     * Lays out text and an icon returning, by reference, the location to     * place the icon and text.     *     * @param ss SynthContext     * @param fm FontMetrics for the Font to use, this may be ignored     * @param text Text to layout     * @param icon Icon to layout     * @param hAlign horizontal alignment     * @param vAlign vertical alignment     * @param hTextPosition horizontal text position     * @param vTextPosition vertical text position     * @param viewR Rectangle to layout text and icon in.     * @param iconR Rectangle to place icon bounds in     * @param textR Rectangle to place text in     * @param iconTextGap gap between icon and text     */    public String layoutText(SynthContext ss, FontMetrics fm,                         String text, Icon icon, int hAlign,                         int vAlign, int hTextPosition,                         int vTextPosition, Rectangle viewR,                         Rectangle iconR, Rectangle textR, int iconTextGap) {        if (icon instanceof SynthIcon) {            SynthIconWrapper wrapper = SynthIconWrapper.get((SynthIcon)icon,                                                            ss);            String formattedText = SwingUtilities.layoutCompoundLabel(                      ss.getComponent(), fm, text, wrapper, vAlign, hAlign,                      vTextPosition, hTextPosition, viewR, iconR, textR,                      iconTextGap);            SynthIconWrapper.release(wrapper);            return formattedText;        }        return SwingUtilities.layoutCompoundLabel(                      ss.getComponent(), fm, text, icon, vAlign, hAlign,                      vTextPosition, hTextPosition, viewR, iconR, textR,                      iconTextGap);    }    /**     * Returns the size of the passed in string.     *     * @param ss SynthContext     * @param font Font to use     * @param metrics FontMetrics, may be ignored     * @param text Text to get size of.     */    public int computeStringWidth(SynthContext ss, Font font,                                  FontMetrics metrics, String text) {        return SwingUtilities2.stringWidth(ss.getComponent(), metrics,                                          text);    }    /**     * Returns the minimum size needed to properly render an icon and text.     *     * @param ss SynthContext     * @param font Font to use     * @param text Text to layout     * @param icon Icon to layout     * @param hAlign horizontal alignment     * @param vAlign vertical alignment     * @param hTextPosition horizontal text position     * @param vTextPosition vertical text position     * @param iconTextGap gap between icon and text     * @param mnemonicIndex Index into text to render the mnemonic at, -1     *        indicates no mnemonic.     */    public Dimension getMinimumSize(SynthContext ss, Font font, String text,                      Icon icon, int hAlign, int vAlign, int hTextPosition,                      int vTextPosition, int iconTextGap, int mnemonicIndex) {        JComponent c = ss.getComponent();        Dimension size = getPreferredSize(ss, font, text, icon, hAlign,                                          vAlign, hTextPosition, vTextPosition,                                          iconTextGap, mnemonicIndex);	View v = (View) c.getClientProperty(BasicHTML.propertyKey);	if (v != null) {	    size.width -= v.getPreferredSpan(View.X_AXIS) -                          v.getMinimumSpan(View.X_AXIS);	}        return size;    }    /**     * Returns the maximum size needed to properly render an icon and text.     *     * @param ss SynthContext     * @param font Font to use     * @param text Text to layout     * @param icon Icon to layout     * @param hAlign horizontal alignment     * @param vAlign vertical alignment     * @param hTextPosition horizontal text position     * @param vTextPosition vertical text position     * @param iconTextGap gap between icon and text     * @param mnemonicIndex Index into text to render the mnemonic at, -1     *        indicates no mnemonic.     */    public Dimension getMaximumSize(SynthContext ss, Font font, String text,                      Icon icon, int hAlign, int vAlign, int hTextPosition,                      int vTextPosition, int iconTextGap, int mnemonicIndex) {        JComponent c = ss.getComponent();        Dimension size = getPreferredSize(ss, font, text, icon, hAlign,                                          vAlign, hTextPosition, vTextPosition,                                          iconTextGap, mnemonicIndex);	View v = (View) c.getClientProperty(BasicHTML.propertyKey);	if (v != null) {	    size.width += v.getMaximumSpan(View.X_AXIS) -                          v.getPreferredSpan(View.X_AXIS);	}        return size;    }    /**     * Returns the maximum height of the the Font from the passed in     * SynthContext.     *     * @param context SynthContext used to determine font.     * @return maximum height of the characters for the font from the passed     *         in context.     */    public int getMaximumCharHeight(SynthContext context) {        FontMetrics fm = context.getComponent().getFontMetrics(            context.getStyle().getFont(context));        return (fm.getAscent() + fm.getDescent());    }    /**     * Returns the preferred size needed to properly render an icon and text.     *     * @param ss SynthContext     * @param font Font to use     * @param text Text to layout     * @param icon Icon to layout     * @param hAlign horizontal alignment     * @param vAlign vertical alignment     * @param hTextPosition horizontal text position     * @param vTextPosition vertical text position     * @param iconTextGap gap between icon and text     * @param mnemonicIndex Index into text to render the mnemonic at, -1     *        indicates no mnemonic.     */    public Dimension getPreferredSize(SynthContext ss, Font font, String text,                      Icon icon, int hAlign, int vAlign, int hTextPosition,

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频小说图片| 欧美一级视频精品观看| 自拍偷拍国产精品| 99久久久精品免费观看国产蜜| 亚洲国产精品av| 成人黄色777网| 伊人婷婷欧美激情| 欧美日韩一级视频| 毛片av一区二区| 久久精品欧美日韩精品| 成人午夜激情影院| 亚洲免费在线观看视频| 欧美私模裸体表演在线观看| 午夜av区久久| 精品国产亚洲在线| 成人av电影观看| 香蕉影视欧美成人| 久久婷婷综合激情| 色婷婷激情综合| 蜜桃av噜噜一区| 中文字幕精品一区二区精品绿巨人| 97国产一区二区| 丝瓜av网站精品一区二区| 精品国产一区二区亚洲人成毛片 | 国产乱理伦片在线观看夜一区| 欧美国产在线观看| 欧美日韩mp4| 成人在线视频一区| 亚洲不卡一区二区三区| 久久在线免费观看| 在线国产亚洲欧美| 成人午夜在线视频| 亚洲大尺度视频在线观看| 久久综合资源网| 欧美亚洲动漫精品| 国产不卡视频一区二区三区| 午夜精品一区二区三区三上悠亚| 国产网站一区二区三区| 欧美日韩国产系列| 成人三级伦理片| 免费在线观看一区| 亚洲欧美日韩电影| 欧美成人a视频| 欧美日韩在线三级| 97久久超碰国产精品| 国内欧美视频一区二区| 亚洲一区av在线| 亚洲欧洲色图综合| 欧美精品一区视频| 日韩一级高清毛片| 欧美中文字幕一区二区三区| 不卡一区中文字幕| 国模大尺度一区二区三区| 日韩av高清在线观看| 亚洲一区二区三区小说| 国产精品电影一区二区| 精品国产91乱码一区二区三区| 欧美影院一区二区| 91视频在线观看| 成人国产精品免费网站| 国产一区二区久久| 日本电影欧美片| 成人免费毛片片v| 久草精品在线观看| 免费国产亚洲视频| 日韩电影在线观看一区| 午夜精品久久久久久| 亚洲国产va精品久久久不卡综合| |精品福利一区二区三区| 欧美国产精品v| 中文一区二区在线观看| 亚洲国产高清aⅴ视频| 久久午夜色播影院免费高清| 欧美大片在线观看一区二区| 欧美精品v日韩精品v韩国精品v| 欧美日韩亚洲综合在线| 日本国产一区二区| 91福利视频久久久久| 91国偷自产一区二区开放时间 | 欧美日韩一区三区四区| 欧美性欧美巨大黑白大战| 欧美三级视频在线| 欧美精品丝袜久久久中文字幕| 欧美日韩一区精品| 欧美日韩综合一区| 日韩一区二区精品| 精品毛片乱码1区2区3区| 日韩免费高清av| 久久久精品蜜桃| 国产精品久久久久婷婷二区次| 中文字幕一区二区三区精华液| 中文字幕在线免费不卡| 一区二区三区波多野结衣在线观看 | 欧美精品一区二区三| 久久综合色婷婷| 久久精品人人做人人爽97| 亚洲欧洲精品天堂一级| 一区二区三区精品在线| 蜜桃一区二区三区在线观看| 国产一区在线精品| 97se亚洲国产综合在线| 欧美日韩一区在线观看| 亚洲综合无码一区二区| 免费成人av在线播放| 国产精品77777竹菊影视小说| 成人aa视频在线观看| 欧美日韩大陆在线| 久久精品视频一区二区三区| 亚洲男人天堂av网| 视频一区免费在线观看| 国产一区二区女| 色猫猫国产区一区二在线视频| 欧美一级国产精品| 欧美高清在线视频| 日韩电影免费在线观看网站| 成人一区二区三区在线观看| 欧美日韩在线三级| 中文字幕 久热精品 视频在线| 亚洲一区二区欧美日韩| 国产一区二区美女| 欧美三级视频在线观看| 国产三区在线成人av| 五月婷婷激情综合网| av福利精品导航| 91麻豆精品国产91久久久久| 国产欧美日韩精品在线| 日本亚洲电影天堂| 91在线精品一区二区三区| 精品嫩草影院久久| 一区二区三区在线免费观看| 国产宾馆实践打屁股91| 91精品国产手机| 亚洲色图制服诱惑| 国产一区二区在线观看视频| 欧美人牲a欧美精品| 中文字幕av资源一区| 黄页网站大全一区二区| 久久精品综合网| 奇米精品一区二区三区在线观看| 91网站黄www| 久久精品免费在线观看| 日韩成人av影视| 91官网在线观看| 亚洲天堂免费看| 国产成人福利片| 亚洲精品一区二区三区精华液| 日韩在线卡一卡二| 91久久奴性调教| 国产精品久久毛片a| 国产精品888| 精品国产一区二区三区久久影院| 亚洲成人一区二区在线观看| 91丨九色丨蝌蚪丨老版| 国产精品免费视频观看| 国产91露脸合集magnet| 26uuu亚洲综合色| 日韩国产一区二| 欧美精品丝袜久久久中文字幕| 亚洲一区二区三区四区的| 在线观看一区二区精品视频| 一区二区三区四区激情| 99精品一区二区| 综合久久久久综合| 99热精品一区二区| 国产精品家庭影院| av电影一区二区| 国产精品视频你懂的| 国产iv一区二区三区| 久久久久久免费毛片精品| 韩国精品主播一区二区在线观看| 精品国产制服丝袜高跟| 国产精品一区在线观看乱码| 久久久久久**毛片大全| 国产精品亚洲一区二区三区妖精 | 国产不卡一区视频| 国产精品亲子伦对白| 99精品一区二区三区| 一区二区三区美女| 欧美视频精品在线观看| 亚洲成av人片在线观看无码| 555夜色666亚洲国产免| 免费不卡在线视频| 久久久一区二区三区捆绑**| 大桥未久av一区二区三区中文| 亚洲日本免费电影| 欧美日精品一区视频| 久久精品理论片| 国产精品天天摸av网| 色婷婷精品大在线视频| 日韩二区在线观看| 久久久综合激的五月天| 99精品视频一区二区三区| 一区二区三区日韩| 欧美电影在线免费观看| 国产乱色国产精品免费视频| 亚洲人123区| 欧美草草影院在线视频| 91影视在线播放| 日欧美一区二区| 国产欧美一区二区精品性色超碰 |